mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Fix for mediabrowser absolute_number issue
This commit is contained in:
parent
29a5fe4cf5
commit
b9fa92e439
@ -458,7 +458,8 @@ class MediaBrowserMetadata(generic.GenericMetadata):
|
||||
|
||||
if not ep_obj.relatedEps:
|
||||
absolute_number = etree.SubElement(episode, "absolute_number")
|
||||
absolute_number.text = myEp['absolute_number']
|
||||
if getattr(myEp, 'absolute_number', None) is not None:
|
||||
absolute_number.text = myEp['absolute_number']
|
||||
|
||||
FirstAired = etree.SubElement(episode, "FirstAired")
|
||||
if curEpToWrite.airdate != datetime.date.fromordinal(1):
|
||||
|
Loading…
Reference in New Issue
Block a user