This commit is contained in:
2025-07-08 10:58:19 +02:00
parent ce619f6925
commit 781bbe9fda
2 changed files with 26 additions and 7 deletions

View File

@@ -1,5 +1,3 @@
use std::collections::HashMap;
struct Channel {
id: String,
@@ -8,15 +6,15 @@ struct Channel {
}
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
async fn main() {
let channellist = "https://raw.githubusercontent.com/bvanroll/home/refs/heads/master/static/yters.yaml";
//getting the list of channels with id's first
//
//https://raw.githubusercontent.com/bvanroll/home/refs/heads/master/static/yters.json
let resp = reqwest::get(channellist)
.await?
.await.
.text()
.await?;
let channels: Vec<Channel> =serde_yaml_ng::from_str(&resp)?;
.await;
let channels: Vec<Channel> =serde_yaml_ng::from_str(&resp);
}