it works?
This commit is contained in:
@@ -18,12 +18,12 @@ async fn main() {
|
|||||||
//
|
//
|
||||||
//https://raw.githubusercontent.com/bvanroll/home/refs/heads/master/static/yters.json
|
//https://raw.githubusercontent.com/bvanroll/home/refs/heads/master/static/yters.json
|
||||||
let resp = reqwest::get(channellist)//.await.unwrap().text().await;
|
let resp = reqwest::get(channellist)//.await.unwrap().text().await;
|
||||||
.await.expect("wa?")
|
.await.unwrap()
|
||||||
.text().await.expect("euh");
|
.text().await.unwrap();
|
||||||
// let text = match resp {
|
// let text = match resp {
|
||||||
// Ok(text) => text,
|
// Ok(text) => text,
|
||||||
// Err(error) => println!("NOPE"),
|
// 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();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{"items":[
|
[
|
||||||
{ "name": "squibquib", "id": "UC-9-sjOyxoDCdQlVzObzGsw", "type": "letsplay"},
|
{"name": "squibquib", "id": "UC-9-sjOyxoDCdQlVzObzGsw", "kind": "letsplay"},
|
||||||
{"name":"sinixdesign", "id":"UCUQTqWAaSzhAKRanOpes1nA" , "type": "art"},
|
{"name":"sinixdesign", "id":"UCUQTqWAaSzhAKRanOpes1nA" , "kind": "art"},
|
||||||
{"name":"misshapenchair", "id": "", "type": "essay"}
|
{"name":"misshapenchair", "id": "", "kind": "essay"}
|
||||||
]}
|
]
|
||||||
|
Reference in New Issue
Block a user