TMDB set_infoLabels_item in try-except

This commit is contained in:
mac12m99
2021-04-26 21:05:01 +02:00
parent 2f38a52ec9
commit 6f6a13809a
2 changed files with 7 additions and 3 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
import xbmc, xbmcgui, sys, channelselector, time, os
from core import support
from core.support import dbg, tmdb
from core.item import Item
from core import channeltools, servertools, scrapertools
@@ -347,7 +346,7 @@ class SearchWindow(xbmcgui.WindowXML):
if self.item.mode != 'all':
for elem in results:
if elem.infoLabels['tmdb_id'] == self.item.infoLabels['tmdb_id']:
if elem.infoLabels.get('tmdb_id') == self.item.infoLabels.get('tmdb_id'):
elem.from_channel = channel
elem.verified = 1
valid.append(elem)