mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
Fix for UnboundLocalError: local variable 'rating_text' referenced before assignment
This commit is contained in:
parent
4f32ed262c
commit
d42b864ecc
1 changed files with 1 additions and 3 deletions
|
@ -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 a new issue