diff --git a/src/api.rs b/src/api.rs index a8f19e6..2d73b8d 100644 --- a/src/api.rs +++ b/src/api.rs @@ -936,6 +936,68 @@ async fn status(req: HttpRequest) -> Result { nsfw: true, }); + //sxyprn + status.add_channel(Channel { + id: "sxyprn".to_string(), + name: "SexyPorn".to_string(), + description: "Free Porn Site".to_string(), + premium: false, + favicon: "https://www.google.com/s2/favicons?sz=64&domain=sxyprn.com".to_string(), + status: "active".to_string(), + categories: vec![], + options: vec![ + ChannelOption { + id: "sort".to_string(), + title: "Sort".to_string(), + description: "Sort the Videos".to_string(), //"Sort the videos by Date or Name.".to_string(), + systemImage: "list.number".to_string(), + colorName: "blue".to_string(), + options: vec![ + FilterOption { + id: "latest".to_string(), + title: "Latest".to_string(), + }, + FilterOption { + id: "views".to_string(), + title: "Views".to_string(), + }, + FilterOption { + id: "rating".to_string(), + title: "Rating".to_string(), + }, + FilterOption { + id: "orgasmic".to_string(), + title: "Orgasmic".to_string(), + }, + ], + multiSelect: false, + }, + ChannelOption { + id: "filter".to_string(), + title: "Filter".to_string(), + description: "Filter the Videos".to_string(), //"Sort the videos by Date or Name.".to_string(), + systemImage: "line.horizontal.3.decrease.circle".to_string(), + colorName: "green".to_string(), + options: vec![ + FilterOption { + id: "top".to_string(), + title: "Top".to_string(), + }, + FilterOption { + id: "other".to_string(), + title: "Other".to_string(), + }, + FilterOption { + id: "all".to_string(), + title: "All".to_string(), + }, + ], + multiSelect: false, + }, + ], + nsfw: true, + }); + status.iconUrl = format!("http://{}/favicon.ico", host).to_string(); Ok(web::HttpResponse::Ok().json(&status)) }