mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-07 11:58:01 -05:00
Fix for UnboundLocalError: local variable 'rating_text' referenced before assignment
This commit is contained in:
parent
4f32ed262c
commit
d42b864ecc
@ -479,9 +479,7 @@ class MediaBrowserMetadata(generic.GenericMetadata):
|
|||||||
if not ep_obj.relatedEps:
|
if not ep_obj.relatedEps:
|
||||||
Rating = etree.SubElement(episode, "Rating")
|
Rating = etree.SubElement(episode, "Rating")
|
||||||
if getattr(myEp, 'rating', None) is not None:
|
if getattr(myEp, 'rating', None) is not None:
|
||||||
rating_text = myEp['rating']
|
Rating.text = myEp['rating']
|
||||||
if rating_text != None:
|
|
||||||
Rating.text = rating_text
|
|
||||||
|
|
||||||
IMDB_ID = etree.SubElement(episode, "IMDB_ID")
|
IMDB_ID = etree.SubElement(episode, "IMDB_ID")
|
||||||
IMDB = etree.SubElement(episode, "IMDB")
|
IMDB = etree.SubElement(episode, "IMDB")
|
||||||
|
Loading…
Reference in New Issue
Block a user