upgrades
This commit is contained in:
@@ -272,7 +272,7 @@ impl JavtifulProvider {
|
||||
.split(" href=\"")
|
||||
.nth(1)
|
||||
.and_then(|s| s.split('"').next())
|
||||
.ok_or_else(|| ErrorKind::Parse("video url".into()))?
|
||||
.ok_or_else(|| ErrorKind::Parse("video url\n\n{seg}".into()))?
|
||||
.to_string();
|
||||
|
||||
let mut title = seg
|
||||
@@ -288,12 +288,12 @@ impl JavtifulProvider {
|
||||
.split('/')
|
||||
.nth(5)
|
||||
.and_then(|s| s.split('.').next())
|
||||
.ok_or_else(|| ErrorKind::Parse("video id".into()))?
|
||||
.ok_or_else(|| ErrorKind::Parse("video id\n\n{seg}".into()))?
|
||||
.to_string();
|
||||
let thumb_block = seg
|
||||
.split("<img ")
|
||||
.nth(1)
|
||||
.ok_or_else(|| ErrorKind::Parse("thumb block".into()))?;
|
||||
.ok_or_else(|| ErrorKind::Parse("thumb block\n\n{seg}".into()))?;
|
||||
|
||||
let thumb = thumb_block
|
||||
.split("data-src=\"")
|
||||
|
||||
Reference in New Issue
Block a user