Fixed nil map error

This commit is contained in:
bytedream 2022-02-06 13:25:38 +01:00
parent 21619fe333
commit 0e8738a304

View file

@ -30,7 +30,7 @@ type EpisodeWalker struct {
// Urls to seasons and episodes are support, normal as well as beta urls
func (ew EpisodeWalker) WalkURLs(urls []string) error {
var episodeIds, seasonIds, seriesNames []string
var episodeNames map[string][]string
episodeNames := make(map[string][]string)
for _, url := range urls {
if episodeId, ok := crunchyroll.ParseBetaEpisodeURL(url); ok && !(ew.CheckDuplicates && sliceContains(episodeIds, episodeId)) {