This commit is contained in:
2025-07-10 09:32:34 +02:00
parent 781bbe9fda
commit 18fed011eb
4 changed files with 532 additions and 14 deletions

View File

@@ -1,4 +1,6 @@
use serde::Deserialize;
#[derive(Deserialize)]
struct Channel {
id: String,
name: String,
@@ -11,10 +13,13 @@ async fn main() {
//getting the list of channels with id's first
//
//https://raw.githubusercontent.com/bvanroll/home/refs/heads/master/static/yters.json
let resp = reqwest::get(channellist)
.await.
.text()
.await;
let channels: Vec<Channel> =serde_yaml_ng::from_str(&resp);
let resp = reqwest::get(channellist)//.await.unwrap().text().await;
.await.expect("wa?")
.text().await.expect("euh");
// let text = match resp {
// Ok(text) => text,
// Err(error) => println!("NOPE"),
// }; //
let channels: Vec<Channel> =serde_yaml_ng::from_str(&resp).expect("EUH");
}