Skip to content

Commit

Permalink
refactor(cable): more debug information for cable channels (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpasmantier authored Jan 6, 2025
1 parent 074889b commit 3d49d30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/television-channels/src/channels/cable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,14 @@ impl Channel {

#[allow(clippy::unused_async)]
async fn load_candidates(command: String, injector: Injector<String>) {
debug!("Loading candidates from command: {:?}", command);
let output = shell_command()
.arg(command)
.output()
.expect("failed to execute process");

let decoded_output = String::from_utf8(output.stdout).unwrap();
debug!("Decoded output: {:?}", decoded_output);

for line in decoded_output.lines().collect::<HashSet<_>>() {
if !line.trim().is_empty() {
Expand Down

0 comments on commit 3d49d30

Please sign in to comment.