hentaihaven
This commit is contained in:
@@ -144,6 +144,9 @@ impl VideoItem {
|
||||
aspectRatio: None,
|
||||
}
|
||||
}
|
||||
pub fn from(s: String) -> Result<Self, serde_json::Error> {
|
||||
serde_json::from_str::<VideoItem>(&s)
|
||||
}
|
||||
pub fn tags(mut self, tags: Vec<String>) -> Self {
|
||||
if tags.is_empty(){
|
||||
return self;
|
||||
|
||||
Reference in New Issue
Block a user