couchpotato.core.downloaders.synology module

class couchpotato.core.downloaders.synology.Synology[source]

Bases: couchpotato.core._base.downloader.main.DownloaderBase

download(data=None, media=None, filedata=None)

Send a torrent/nzb file to the downloader

Parameters:
  • data – dict returned from provider Contains the release information
  • media – media dict with information Used for creating the filename when possible
  • filedata – downloaded torrent/nzb filedata The file gets downloaded in the searcher and send to this function This is done to have failed checking before using the downloader, so the downloader doesn’t need to worry about that
Returns:

boolean One faile returns false, but the downloaded should log his own errors

getEnabledProtocol()
isEnabled(manual=False, data=None)
protocol = ['nzb', 'torrent', 'torrent_magnet']
status_support = False
test()

Check if connection works :return: bool

class couchpotato.core.downloaders.synology.SynologyRPC(host='localhost', port=5000, username=None, password=None, destination=None)[source]

Bases: object

SynologyRPC lite library

create_task(url=None, filename=None, filedata=None)

Creates new download task in Synology DownloadStation. Either specify url or pair (filename, filedata).

Returns True if task was created, False otherwise

test()