Page 1 of 1
“strange” quotation marks don't work on the command-line
Posted: 05 Nov 2017, 07:30
by denzoid
I am trying to run AMC script on Windows 10 Pro machine in conjunction with utorrent.
In utorrent I have 5 labels setup:
audio
documentary
movies
standup
tv
each label has a corresponding local directory R:\uTorrent\movie, R:\uTorrent\tv etc..
I am trying to get filebot to process the files and send them to corresponding shares on my Unraid server: \\UNRAID\movie, \\UNRAID\tv etc..
So far I have only been able to get the following to run with any success at all:
Code: Select all
filebot -script fn:amc --output “\\UNRAID\movies” --action copy --conflict skip -non-strict --log-file amc.log --def "R:\uTorrent\movie" unsorted=y music=y artwork=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
But what I get is a new sub directory on my movies share named “Movies” \\UNRAID\movies\Movies\Title of Movie (YEAR)\
I have been at his for a couple days now and have to admit I am just not understanding what needs to be done. I have read all the forum threads that I could find that seemed to relate and made hundreds of attempts at it, all to no avail, so now I am humbly asking for help. TIA
Re: AMC, uTorrent (labels), NAS Shares help request
Posted: 05 Nov 2017, 10:20
by rednoah
1.
What does the command-line output say? What does the log say?
Please follow the
Troubleshooting advice. Check utorrent for the exact command that is executed, and then open CMD and execute it yourself so you can see the console output:
viewtopic.php?f=4&t=215
If you can't find the log, then I recommend writing logs to a known location:

Trying things at random without looking at the log to see what's going on is generally a waste of time. Remember that for next time.
2.
Please read
Cmdline and Argument Passing. Especially the
Avoid non-ASCII characters section which does explain what you're doing wrong.

Re: “strange” quotation marks don't work on the command-line
Posted: 05 Nov 2017, 11:31
by rednoah
Please paste this command into utorrent:
Code: Select all
filebot -script fn:amc --output \\UNRAID\movies --action copy --conflict skip -non-strict --log-file R:\uTorrent\amc.log --def unsorted=y music=y artwork=y "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
If something isn't working, then you will find the log at
R:\uTorrent\amc.log so you can see and post the log.
Re: “strange” quotation marks don't work on the command-line
Posted: 05 Nov 2017, 12:18
by denzoid
Here is the log:
Code: Select all
Run script [fn:amc] at [Sun Nov 05 04:15:36 PST 2017]
Parameter: unsorted = y
Parameter: music = y
Parameter: artwork = y
Parameter: ut_label = %L
Parameter: ut_state = %S
Parameter: ut_title = %N
Parameter: ut_kind = %K
Parameter: ut_file = %F
Parameter: ut_dir = %D
Bad ut_label value: %L
Bad ut_state value: %S
Bad ut_title value: %N
Bad ut_kind value: %K
Bad ut_file value: %F
Bad ut_dir value: %D
Illegal usage: no input
Failure (°_°)
Run script [fn:amc] at [Sun Nov 05 04:17:15 PST 2017]
Parameter: unsorted = y
Parameter: music = y
Parameter: artwork = y
Parameter: ut_label = %L
Parameter: ut_state = %S
Parameter: ut_title = %N
Parameter: ut_kind = %K
Parameter: ut_file = %F
Parameter: ut_dir = %D
Bad ut_label value: %L
Bad ut_state value: %S
Bad ut_title value: %N
Bad ut_kind value: %K
Bad ut_file value: %F
Bad ut_dir value: %D
Illegal usage: no input
Failure (°_°)
Re: “strange” quotation marks don't work on the command-line
Posted: 05 Nov 2017, 17:48
by kim
It most be a "format" problem or lack of it
does it not default to "{plex}" if missing ?
from amc
Code: Select all
// series/anime/movie format expressions
seriesFormat = any{ seriesFormat }{ '{plex}' }
animeFormat = any{ animeFormat }{ '{plex}' }
movieFormat = any{ movieFormat }{ '{plex}' }
musicFormat = any{ musicFormat }{ '{plex}' }
unsortedFormat = any{ unsortedFormat }{ 'Unsorted/{file.structurePathTail}' }
viewtopic.php?f=4&t=215
try add
viewtopic.php?f=5&t=4116
Re: “strange” quotation marks don't work on the command-line
Posted: 05 Nov 2017, 22:57
by rednoah
If utorrent was calling the script, it would have replaced the %variables with actual values:
Code: Select all
Parameter: ut_label = %L
Parameter: ut_state = %S
Parameter: ut_title = %N
Parameter: ut_kind = %K
Parameter: ut_file = %F
Parameter: ut_dir = %D
You're testing manually with CMD, so you can't just copy and paste the command template. Please read the
Troubleshooting section carefully. It'll explain everything.