logging improved

This commit is contained in:
Timon Ringwald 2022-08-21 21:36:44 +02:00
parent dc80a4a4fe
commit 0b53777f39

View File

@ -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)
}
}