mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Set beta url notice only if account is premium
This commit is contained in:
parent
5b3466d06d
commit
6c476df24e
2 changed files with 8 additions and 4 deletions
|
|
@ -182,8 +182,10 @@ func archive(urls []string) error {
|
|||
episodes, err := archiveExtractEpisodes(url)
|
||||
if err != nil {
|
||||
out.StopProgress("Failed to parse url %d", i+1)
|
||||
out.Debug("If the error says no episodes could be found but the passed url is correct and a crunchyroll classic url, " +
|
||||
"try the corresponding crunchyroll beta url instead and try again. See https://github.com/ByteDream/crunchyroll-go/issues/22 for more information")
|
||||
if crunchy.Config.Premium {
|
||||
out.Debug("If the error says no episodes could be found but the passed url is correct and a crunchyroll classic url, " +
|
||||
"try the corresponding crunchyroll beta url instead and try again. See https://github.com/ByteDream/crunchyroll-go/issues/22 for more information")
|
||||
}
|
||||
return err
|
||||
}
|
||||
out.StopProgress("Parsed url %d", i+1)
|
||||
|
|
|
|||
|
|
@ -128,8 +128,10 @@ func download(urls []string) error {
|
|||
episodes, err := downloadExtractEpisodes(url)
|
||||
if err != nil {
|
||||
out.StopProgress("Failed to parse url %d", i+1)
|
||||
out.Debug("If the error says no episodes could be found but the passed url is correct and a crunchyroll classic url, " +
|
||||
"try the corresponding crunchyroll beta url instead and try again. See https://github.com/ByteDream/crunchyroll-go/issues/22 for more information")
|
||||
if crunchy.Config.Premium {
|
||||
out.Debug("If the error says no episodes could be found but the passed url is correct and a crunchyroll classic url, " +
|
||||
"try the corresponding crunchyroll beta url instead and try again. See https://github.com/ByteDream/crunchyroll-go/issues/22 for more information")
|
||||
}
|
||||
return err
|
||||
}
|
||||
out.StopProgress("Parsed url %d", i+1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue