Set beta url notice only if account is premium

This commit is contained in:
bytedream 2022-05-16 22:07:44 +02:00
parent 5b3466d06d
commit 6c476df24e
2 changed files with 8 additions and 4 deletions

View file

@ -182,8 +182,10 @@ func archive(urls []string) error {
episodes, err := archiveExtractEpisodes(url) episodes, err := archiveExtractEpisodes(url)
if err != nil { if err != nil {
out.StopProgress("Failed to parse url %d", i+1) 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, " + if crunchy.Config.Premium {
"try the corresponding crunchyroll beta url instead and try again. See https://github.com/ByteDream/crunchyroll-go/issues/22 for more information") 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 return err
} }
out.StopProgress("Parsed url %d", i+1) out.StopProgress("Parsed url %d", i+1)

View file

@ -128,8 +128,10 @@ func download(urls []string) error {
episodes, err := downloadExtractEpisodes(url) episodes, err := downloadExtractEpisodes(url)
if err != nil { if err != nil {
out.StopProgress("Failed to parse url %d", i+1) 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, " + if crunchy.Config.Premium {
"try the corresponding crunchyroll beta url instead and try again. See https://github.com/ByteDream/crunchyroll-go/issues/22 for more information") 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 return err
} }
out.StopProgress("Parsed url %d", i+1) out.StopProgress("Parsed url %d", i+1)