l3uddz / traktarr

Script to add new series & movies to Sonarr/Radarr based on Trakt lists.
GNU General Public License v3.0
576 stars 52 forks source link

Addings shows without a country #77

Closed Deviousretard closed 5 years ago

Deviousretard commented 5 years ago

Adding shows that do not have a country set in trakt results in an error and it ignores the show.

Traceback (most recent call last):
  File "/usr/local/bin/traktarr", line 306, in shows
    series['show']['country'].upper())
AttributeError: 'NoneType' object has no attribute 'upper'

This is while using the --ignore-blacklist command aswell.

desimaniac commented 5 years ago

Traktarr does not add TV shows or Movies that are missing a country. That is done to filter out incomplete entries. That error could be handled better, though.

Deviousretard commented 5 years ago

I managed to work around it myself by deleting some code from the traktarr.py

', '.join(series['show']['genres']), series['show']['network'],
series['show']['country'].upper

lines 305-306 Be sure to leave the ()) to close it up.

desimaniac commented 5 years ago

Should be fixed now.