mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Skip premium episode if account has no premium subscription
This commit is contained in:
parent
d7dac2acd4
commit
cdad7fc000
4 changed files with 69 additions and 8 deletions
|
|
@ -246,10 +246,15 @@ impl Execute for Download {
|
|||
|
||||
for (i, (media_collection, url_filter)) in parsed_urls.into_iter().enumerate() {
|
||||
let progress_handler = progress!("Fetching series details");
|
||||
let single_format_collection =
|
||||
DownloadFilter::new(url_filter, self.clone(), !self.yes, self.skip_specials)
|
||||
.visit(media_collection)
|
||||
.await?;
|
||||
let single_format_collection = DownloadFilter::new(
|
||||
url_filter,
|
||||
self.clone(),
|
||||
!self.yes,
|
||||
self.skip_specials,
|
||||
ctx.crunchy.premium().await,
|
||||
)
|
||||
.visit(media_collection)
|
||||
.await?;
|
||||
|
||||
if single_format_collection.is_empty() {
|
||||
progress_handler.stop(format!("Skipping url {} (no matching videos found)", i + 1));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue