From 4d1d386c2d62673e06a716de3d973eb742c271ce Mon Sep 17 00:00:00 2001 From: bvanroll Date: Thu, 10 Jul 2025 09:47:22 +0200 Subject: [PATCH] it works? --- homegrown/email/src/main.rs | 6 +++--- static/yters.json | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/homegrown/email/src/main.rs b/homegrown/email/src/main.rs index 928ed49..9b75bbd 100644 --- a/homegrown/email/src/main.rs +++ b/homegrown/email/src/main.rs @@ -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::>(&resp).expect("EUH"); + let channels =serde_json::from_str::>(&resp).unwrap(); } diff --git a/static/yters.json b/static/yters.json index f0ff746..b4bf8a3 100644 --- a/static/yters.json +++ b/static/yters.json @@ -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"} +]