mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Change send nzb data to NZBGet for Anizb instead of url.
This commit is contained in:
parent
4b3ac17b55
commit
dd43c4b3d5
2 changed files with 9 additions and 0 deletions
|
@ -103,6 +103,9 @@
|
|||
* Change use full first aired date where available in "Add New Show" results
|
||||
* Change prevent duplicate results in "Add New Show"
|
||||
|
||||
[develop changelog]
|
||||
* Change send nzb data to NZBGet for Anizb instead of url
|
||||
|
||||
|
||||
### 0.11.12 (2016-06-20 02:20:00 UTC)
|
||||
|
||||
|
|
|
@ -90,6 +90,12 @@ def sendNZB(nzb, proper=False):
|
|||
if nzb.resultType == "nzbdata":
|
||||
data = nzb.extraInfo[0]
|
||||
nzbcontent64 = standard_b64encode(data)
|
||||
elif 'Anizb' == nzb.provider.name and 'nzb' == nzb.resultType:
|
||||
gen_provider = GenericProvider('')
|
||||
data = gen_provider.get_url(nzb.url)
|
||||
if None is data:
|
||||
return False
|
||||
nzbcontent64 = standard_b64encode(data)
|
||||
|
||||
logger.log(u"Sending NZB to NZBGet: %s" % nzb.name)
|
||||
logger.log(u"NZBGet URL: " + url, logger.DEBUG)
|
||||
|
|
Loading…
Reference in a new issue