This commit is contained in:
Simon
2026-03-17 01:12:52 +00:00
parent a977381b3b
commit 9172941ac6
3 changed files with 235 additions and 62 deletions

View File

@@ -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,
};