mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Merge branch 'origin/dev'
This commit is contained in:
commit
11e40a865b
@ -49,7 +49,7 @@ else:
|
||||
HTTPBasicAuthHandler = urllib2.HTTPBasicAuthHandler
|
||||
|
||||
|
||||
def processEpisode(dir_to_process, org_NZB_name=None):
|
||||
def processEpisode(dir_to_process, org_NZB_name=None, status=None):
|
||||
# Default values
|
||||
host = "localhost"
|
||||
port = "8081"
|
||||
@ -117,6 +117,9 @@ def processEpisode(dir_to_process, org_NZB_name=None):
|
||||
if org_NZB_name != None:
|
||||
params['nzbName'] = org_NZB_name
|
||||
|
||||
if status != None:
|
||||
params['failed'] = status
|
||||
|
||||
if ssl:
|
||||
protocol = "https://"
|
||||
else:
|
||||
|
@ -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 New Issue
Block a user