@@ -592,7 +592,7 @@ def sync_trakt_episodes(self):
592
592
if not trakt_indexer :
593
593
continue
594
594
595
- indexer_id = trakt_show ['ids' ].get (trakt_indexer )
595
+ indexer_id = watchlist_item ['ids' ].get (trakt_indexer )
596
596
indexer = indexerConfig [i ]['id' ]
597
597
show = Show .find_by_id (app .showList , indexer , indexer_id )
598
598
if show :
@@ -601,18 +601,18 @@ def sync_trakt_episodes(self):
601
601
if not show :
602
602
# If can't find with available indexers try IMDB
603
603
trakt_indexer = get_trakt_indexer (EXTERNAL_IMDB )
604
- indexer_id = trakt_show ['ids' ].get (trakt_indexer )
604
+ indexer_id = watchlist_item ['ids' ].get (trakt_indexer )
605
605
show = Show .find_by_id (app .showList , EXTERNAL_IMDB , indexer_id )
606
606
if not show :
607
607
# If can't find with available indexers try TRAKT
608
608
trakt_indexer = get_trakt_indexer (EXTERNAL_TRAKT )
609
- indexer_id = trakt_show ['ids' ].get (trakt_indexer )
609
+ indexer_id = watchlist_item ['ids' ].get (trakt_indexer )
610
610
show = Show .find_by_id (app .showList , EXTERNAL_TRAKT , indexer_id )
611
611
612
612
# If can't find show add with default trakt indexer
613
613
if not show :
614
614
trakt_indexer = get_trakt_indexer (trakt_default_indexer )
615
- indexer_id = trakt_show ['ids' ].get (trakt_indexer )
615
+ indexer_id = watchlist_item ['ids' ].get (trakt_indexer )
616
616
# Only add show if we didn't added it before
617
617
if indexer_id not in added_shows :
618
618
self .add_show (trakt_default_indexer , indexer_id , trakt_show ['title' ], SKIPPED )
0 commit comments