mirror of
https://github.com/gabehf/sonarr-anime-importer.git
synced 2026-03-15 18:15:53 -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
|
// map the data
|
||||||
for _, item := range result.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++
|
count++
|
||||||
if count > limit {
|
if count > limit {
|
||||||
break
|
break
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue