Fixed behavior for not compatible downloaders + typo's
This commit is contained in:
1 parent
0193f7ad81
commit
71c181379a
1 file changed
+4
-3
@@ -475,11 +475,12 @@ class Searcher(Plugin):
|
|||||||
|
|
||||||
# check status
|
# check status
|
||||||
downloadstatus = fireEvent('getdownloadstatus', data = item, movie = movie)
|
downloadstatus = fireEvent('getdownloadstatus', data = item, movie = movie)
|
||||||
if downloadstatus == None: # Downloader not compatible with download status
|
if not downloadstatus: # Downloader not compatible with download status
|
||||||
|
log.debug('Download status functionality is not implemented for active downloaders.')
|
||||||
scanrequired = True
|
scanrequired = True
|
||||||
|
|
||||||
else:
|
else:
|
||||||
log.debug('Download staus: %s' , downloadstatus[0])
|
log.debug('Download status: %s' , downloadstatus[0])
|
||||||
|
|
||||||
if downloadstatus[0] == 'Failed':
|
if downloadstatus[0] == 'Failed':
|
||||||
# if failed set status to ignored
|
# if failed set status to ignored
|
||||||
@@ -514,7 +515,7 @@ class Searcher(Plugin):
|
|||||||
rel.status_id = ignored_status.get('id')
|
rel.status_id = ignored_status.get('id')
|
||||||
db.commit()
|
db.commit()
|
||||||
|
|
||||||
# Note that Queued, Downloading, Paused, Repairn and Unpackimg are also available as status
|
# Note that Queued, Downloading, Paused, Repair and Unpackimg are also available as status for SabNZBd
|
||||||
if scanrequired:
|
if scanrequired:
|
||||||
fireEvent('renamer.scan')
|
fireEvent('renamer.scan')
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user