json
This commit is contained in:
@@ -9,7 +9,7 @@ struct Channel {
|
|||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() {
|
async fn main() {
|
||||||
let channellist = "https://raw.githubusercontent.com/bvanroll/home/refs/heads/master/static/yters.yaml";
|
let channellist = "https://raw.githubusercontent.com/bvanroll/home/refs/heads/master/static/yters.json";
|
||||||
//getting the list of channels with id's first
|
//getting the list of channels with id's first
|
||||||
//
|
//
|
||||||
//https://raw.githubusercontent.com/bvanroll/home/refs/heads/master/static/yters.json
|
//https://raw.githubusercontent.com/bvanroll/home/refs/heads/master/static/yters.json
|
||||||
@@ -20,6 +20,6 @@ async fn main() {
|
|||||||
// Ok(text) => text,
|
// Ok(text) => text,
|
||||||
// Err(error) => println!("NOPE"),
|
// Err(error) => println!("NOPE"),
|
||||||
// }; //
|
// }; //
|
||||||
let channels: Vec<Channel> =serde_yaml_ng::from_str(&resp).expect("EUH");
|
let channels: Vec<Channel> =serde_json::from_str(&resp).expect("EUH");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"squibquib":{ "id": "UC-9-sjOyxoDCdQlVzObzGsw", "type": "letsplay"},
|
{ "name": "squibquib", "id": "UC-9-sjOyxoDCdQlVzObzGsw", "type": "letsplay"},
|
||||||
"sinixdesign":{ "id":"UCUQTqWAaSzhAKRanOpes1nA" , "type": "art"},
|
{"name":"sinixdesign", "id":"UCUQTqWAaSzhAKRanOpes1nA" , "type": "art"},
|
||||||
"misshapenchair":{ "id": "", "type": "essay"}
|
{"name":"misshapenchair", "id": "", "type": "essay"}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user