mirror of
https://github.com/gabehf/sonarr-anime-importer.git
synced 2026-03-12 08:50:27 -07:00
add skipping for unknown series
This commit is contained in:
parent
84b1184061
commit
b3ffa247ee
1 changed files with 4 additions and 0 deletions
4
main.go
4
main.go
|
|
@ -68,6 +68,10 @@ func getAnimeSearch(malToTvdb map[int]int, r *http.Request) (string, error) {
|
|||
|
||||
// map the data
|
||||
for _, item := range result.Data {
|
||||
if malToTvdb[item.MalId] == 0 {
|
||||
log.Printf("MyAnimeList ID %d (%s a.k.a. %s) has no associated TVDB ID, skipping...\n", item.MalId, item.Title, item.TitleEnglish)
|
||||
continue
|
||||
}
|
||||
count++
|
||||
if count > limit {
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue