mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 08:53:37 +00:00
Use correct item name
This commit is contained in:
parent
f86331b746
commit
fea49167c5
1 changed files with 14 additions and 11 deletions
|
@ -67,7 +67,8 @@ class TraktNotifier:
|
|||
# URL parameters, should not need to recheck data (done above)
|
||||
data = {
|
||||
'tvdb_id': ep_obj.show.indexerid,
|
||||
'title': ep_obj.show.name,'year': ep_obj.show.startyear
|
||||
'title': ep_obj.show.name,
|
||||
'year': ep_obj.show.startyear
|
||||
}
|
||||
TraktCall("show/unwatchlist/%API%", self._api(), self._username(), self._password(), data)
|
||||
|
||||
|
@ -77,7 +78,9 @@ class TraktNotifier:
|
|||
|
||||
# Convert watchlist to only contain current show
|
||||
for show in watchlist:
|
||||
if unicode(data['shows'][0]['tvdb_id']) == show['tvdb_id']:
|
||||
# Check if tvdb_id exists
|
||||
if 'tvdb_id' in show:
|
||||
if unicode(data['tvdb_id']) == show['tvdb_id']:
|
||||
data_show = {
|
||||
'title': show['title'],
|
||||
'tvdb_id': show['tvdb_id'],
|
||||
|
|
Loading…
Reference in a new issue