Using AMC on Windows, with Deluge - Quotes issue.
Posted: 29 Jan 2015, 16:08
Hey guys, was just looking to set up AMC and I ran into an issue with quotes. The problem seems to occur because Deluge outputs the torrent name inside quotes or outside quotes depending on whether the torrent name has a space in it, e.g.:
Any of these examples that don't have quotes would work fine however, when there are quotes, command prompt opens, filebot spits out the following error and closes:
Some details:
Deluge v1.3.11
fn:sysinfo Output
Script:
I can't really think of a solution to this, off the top of my head, and I guess this is more of an issue with Deluge than Filebot. Definitely open to suggestions and ideas though!
Code: Select all
Torrent Details: GenericShow.S10E08.mkv F:\Unsorted\Finished XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Torrent Details: "Generic Show S10E09.mkv" F:\Unsorted\Finished XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Torrent Details: "Generic Show S010E10 720p HDTV x264 AAC" F:\Unsorted\Finished XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Torrent Details: GenericShow.S10E11 F:\Unsorted\Finished XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Code: Select all
"-" is not a valid option
Launch4j: Failed to run the given command.
Deluge v1.3.11
fn:sysinfo Output
Code: Select all
FileBot 4.5.6 (r2818)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (C:\Program Files\FileBot\fpcalc.exe)
Extended Attributes: OK
Groovy Engine: 2.3.9
JRE: Java(TM) SE Runtime Environment 1.8.0_25
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 8 Core / 1 GB Max Memory / 19 MB Used Memory
OS: Windows 7 (amd64)
Code: Select all
@echo off
set torrentid=%1
set torrentname=%2
set torrentpath=%3
@echo Torrent Details: %torrentname% %torrentpath% %torrentid% >> %userprofile%/Desktop/execute_script.log
filebot -script fn:amc --output "M:/" --log-file %userprofile%/Desktop/amc.log --action copy --conflict override -non-strict "%torrentpath%/%torrentname%" --def music=y subtitles=en excludeList=amc.txt "seriesFormat=M:/TV Shows/{n}/{'Season '+s}/{n} - {s00e00} - {t}" "movieFormat=M:/Movies/{n} {y}/{n} ({y}){' CD'+pi}{'.'+lang}" "musicFormat=M:/Music/{n}/{album+'/'}{pi.pad(2)+' - '} {t}"
I can't really think of a solution to this, off the top of my head, and I guess this is more of an issue with Deluge than Filebot. Definitely open to suggestions and ideas though!