ok?
This commit is contained in:
@@ -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");
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user