1
0
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:
echel0n 2014-04-27 14:52:50 -07:00
parent 29a5fe4cf5
commit b9fa92e439

View File

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