This commit is contained in:
Simon
2025-08-03 18:56:07 +00:00
parent 5dd92b21c4
commit b6f6212de0

View File

@@ -463,6 +463,7 @@ impl PerverzijaProvider {
); );
} }
} }
if text.contains("<strong>Stars: </strong>"){
let stars_parts: Vec<&str> = text.split("<strong>Stars: </strong>").collect::<Vec<&str>>()[1].split("</div>").collect::<Vec<&str>>()[0].split("<a href=\"").collect::<Vec<&str>>(); let stars_parts: Vec<&str> = text.split("<strong>Stars: </strong>").collect::<Vec<&str>>()[1].split("</div>").collect::<Vec<&str>>()[0].split("<a href=\"").collect::<Vec<&str>>();
for star in stars_parts.iter().skip(1) { for star in stars_parts.iter().skip(1) {
if star.starts_with("https://tube.perverzija.com/stars/"){ if star.starts_with("https://tube.perverzija.com/stars/"){
@@ -473,6 +474,7 @@ impl PerverzijaProvider {
); );
} }
} }
}
let tags_parts: Vec<&str> = text.split("<strong>Tags: </strong>").collect::<Vec<&str>>()[1].split("</div>").collect::<Vec<&str>>()[0].split("<a href=\"").collect::<Vec<&str>>(); let tags_parts: Vec<&str> = text.split("<strong>Tags: </strong>").collect::<Vec<&str>>()[1].split("</div>").collect::<Vec<&str>>()[0].split("<a href=\"").collect::<Vec<&str>>();
for star in tags_parts.iter().skip(1) { for star in tags_parts.iter().skip(1) {