Update Synology and Pneumatic
As per black hole improvement
This commit is contained in:
@@ -41,11 +41,11 @@ class Pneumatic(Downloader):
|
|||||||
strm_file.write(strmContent)
|
strm_file.write(strmContent)
|
||||||
strm_file.close()
|
strm_file.close()
|
||||||
|
|
||||||
return True
|
return self.downloadReturnId('')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
log.info('File %s already exists.', fullPath)
|
log.info('File %s already exists.', fullPath)
|
||||||
return True
|
return self.downloadReturnId('')
|
||||||
|
|
||||||
except:
|
except:
|
||||||
log.error('Failed to download .strm: %s', traceback.format_exc())
|
log.error('Failed to download .strm: %s', traceback.format_exc())
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class Synology(Downloader):
|
|||||||
except:
|
except:
|
||||||
log.error('Exception while adding torrent: %s', traceback.format_exc())
|
log.error('Exception while adding torrent: %s', traceback.format_exc())
|
||||||
finally:
|
finally:
|
||||||
return response
|
return self.downloadReturnId('') if response else False
|
||||||
|
|
||||||
def getEnabledProtocol(self):
|
def getEnabledProtocol(self):
|
||||||
if self.conf('use_for') == 'both':
|
if self.conf('use_for') == 'both':
|
||||||
|
|||||||
Reference in New Issue
Block a user