Add warn message when using a non-premium account with download or archive

This commit is contained in:
bytedream 2024-04-14 21:43:24 +02:00
parent fe17f3951e
commit 6515d3025f
2 changed files with 8 additions and 0 deletions

View file

@ -271,6 +271,10 @@ impl Execute for Archive {
}
async fn execute(self, ctx: Context) -> Result<()> {
if !ctx.crunchy.premium().await {
warn!("You may not be able to download all requested videos when logging in anonymously or using a non-premium account")
}
let mut parsed_urls = vec![];
for (i, url) in self.urls.clone().into_iter().enumerate() {

View file

@ -212,6 +212,10 @@ impl Execute for Download {
}
async fn execute(self, ctx: Context) -> Result<()> {
if !ctx.crunchy.premium().await {
warn!("You may not be able to download all requested videos when logging in anonymously or using a non-premium account")
}
let mut parsed_urls = vec![];
let output_supports_softsubs = SOFTSUB_CONTAINERS.contains(