1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-16 14:25:02 -05:00

Merge pull request #698 from loginfliggle/patch-1

Update tvrage_api.py
This commit is contained in:
echel0n 2014-08-09 01:19:34 -07:00
commit e25a2a8031

View File

@ -454,8 +454,11 @@ class TVRage:
value = value['#text']
if key == 'genre':
value = value['genre']
if not value:
value=[]
if not isinstance(value, list):
value = [value]
value = filter(None, value)
value = '|' + '|'.join(value) + '|'
try:
if key == 'firstaired' and value in "0000-00-00":