fixes
This commit is contained in:
@@ -438,7 +438,8 @@ sys.stdout.buffer.write(response.content)
|
||||
uploaders: Arc<RwLock<Vec<FilterOption>>>,
|
||||
) -> Result<()> {
|
||||
let link_selector = Self::selector("a[href]")?;
|
||||
let article_selector = Self::selector("article.entry-tpl-grid, article.entry-tpl-list-fancy, article.post")?;
|
||||
let article_selector =
|
||||
Self::selector("article.entry-tpl-grid, article.entry-tpl-list-fancy, article.post")?;
|
||||
let pages = vec![
|
||||
format!("{base_url}/"),
|
||||
format!("{base_url}/page/2/"),
|
||||
@@ -643,7 +644,8 @@ sys.stdout.buffer.write(response.content)
|
||||
let source_selector = Self::selector(".entry-categories a[href]")?;
|
||||
let views_selector = Self::selector(".entry-views strong")?;
|
||||
let time_selector = Self::selector("time.entry-date[datetime]")?;
|
||||
let author_selector = Self::selector(".entry-author a[href] strong, .entry-author a[href]")?;
|
||||
let author_selector =
|
||||
Self::selector(".entry-author a[href] strong, .entry-author a[href]")?;
|
||||
|
||||
let mut items = Vec::new();
|
||||
|
||||
@@ -859,8 +861,12 @@ sys.stdout.buffer.write(response.content)
|
||||
.trim()
|
||||
.to_string();
|
||||
|
||||
if stream_url.is_empty() || !(stream_url.starts_with("https://") || stream_url.starts_with("http://")) {
|
||||
return Err(Error::from("vidara stream missing streaming_url".to_string()));
|
||||
if stream_url.is_empty()
|
||||
|| !(stream_url.starts_with("https://") || stream_url.starts_with("http://"))
|
||||
{
|
||||
return Err(Error::from(
|
||||
"vidara stream missing streaming_url".to_string(),
|
||||
));
|
||||
}
|
||||
|
||||
Ok(stream_url)
|
||||
@@ -1255,7 +1261,9 @@ impl Provider for PorndishProvider {
|
||||
let page = page.parse::<u32>().unwrap_or(1);
|
||||
|
||||
let videos = match query {
|
||||
Some(query) if !query.trim().is_empty() => self.query(cache, page, &query, options).await,
|
||||
Some(query) if !query.trim().is_empty() => {
|
||||
self.query(cache, page, &query, options).await
|
||||
}
|
||||
_ => self.get(cache, page, &sort, options).await,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user