From 0e8738a3044468041dc2bbd1a837c6a90914eb7a Mon Sep 17 00:00:00 2001 From: bytedream Date: Sun, 6 Feb 2022 13:25:38 +0100 Subject: [PATCH] Fixed nil map error --- utils/walk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/walk.go b/utils/walk.go index 4eb9ff3..f5e96d3 100644 --- a/utils/walk.go +++ b/utils/walk.go @@ -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)) {