mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-22 04:45:05 +00:00
Fix banner url validation for TheTVDb api v3 lib.
This commit is contained in:
parent
1aa655e602
commit
7ce28b454b
1 changed files with 2 additions and 1 deletions
|
@ -518,7 +518,8 @@ class Tvdb(TVInfoBase):
|
||||||
if None is not v:
|
if None is not v:
|
||||||
if k in ['banner', 'fanart', 'poster', 'image'] and v:
|
if k in ['banner', 'fanart', 'poster', 'image'] and v:
|
||||||
v = (self.config['url_artworks'],
|
v = (self.config['url_artworks'],
|
||||||
self.config['url_artworks_search'])['banners/' in v] % v.lstrip('/')
|
self.config['url_artworks_search'])[
|
||||||
|
isinstance(v, string_types) and v.lstrip('/').startswith('banners/')] % v.lstrip('/')
|
||||||
elif 'genre' == k:
|
elif 'genre' == k:
|
||||||
keep_data['genre_list'] = v
|
keep_data['genre_list'] = v
|
||||||
v = '|'.join([clean_data(c) for c in v if isinstance(c, string_types)])
|
v = '|'.join([clean_data(c) for c in v if isinstance(c, string_types)])
|
||||||
|
|
Loading…
Reference in a new issue