mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-06 03:18:01 -05:00
Bugfix for NoneType error when looking for genres on TVRage
This commit is contained in:
parent
1cb293f3d6
commit
88640b4af6
@ -596,20 +596,22 @@ class TVRage:
|
||||
|
||||
self._setShowData(sid, tag, value)
|
||||
|
||||
# Parse genre data
|
||||
log().debug('Getting genres of %s' % (sid))
|
||||
try:
|
||||
# Parse genre data
|
||||
log().debug('Getting genres of %s' % (sid))
|
||||
for genre in seriesInfoEt.find('genres'):
|
||||
if genre.tag in remap_keys:
|
||||
tag = remap_keys[genre.tag.lower()]
|
||||
else:
|
||||
tag = genre.tag.lower()
|
||||
|
||||
for genre in seriesInfoEt.find('genres'):
|
||||
if genre.tag in remap_keys:
|
||||
tag = remap_keys[genre.tag.lower()]
|
||||
else:
|
||||
tag = genre.tag.lower()
|
||||
value = genre.text
|
||||
if value is not None:
|
||||
value = self._cleanData(value)
|
||||
|
||||
value = genre.text
|
||||
if value is not None:
|
||||
value = self._cleanData(value)
|
||||
|
||||
self._setShowData(sid, tag, value)
|
||||
self._setShowData(sid, tag, value)
|
||||
except Exception:
|
||||
log().debug('No genres for %s' % (sid))
|
||||
|
||||
# Parse episode data
|
||||
log().debug('Getting all episodes of %s' % (sid))
|
||||
|
Loading…
Reference in New Issue
Block a user