it works?

This commit is contained in:
2025-07-10 09:47:22 +02:00
parent 61141defcd
commit 4d1d386c2d
2 changed files with 8 additions and 8 deletions

View File

@@ -18,12 +18,12 @@ async fn main() {
//
//https://raw.githubusercontent.com/bvanroll/home/refs/heads/master/static/yters.json
let resp = reqwest::get(channellist)//.await.unwrap().text().await;
.await.expect("wa?")
.text().await.expect("euh");
.await.unwrap()
.text().await.unwrap();
// let text = match resp {
// Ok(text) => text,
// Err(error) => println!("NOPE"),
// }; //
let channels =serde_json::from_str::<Vec<Channel>>(&resp).expect("EUH");
let channels =serde_json::from_str::<Vec<Channel>>(&resp).unwrap();
}

View File

@@ -1,5 +1,5 @@
{"items":[
{ "name": "squibquib", "id": "UC-9-sjOyxoDCdQlVzObzGsw", "type": "letsplay"},
{"name":"sinixdesign", "id":"UCUQTqWAaSzhAKRanOpes1nA" , "type": "art"},
{"name":"misshapenchair", "id": "", "type": "essay"}
]}
[
{"name": "squibquib", "id": "UC-9-sjOyxoDCdQlVzObzGsw", "kind": "letsplay"},
{"name":"sinixdesign", "id":"UCUQTqWAaSzhAKRanOpes1nA" , "kind": "art"},
{"name":"misshapenchair", "id": "", "kind": "essay"}
]