hot -> new
This commit is contained in:
22
src/api.rs
22
src/api.rs
@@ -249,17 +249,17 @@ async fn status(req: HttpRequest) -> Result<impl web::Responder, web::Error> {
|
|||||||
],
|
],
|
||||||
nsfw: true,
|
nsfw: true,
|
||||||
});
|
});
|
||||||
// status.add_channel(Channel {
|
status.add_channel(Channel {
|
||||||
// id: "erothots".to_string(),
|
id: "erothots".to_string(),
|
||||||
// name: "Erothots".to_string(),
|
name: "Erothots".to_string(),
|
||||||
// description: "Free Onlyfans Content".to_string(),
|
description: "Free Onlyfans Content".to_string(),
|
||||||
// premium: false,
|
premium: false,
|
||||||
// favicon: "https://www.google.com/s2/favicons?sz=64&domain=erothots.co".to_string(),
|
favicon: "https://www.google.com/s2/favicons?sz=64&domain=erothots.co".to_string(),
|
||||||
// status: "active".to_string(),
|
status: "active".to_string(),
|
||||||
// categories: vec![],
|
categories: vec![],
|
||||||
// options: vec![],
|
options: vec![],
|
||||||
// nsfw: true,
|
nsfw: true,
|
||||||
// });
|
});
|
||||||
status.add_channel(Channel {
|
status.add_channel(Channel {
|
||||||
id: "spankbang".to_string(),
|
id: "spankbang".to_string(),
|
||||||
name: "Work in Progress - SpankBang".to_string(),
|
name: "Work in Progress - SpankBang".to_string(),
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ impl ErothotsProvider {
|
|||||||
}
|
}
|
||||||
async fn get(&self, cache:VideoCache, page: u8) -> Result<Vec<VideoItem>> {
|
async fn get(&self, cache:VideoCache, page: u8) -> Result<Vec<VideoItem>> {
|
||||||
|
|
||||||
let mut prefix_uri = "videos/hot".to_string();
|
let mut prefix_uri = "videos/new".to_string();
|
||||||
let mut url = format!("{}{}?p={}", self.url, prefix_uri, page-1);
|
let mut url = format!("{}{}?p={}", self.url, prefix_uri, page-1);
|
||||||
if page == 1 {
|
if page == 1 {
|
||||||
url = format!("{}{}", self.url, prefix_uri);
|
url = format!("{}{}", self.url, prefix_uri);
|
||||||
|
|||||||
Reference in New Issue
Block a user