mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Fixes issue #30
This commit is contained in:
parent
9ab143dde7
commit
8c78b558b5
3 changed files with 4 additions and 5 deletions
|
@ -265,9 +265,8 @@ class WDTVMetadata(generic.GenericMetadata):
|
|||
genre.text = " / ".join([x for x in myShow["genre"].split('|') if x])
|
||||
|
||||
director = etree.SubElement(episode, "director")
|
||||
if getattr(myEp, 'director', None) is not None:
|
||||
director_text = myEp['director']
|
||||
if director_text != None:
|
||||
director_text = getattr(myEp, 'director', None)
|
||||
if director_text is not None:
|
||||
director.text = director_text
|
||||
|
||||
if getattr(myShow, '_actors', None) is not None:
|
||||
|
|
|
@ -330,7 +330,7 @@ class XBMC_12PlusMetadata(generic.GenericMetadata):
|
|||
|
||||
director = etree.SubElement(episode, "director")
|
||||
director_text = getattr(myEp, 'director', None)
|
||||
if director_text != None:
|
||||
if director_text is not None:
|
||||
director.text = director_text
|
||||
|
||||
rating = etree.SubElement(episode, "rating")
|
||||
|
|
|
@ -127,7 +127,7 @@ class TorrentRssProvider(generic.TorrentProvider):
|
|||
except Exception, e:
|
||||
return (False, 'Error when trying to load RSS: ' + ex(e))
|
||||
|
||||
def getURL(self, url, headers=None):
|
||||
def getURL(self, url, post_data=None, headers=None):
|
||||
|
||||
if not self.session:
|
||||
self.session = requests.Session()
|
||||
|
|
Loading…
Reference in a new issue