Merge branch 'hotfix/3.29.6'

This commit is contained in:
JackDandy 2023-09-06 00:59:09 +01:00
commit c950fcb686
24 changed files with 11 additions and 3 deletions

View file

@ -1,4 +1,10 @@
### 3.29.5 (2023-09-05 23:40:00 UTC) ### 3.29.6 (2023-09-06 00:54:00 UTC)
* Fix banner url validation for TheTVDb api v3 lib
* Fix mock data for CI tests
### 3.29.5 (2023-09-05 23:40:00 UTC)
* Change allow Python 3.11.5, 3.10.13, 3.9.18, and 3.8.18 * Change allow Python 3.11.5, 3.10.13, 3.9.18, and 3.8.18

View file

@ -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)])

View file

@ -2,6 +2,7 @@ import unittest
import sys import sys
import os.path import os.path
sys.path.insert(1, os.path.abspath('..'))
sys.path.insert(1, os.path.abspath('../lib')) sys.path.insert(1, os.path.abspath('../lib'))
from sickgear import helpers from sickgear import helpers

View file

@ -1 +1 @@
2023-03-08 2023-09-06