Add notice when downloading via cli and no episodes could be found

This commit is contained in:
bytedream 2022-04-15 22:16:45 +02:00
parent 02bd33ef59
commit db30b9eadc
2 changed files with 4 additions and 0 deletions

View file

@ -182,6 +182,8 @@ 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")
return err
}
out.StopProgress("Parsed url %d", i+1)

View file

@ -128,6 +128,8 @@ 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")
return err
}
out.StopProgress("Parsed url %d", i+1)