mirror of
https://github.com/alexpasmantier/television.git
synced 2025-07-28 22:01:39 +00:00
parent
2ae95cdbb1
commit
37e31b2443
@ -515,10 +515,7 @@ pub fn guess_channel_from_prompt(
|
||||
debug!("Guessing channel from prompt: {}", prompt);
|
||||
// git checkout -qf
|
||||
// --- -------- --- <---------
|
||||
let fallback = cable
|
||||
.get(fallback_channel)
|
||||
.expect("Fallback channel not found in cable channels")
|
||||
.clone();
|
||||
let fallback = cable.get_channel(fallback_channel);
|
||||
if prompt.trim().is_empty() {
|
||||
return fallback;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user