mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-04 10:23:37 +00:00
Update trakt.py
This commit is contained in:
parent
94ec9e6e6b
commit
768cdffb42
1 changed files with 9 additions and 4 deletions
|
@ -68,10 +68,15 @@ class TraktNotifier:
|
||||||
|
|
||||||
# URL parameters, should not need to recheck data (done above)
|
# URL parameters, should not need to recheck data (done above)
|
||||||
data = {
|
data = {
|
||||||
|
'shows': [
|
||||||
|
{
|
||||||
'tvdb_id': ep_obj.show.indexerid,
|
'tvdb_id': ep_obj.show.indexerid,
|
||||||
'title': ep_obj.show.name,
|
'title': ep_obj.show.name,
|
||||||
'year': ep_obj.show.startyear
|
'year': ep_obj.show.startyear
|
||||||
}
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
TraktCall("show/unwatchlist/%API%", self._api(), self._username(), self._password(), data)
|
TraktCall("show/unwatchlist/%API%", self._api(), self._username(), self._password(), data)
|
||||||
|
|
||||||
# Remove all episodes from episode watchlist
|
# Remove all episodes from episode watchlist
|
||||||
|
@ -82,7 +87,7 @@ class TraktNotifier:
|
||||||
for show in watchlist:
|
for show in watchlist:
|
||||||
# Check if tvdb_id exists
|
# Check if tvdb_id exists
|
||||||
if 'tvdb_id' in show:
|
if 'tvdb_id' in show:
|
||||||
if unicode(data['tvdb_id']) == show['tvdb_id']:
|
if unicode(data['shows'][0]['tvdb_id']) == show['tvdb_id']:
|
||||||
data_show = {
|
data_show = {
|
||||||
'title': show['title'],
|
'title': show['title'],
|
||||||
'tvdb_id': show['tvdb_id'],
|
'tvdb_id': show['tvdb_id'],
|
||||||
|
|
Loading…
Reference in a new issue