Compare commits
2 Commits
c0717fdacf
...
b8c326306d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b8c326306d | ||
|
|
041460d9b9 |
5
build.rs
5
build.rs
@@ -209,6 +209,11 @@ const PROVIDERS: &[ProviderDef] = &[
|
|||||||
module: "supjav",
|
module: "supjav",
|
||||||
ty: "SupjavProvider",
|
ty: "SupjavProvider",
|
||||||
},
|
},
|
||||||
|
ProviderDef {
|
||||||
|
id: "vjav",
|
||||||
|
module: "vjav",
|
||||||
|
ty: "VjavProvider",
|
||||||
|
},
|
||||||
ProviderDef {
|
ProviderDef {
|
||||||
id: "hypnotube",
|
id: "hypnotube",
|
||||||
module: "hypnotube",
|
module: "hypnotube",
|
||||||
|
|||||||
@@ -220,59 +220,6 @@ impl SextbProvider {
|
|||||||
],
|
],
|
||||||
multiSelect: false,
|
multiSelect: false,
|
||||||
},
|
},
|
||||||
ChannelOption {
|
|
||||||
id: "filter".to_string(),
|
|
||||||
title: "Section".to_string(),
|
|
||||||
description: "Browse one of the main site sections.".to_string(),
|
|
||||||
systemImage: "square.grid.2x2".to_string(),
|
|
||||||
colorName: "green".to_string(),
|
|
||||||
options: vec![
|
|
||||||
FilterOption {
|
|
||||||
id: "censored".to_string(),
|
|
||||||
title: "Censored".to_string(),
|
|
||||||
},
|
|
||||||
FilterOption {
|
|
||||||
id: "uncensored".to_string(),
|
|
||||||
title: "Uncensored".to_string(),
|
|
||||||
},
|
|
||||||
FilterOption {
|
|
||||||
id: "subtitle".to_string(),
|
|
||||||
title: "Subtitle".to_string(),
|
|
||||||
},
|
|
||||||
FilterOption {
|
|
||||||
id: "amateur".to_string(),
|
|
||||||
title: "Amateur".to_string(),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
multiSelect: false,
|
|
||||||
},
|
|
||||||
ChannelOption {
|
|
||||||
id: "categories".to_string(),
|
|
||||||
title: "Genres".to_string(),
|
|
||||||
description: "Browse direct genre archive pages.".to_string(),
|
|
||||||
systemImage: "tag.fill".to_string(),
|
|
||||||
colorName: "orange".to_string(),
|
|
||||||
options: genres,
|
|
||||||
multiSelect: false,
|
|
||||||
},
|
|
||||||
ChannelOption {
|
|
||||||
id: "sites".to_string(),
|
|
||||||
title: "Studios".to_string(),
|
|
||||||
description: "Browse direct studio archive pages.".to_string(),
|
|
||||||
systemImage: "building.2.fill".to_string(),
|
|
||||||
colorName: "purple".to_string(),
|
|
||||||
options: studios,
|
|
||||||
multiSelect: false,
|
|
||||||
},
|
|
||||||
ChannelOption {
|
|
||||||
id: "stars".to_string(),
|
|
||||||
title: "Actresses".to_string(),
|
|
||||||
description: "Browse direct actress archive pages.".to_string(),
|
|
||||||
systemImage: "person.crop.square".to_string(),
|
|
||||||
colorName: "pink".to_string(),
|
|
||||||
options: actresses,
|
|
||||||
multiSelect: false,
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
nsfw: true,
|
nsfw: true,
|
||||||
cacheDuration: Some(1800),
|
cacheDuration: Some(1800),
|
||||||
|
|||||||
@@ -181,14 +181,6 @@ impl SupjavProvider {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn build_channel(&self, _clientversion: ClientVersion) -> Channel {
|
fn build_channel(&self, _clientversion: ClientVersion) -> Channel {
|
||||||
let tags = self.tags.read().map(|value| value.clone()).unwrap_or_default();
|
|
||||||
let uploaders = self
|
|
||||||
.uploaders
|
|
||||||
.read()
|
|
||||||
.map(|value| value.clone())
|
|
||||||
.unwrap_or_default();
|
|
||||||
let stars = self.stars.read().map(|value| value.clone()).unwrap_or_default();
|
|
||||||
|
|
||||||
Channel {
|
Channel {
|
||||||
id: CHANNEL_ID.to_string(),
|
id: CHANNEL_ID.to_string(),
|
||||||
name: "SupJav".to_string(),
|
name: "SupJav".to_string(),
|
||||||
@@ -231,43 +223,6 @@ impl SupjavProvider {
|
|||||||
],
|
],
|
||||||
multiSelect: false,
|
multiSelect: false,
|
||||||
},
|
},
|
||||||
ChannelOption {
|
|
||||||
id: "filter".to_string(),
|
|
||||||
title: "Category".to_string(),
|
|
||||||
description: "Browse a SupJav category archive directly.".to_string(),
|
|
||||||
systemImage: "line.horizontal.3.decrease.circle".to_string(),
|
|
||||||
colorName: "green".to_string(),
|
|
||||||
options: self.categories.clone(),
|
|
||||||
multiSelect: false,
|
|
||||||
},
|
|
||||||
ChannelOption {
|
|
||||||
id: "sites".to_string(),
|
|
||||||
title: "Makers".to_string(),
|
|
||||||
description: "Browse maker archives and reuse them as uploader targets."
|
|
||||||
.to_string(),
|
|
||||||
systemImage: "building.2".to_string(),
|
|
||||||
colorName: "purple".to_string(),
|
|
||||||
options: uploaders,
|
|
||||||
multiSelect: false,
|
|
||||||
},
|
|
||||||
ChannelOption {
|
|
||||||
id: "stars".to_string(),
|
|
||||||
title: "Cast".to_string(),
|
|
||||||
description: "Browse cast archives directly.".to_string(),
|
|
||||||
systemImage: "person.2".to_string(),
|
|
||||||
colorName: "pink".to_string(),
|
|
||||||
options: stars,
|
|
||||||
multiSelect: false,
|
|
||||||
},
|
|
||||||
ChannelOption {
|
|
||||||
id: "categories".to_string(),
|
|
||||||
title: "Genres".to_string(),
|
|
||||||
description: "Browse a genre/tag archive directly.".to_string(),
|
|
||||||
systemImage: "tag.fill".to_string(),
|
|
||||||
colorName: "orange".to_string(),
|
|
||||||
options: tags,
|
|
||||||
multiSelect: false,
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
nsfw: true,
|
nsfw: true,
|
||||||
cacheDuration: Some(1800),
|
cacheDuration: Some(1800),
|
||||||
|
|||||||
1740
src/providers/vjav.rs
Normal file
1740
src/providers/vjav.rs
Normal file
File diff suppressed because it is too large
Load Diff
@@ -172,7 +172,11 @@ impl Requester {
|
|||||||
Ok(response.text().await?)
|
Ok(response.text().await?)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(not(hottub_single_provider), hottub_provider = "hypnotube"))]
|
#[cfg(any(
|
||||||
|
not(hottub_single_provider),
|
||||||
|
hottub_provider = "hypnotube",
|
||||||
|
hottub_provider = "vjav",
|
||||||
|
))]
|
||||||
fn debug_cookie_preview_from_borrowed_headers(
|
fn debug_cookie_preview_from_borrowed_headers(
|
||||||
&self,
|
&self,
|
||||||
url: &str,
|
url: &str,
|
||||||
@@ -379,6 +383,7 @@ impl Requester {
|
|||||||
not(hottub_single_provider),
|
not(hottub_single_provider),
|
||||||
hottub_provider = "hypnotube",
|
hottub_provider = "hypnotube",
|
||||||
hottub_provider = "freeuseporn",
|
hottub_provider = "freeuseporn",
|
||||||
|
hottub_provider = "vjav",
|
||||||
))]
|
))]
|
||||||
pub async fn post(
|
pub async fn post(
|
||||||
&mut self,
|
&mut self,
|
||||||
|
|||||||
Reference in New Issue
Block a user