mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-06 03:25:23 +00:00
refactor(cable): more debug information for cable channels (#223)
This commit is contained in:
parent
074889b43f
commit
3d49d308c1
@ -99,12 +99,14 @@ impl Channel {
|
|||||||
|
|
||||||
#[allow(clippy::unused_async)]
|
#[allow(clippy::unused_async)]
|
||||||
async fn load_candidates(command: String, injector: Injector<String>) {
|
async fn load_candidates(command: String, injector: Injector<String>) {
|
||||||
|
debug!("Loading candidates from command: {:?}", command);
|
||||||
let output = shell_command()
|
let output = shell_command()
|
||||||
.arg(command)
|
.arg(command)
|
||||||
.output()
|
.output()
|
||||||
.expect("failed to execute process");
|
.expect("failed to execute process");
|
||||||
|
|
||||||
let decoded_output = String::from_utf8(output.stdout).unwrap();
|
let decoded_output = String::from_utf8(output.stdout).unwrap();
|
||||||
|
debug!("Decoded output: {:?}", decoded_output);
|
||||||
|
|
||||||
for line in decoded_output.lines().collect::<HashSet<_>>() {
|
for line in decoded_output.lines().collect::<HashSet<_>>() {
|
||||||
if !line.trim().is_empty() {
|
if !line.trim().is_empty() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user