From 0b53777f3932f633baf6ca0b1cce97bf46cbfc69 Mon Sep 17 00:00:00 2001 From: Timon Ringwald Date: Sun, 21 Aug 2022 21:36:44 +0200 Subject: [PATCH] logging improved --- main.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 7f4ae69..992ad0c 100644 --- a/main.go +++ b/main.go @@ -57,9 +57,9 @@ var ( ) func main() { - fmt.Println("language priorites:", PreferredLanguages) - fmt.Println("subtitle priorites:", PreferredSubtitles) - fmt.Println("resolution priorites:", PreferredResolutions) + fmt.Println("language priorites:", Map2Str(PreferredLanguages)) + fmt.Println("subtitle priorites:", Map2Str(PreferredSubtitles)) + fmt.Println("resolution priorites:", Map2Str(PreferredResolutions)) if len(AnimeStatus) == 0 { AnimeStatus = []anilist.MediaListStatus{ @@ -104,6 +104,8 @@ func checkTorrents() { fmt.Printf("\nanime: %s | episode: %d | torrents found: %d\n", animeEp.Anime, animeEp.Episode, len(torrentPriorities)) for _, torrentPriority := range torrentPriorities { PrintTorrentPriority(torrentPriority) + + // TODO download anime episode with highest priority (first on in slice) } }