mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 06:13:19 -07:00
Add Syno DS parsing #1671
as per https://forum.synology.com/enu/viewtopic.php?f=38&t=92856
This commit is contained in:
parent
aeb3e0fd6d
commit
ee5f335567
1 changed files with 11 additions and 0 deletions
|
@ -81,6 +81,16 @@ def parse_transmission(args):
|
||||||
return input_directory, input_name, input_category, input_hash, input_id
|
return input_directory, input_name, input_category, input_hash, input_id
|
||||||
|
|
||||||
|
|
||||||
|
def parse_synods(args):
|
||||||
|
# Transmission usage: call TorrenToMedia.py (%TR_TORRENT_DIR% %TR_TORRENT_NAME% is passed on as environmental variables)
|
||||||
|
input_directory = os.path.join(os.path.normpath(os.getenv('TR_TORRENT_DIR')), '..', os.getenv('TR_TORRENT_NAME'))
|
||||||
|
input_name = os.getenv('TR_TORRENT_NAME')
|
||||||
|
input_category = '' # We dont have a category yet
|
||||||
|
input_hash = os.getenv('TR_TORRENT_HASH')
|
||||||
|
input_id = os.getenv('TR_TORRENT_ID')
|
||||||
|
return input_directory, input_name, input_category, input_hash, input_id
|
||||||
|
|
||||||
|
|
||||||
def parse_vuze(args):
|
def parse_vuze(args):
|
||||||
# vuze usage: C:\full\path\to\nzbToMedia\TorrentToMedia.py '%D%N%L%I%K%F'
|
# vuze usage: C:\full\path\to\nzbToMedia\TorrentToMedia.py '%D%N%L%I%K%F'
|
||||||
try:
|
try:
|
||||||
|
@ -159,6 +169,7 @@ def parse_args(client_agent, args):
|
||||||
'transmission': parse_transmission,
|
'transmission': parse_transmission,
|
||||||
'qbittorrent': parse_qbittorrent,
|
'qbittorrent': parse_qbittorrent,
|
||||||
'vuze': parse_vuze,
|
'vuze': parse_vuze,
|
||||||
|
'synods': parse_synods,
|
||||||
}
|
}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue