Fix Community Channels
This commit is contained in:
@@ -728,6 +728,7 @@ def load_and_check(item):
|
|||||||
# set extra values
|
# set extra values
|
||||||
def set_extra_values(item, json, path):
|
def set_extra_values(item, json, path):
|
||||||
logger.debug()
|
logger.debug()
|
||||||
|
# support.dbg()
|
||||||
ret = Item()
|
ret = Item()
|
||||||
for key in json:
|
for key in json:
|
||||||
if key == 'quality':
|
if key == 'quality':
|
||||||
@@ -743,7 +744,7 @@ def set_extra_values(item, json, path):
|
|||||||
elif key == 'fanart':
|
elif key == 'fanart':
|
||||||
ret.fanart = json[key] if ':/' in json[key] else filetools.join(path, json[key])
|
ret.fanart = json[key] if ':/' in json[key] else filetools.join(path, json[key])
|
||||||
elif key in ['url', 'link']:
|
elif key in ['url', 'link']:
|
||||||
ret.url = json[key] if ':/' in json[key] or type(json[key]) == dict else filetools.join(path, json[key])
|
ret.url = json[key] if ':/' in json[key] or type(json[key]) in (dict, OrderedDict) else filetools.join(path, json[key])
|
||||||
elif key == 'seasons_list':
|
elif key == 'seasons_list':
|
||||||
ret.url = {}
|
ret.url = {}
|
||||||
ret.url['seasons_list'] = json['seasons_list']
|
ret.url['seasons_list'] = json['seasons_list']
|
||||||
|
|||||||
Reference in New Issue
Block a user