Fix minor errors. Fix #1666

This commit is contained in:
Clinton Hall
2013-04-27 11:26:52 +09:30
parent 384a355a53
commit 1a846b04ee
+3 -3
View File
@@ -16,7 +16,7 @@ class NZBGet(Downloader):
type = ['nzb']
url = 'http://%(username):%(password)s@%(host)s/xmlrpc'
url = 'http://%(username)s:%(password)s@%(host)s/xmlrpc'
def download(self, data = {}, movie = {}, filedata = None):
@@ -103,7 +103,7 @@ class NZBGet(Downloader):
try:
nzb_id = [param['Value'] for param in item['Parameters'] if param['Name'] == 'couchpotato'][0]
except:
nzb_id = item['NZBID'],
nzb_id = item['NZBID']
statuses.append({
'id': nzb_id,
'name': item['NZBFilename'],
@@ -126,7 +126,7 @@ class NZBGet(Downloader):
try:
nzb_id = [param['Value'] for param in item['Parameters'] if param['Name'] == 'couchpotato'][0]
except:
nzb_id = item['NZBID'],
nzb_id = item['NZBID']
statuses.append({
'id': nzb_id,
'name': item['NZBFilename'],