This commit is contained in:
Simon
2026-01-14 11:30:32 +00:00
parent cce6104df3
commit 602dbe50f0
4 changed files with 32 additions and 13 deletions

View File

@@ -232,6 +232,7 @@ impl JavtifulProvider {
let futures = block
.split("card ")
.skip(1)
.filter(|seg| !seg.contains("SPONSOR"))
.map(|el| self.get_video_item(el.to_string(), requester.clone()));
join_all(futures)
@@ -278,7 +279,7 @@ impl JavtifulProvider {
.split(" alt=\"")
.nth(1)
.and_then(|s| s.split('"').next())
.ok_or_else(|| ErrorKind::Parse("video title".into()))?
.ok_or_else(|| ErrorKind::Parse(format!("video title\n\n{seg}").into()))?
.trim()
.to_string();