Update dependencies and fix #59 partially

This commit is contained in:
ByteDream 2022-10-20 22:02:44 +02:00
parent cd1587c613
commit e0d100b627
4 changed files with 5 additions and 17 deletions

View file

@ -211,10 +211,6 @@ func archive(urls []string) error {
episodes, err := archiveExtractEpisodes(url)
if err != nil {
utils.Log.StopProcess("Failed to parse url %d", i+1)
if utils.Crunchy.Config.Premium {
utils.Log.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/crunchy-labs/crunchy-cli/issues/22 for more information")
}
return err
}
utils.Log.StopProcess("Parsed url %d", i+1)
@ -737,9 +733,7 @@ func archiveExtractEpisodes(url string) ([][]utils.FormatInformation, error) {
}
}
if _, ok := crunchyroll.ParseBetaEpisodeURL(url); ok {
return nil, fmt.Errorf("archiving episodes by url is no longer supported (thx crunchyroll). use the series url instead and filter after the given episode (https://github.com/crunchy-labs/crunchy-cli/wiki/Cli#filter)")
} else if _, _, _, _, ok := crunchyroll.ParseEpisodeURL(url); ok {
if _, ok := crunchyroll.ParseEpisodeURL(url); ok {
return nil, fmt.Errorf("archiving episodes by url is no longer supported (thx crunchyroll). use the series url instead and filter after the given episode (https://github.com/crunchy-labs/crunchy-cli/wiki/Cli#filter)")
}