From f87b46a083318231b6bf977e5c7ac760675aeaf3 Mon Sep 17 00:00:00 2001 From: bvanroll Date: Thu, 10 Jul 2025 09:36:37 +0200 Subject: [PATCH] json --- homegrown/email/src/main.rs | 4 ++-- static/yters.json | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/homegrown/email/src/main.rs b/homegrown/email/src/main.rs index d489977..ae7c28a 100644 --- a/homegrown/email/src/main.rs +++ b/homegrown/email/src/main.rs @@ -9,7 +9,7 @@ struct Channel { #[tokio::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 // //https://raw.githubusercontent.com/bvanroll/home/refs/heads/master/static/yters.json @@ -20,6 +20,6 @@ async fn main() { // Ok(text) => text, // Err(error) => println!("NOPE"), // }; // - let channels: Vec =serde_yaml_ng::from_str(&resp).expect("EUH"); + let channels: Vec =serde_json::from_str(&resp).expect("EUH"); } diff --git a/static/yters.json b/static/yters.json index c4c6695..3cfab04 100644 --- a/static/yters.json +++ b/static/yters.json @@ -1,5 +1,5 @@ { - "squibquib":{ "id": "UC-9-sjOyxoDCdQlVzObzGsw", "type": "letsplay"}, - "sinixdesign":{ "id":"UCUQTqWAaSzhAKRanOpes1nA" , "type": "art"}, - "misshapenchair":{ "id": "", "type": "essay"} + { "name": "squibquib", "id": "UC-9-sjOyxoDCdQlVzObzGsw", "type": "letsplay"}, + {"name":"sinixdesign", "id":"UCUQTqWAaSzhAKRanOpes1nA" , "type": "art"}, + {"name":"misshapenchair", "id": "", "type": "essay"} }