upgrades
This commit is contained in:
@@ -147,11 +147,9 @@ impl VideoItem {
|
||||
aspectRatio: None,
|
||||
}
|
||||
}
|
||||
#[cfg(any(not(hottub_single_provider), hottub_provider = "hentaihaven"))]
|
||||
pub fn from(s: String) -> Result<Self, serde_json::Error> {
|
||||
serde_json::from_str::<VideoItem>(&s)
|
||||
}
|
||||
#[cfg(any(not(hottub_single_provider), hottub_provider = "hanime"))]
|
||||
pub fn tags(mut self, tags: Vec<String>) -> Self {
|
||||
if tags.is_empty() {
|
||||
return self;
|
||||
|
||||
Reference in New Issue
Block a user