Skip to content

Commit

Permalink
skip tvmaze shows with an invalid tvdb id
Browse files Browse the repository at this point in the history
  • Loading branch information
l3uddz committed Feb 8, 2020
1 parent daf8317 commit f352b97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions provider/tvmaze.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ func (p *TvMaze) GetShows() error {
mediaItems := make(map[string]MediaItem, 0)

for _, item := range s {
// skip invalid items
if item.Embedded.Show.Externals.Thetvdb < 1 {
continue
}

itemId := strconv.Itoa(item.Embedded.Show.Externals.Thetvdb)

// skip non-english language shows
Expand Down

0 comments on commit f352b97

Please sign in to comment.