Page 1 of 1
Invoke.vbs not working
Posted: 27 Feb 2013, 01:58
by adomo
I have all of the AMC working fine, but saw invoke.vbs and tried to run it as well.
I'm running
Windows 8
uTorrent 3.3
This is what I have in uTorrent.
Code: Select all
C:\invoke.vbs filebot -script fn:amc --output "X:/path/to/media" --action copy --conflict override -non-strict --def "ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_title=%N" "ut_label=%L" "ut_state=%S"
This is the error message I get
Script: C:\Invoke.vbs
Line: 8
Char: 1
Error: Invalid procedure call or arguement
Code: 800A0005
Source: Microsoft VBScrip runtime error
I'm pretty new to this whole thing, any help you could give me would be great help. I hope it's not something simple

Re: Invoke.vbs not working
Posted: 27 Feb 2013, 02:09
by rednoah
Probably just doesn't work on Windows 8. Well, too bad.
Re: Invoke.vbs not working
Posted: 11 Mar 2013, 12:11
by iampaulh
Works on my Windows 8 setup, though for a day or two it stopped working.
Been running fine for a month now.
Try making sure you have all Windows Updates, enable logging in uTorrent to see if that's happening correctly, last attempt would be to turn off UAC.
Re: Invoke.vbs not working
Posted: 02 Jun 2013, 03:58
by festol
Hi, i am also having this problem
Windows 8
uTorrent 3.2.2
This works perfectly - but as soon as i add the "C:\invoke.vbs" to the start the CMD windows flashes but nothing runs
Code: Select all
filebot -script fn:amc --output "C:\MEDIA" --log-file amc.log --action copy --conflict override -non-strict --def music=y subtitles=en artwork=y "ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_title=%N" "ut_label=%L" "ut_state=%S" --def "seriesFormat=TVShows/{n.replaceTrailingBrackets()}/Season {s}/{n.replaceTrailingBrackets()} - {s+'x'}{e.pad(2)} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, \"'\") .lowerTrail().replacePart(', Part $1')}" "movieFormat=Movies/{n}_{y}/{n} ({y}){\" CD$pi\"}
" --def xbmc=192.168.1.50 --def clean=y
Any suggestions most welcome
Can i just add that that Filebot + AMC script is amazing - much time saved
cheers
/f
Re: Invoke.vbs not working
Posted: 04 Jun 2013, 12:47
by najib1021
Hi..
How to change "Season 1" to "Season 01" based on this script :
Code: Select all
filebot -script fn:amc --output "E:/" --log-file "E:/amc.txt" --action copy --conflict override -non-strict --def music=n subtitles=en artwork=n "ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_title=%N" "ut_label=%L" "ut_state=%S" --def "seriesFormat=TV Shows/{n.replaceTrailingBrackets()}/Season {s}/{n.replaceTrailingBrackets()} - S{(episode.season ? s : 1).pad(2)}E{e.pad(2)} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’?]/, \"'\") .lowerTrail().replacePart(', Part $1')}" "movieFormat=Movies/{n}_{y}/{n} ({y}){\" CD$pi\"}
Re: Invoke.vbs not working
Posted: 04 Jun 2013, 13:07
by bonelifer
Re: Invoke.vbs not working
Posted: 04 Jun 2013, 14:42
by najib1021
Thanks.. When i execute the script using CLI, it's look liked nothing error..
Code: Select all
filebot -script fn:amc --output "E:/" --log-file "E:/amc.log" --action copy --conflict override -non-strict --def music=n subtitles=en artwork=n "ut_dir=E:\TV Shows\01 Seeding" "ut_file=Revolution.2012.S01E19.HDTV.x264-LOL.mp4" "ut_kind=single" "ut_title=Revolution.2012.S01E19.HDTV.x264-LOL.mp4" "ut_label=Revolution (2012)" "ut_state=11" --def "seriesFormat=TV Shows/{n.replaceTrailingBrackets()}/Season {s}/{n.replaceTrailingBrackets()} - S{(episode.season ? s : 1).pad(2)}E{e.pad(2)} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’?]/, \"'\") .lowerTrail().replacePart(', Part $1')}" "movieFormat=Movies/{n}_{y}/{n} ({y}){\" CD$pi\"}
Output :
Code: Select all
Parameter: music = n
Parameter: subtitles = en
Parameter: artwork = n
Parameter: ut_dir = E:\TV Shows\01 Seeding
Parameter: ut_file = Revolution.2012.S01E19.HDTV.x264-LOL.mp4
Parameter: ut_kind = single
Parameter: ut_title = Revolution.2012.S01E19.HDTV.x264-LOL.mp4
Parameter: ut_label = Revolution (2012)
Parameter: ut_state = 11
Parameter: seriesFormat = TV Shows/{n.replaceTrailingBrackets()}/Season {s}/{n.replaceTrailingBrackets()} - S{(episode.season ? s : 1).pad(2)}E{e.pad(2)} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’?]/, "'") .lowerTrail().replacePart(', Part $1')}
Parameter: movieFormat = Movies/{n}_{y}/{n} ({y}){" CD$pi"}
Input: E:\TV Shows\01 Seeding\Revolution.2012.S01E19.HDTV.x264-LOL.mp4
Group: [tvs:Revolution] => [Revolution.2012.S01E19.HDTV.x264-LOL.mp4]
Get [English] subtitles for 1 files
Looking up subtitles by filehash via OpenSubtitles
Matched [Revolution.2012.S01E19.HDTV.x264-LOL.mp4] to [Revolution.2012.S01E19.HDTV.X264-LOL] via filehash
Fetching [Revolution.2012.S01E19.HDTV.X264-LOL.srt]
Export [Revolution.2012.S01E19.HDTV.X264-LOL.srt] as: SubRip / UTF-8
Writing [Revolution.2012.S01E19.HDTV.X264-LOL.srt] to [Revolution.2012.S01E19.HDTV.x264-LOL.eng.srt]
Rename episodes using [TheTVDB]
Auto-detected query: [Revolution, Revolution 2012]
Fetching episode data for [Revolution]
Fetching episode data for [Revolution]
Fetching episode data for [Evolution]
Fetching episode data for [TV Revolution]
Fetching episode data for [Revolution 618]
Fetching episode data for [Love Revolution]
Fetching episode data for [Food Revolution]
Fetching episode data for [Gamer Revolution]
Fetching episode data for [Revolutionary War]
Fetching episode data for [French Revolution]
Fetching episode data for [Sex: The Revolution]
Fetching episode data for [Kirarin Revolution]
Fetching episode data for [Virtual Revolution]
Fetching episode data for [nWo The Revolution]
Fetching episode data for [American Revolution]
Fetching episode data for [Dinosaur Revolution]
Auto-detected query: [Revolution, Revolution 2012]
Fetching episode data for [Revolution]
Fetching episode data for [Revolution]
Fetching episode data for [Evolution]
Fetching episode data for [TV Revolution]
Fetching episode data for [Revolution 618]
Fetching episode data for [Love Revolution]
Fetching episode data for [Food Revolution]
Fetching episode data for [Gamer Revolution]
Fetching episode data for [Revolutionary War]
Fetching episode data for [French Revolution]
Fetching episode data for [Sex: The Revolution]
Fetching episode data for [Kirarin Revolution]
Fetching episode data for [Virtual Revolution]
Fetching episode data for [nWo The Revolution]
Fetching episode data for [American Revolution]
Fetching episode data for [Dinosaur Revolution]
[COPY] Rename [E:\TV Shows\01 Seeding\Revolution.2012.S01E19.HDTV.x264-LOL.mp4] to [E:\TV Shows\Revolution\Season 1\Revolution - S01E19 - Children of Men.mp4]
[COPY] Rename [E:\TV Shows\01 Seeding\Revolution.2012.S01E19.HDTV.x264-LOL.eng.srt] to [E:\TV Shows\Revolution\Season 1\Revolution - S01E19 - Children of Men.srt]
Processed 2 files
Done ヾ(@⌒ー⌒@)ノ
Seem nothing error..
But when uTorrent Finish downloaded, got error -->
ScriptException: SyntaxError: unexpected char: '\'
Code: Select all
Parameter: music = n
Parameter: subtitles = en
Parameter: artwork = n
Parameter: ut_dir = E:\TV Shows\01 Seeding
Parameter: ut_file = Revolution.2012.S01E19.HDTV.x264-LOL.mp4
Parameter: ut_kind = single
Parameter: ut_title = Revolution.2012.S01E19.HDTV.x264-LOL.mp4
Parameter: ut_label = Revolution (2012)
Parameter: ut_state = 11
Parameter: seriesFormat = TV Shows/{n.replaceTrailingBrackets()}/Season {s}/{n.replaceTrailingBrackets()} - S{(episode.season ? s : 1).pad(2)}E{e.pad(2)} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’?]/, \'\) .lowerTrail().replacePart(', Part $1')}
Parameter: movieFormat = Movies/{n}_{y}/{n} ({y}){" CD$pi\}
Input: E:\TV Shows\01 Seeding\Revolution.2012.S01E19.HDTV.x264-LOL.mp4
Group: [tvs:Revolution] => [Revolution.2012.S01E19.HDTV.x264-LOL.mp4]
Get [English] subtitles for 1 files
Looking up subtitles by filehash via OpenSubtitles
Matched [Revolution.2012.S01E19.HDTV.x264-LOL.mp4] to [Revolution.2012.S01E19.HDTV.X264-LOL] via filehash
Fetching [Revolution.2012.S01E19.HDTV.X264-LOL.srt]
Export [Revolution.2012.S01E19.HDTV.X264-LOL.srt] as: SubRip / UTF-8
Writing [Revolution.2012.S01E19.HDTV.X264-LOL.srt] to [Revolution.2012.S01E19.HDTV.x264-LOL.eng.srt]
ScriptException: SyntaxError: unexpected char: '\'
Done ヾ(@⌒ー⌒@)ノ
Which part error?
p/s : Sorry for my bad english.. 
Re: Invoke.vbs not working
Posted: 20 Nov 2013, 05:23
by festol
Just a bump to see if anyone has any suggestions for this
festol wrote:Hi, i am also having this problem
Windows 8
uTorrent 3.2.2
This works perfectly - but as soon as i add the "C:\invoke.vbs" to the start the CMD windows flashes but nothing runs
Code: Select all
filebot -script fn:amc --output "C:\MEDIA" --log-file amc.log --action copy --conflict override -non-strict --def music=y subtitles=en artwork=y "ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_title=%N" "ut_label=%L" "ut_state=%S" --def "seriesFormat=TVShows/{n.replaceTrailingBrackets()}/Season {s}/{n.replaceTrailingBrackets()} - {s+'x'}{e.pad(2)} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, \"'\") .lowerTrail().replacePart(', Part $1')}" "movieFormat=Movies/{n}_{y}/{n} ({y}){\" CD$pi\"}
" --def xbmc=192.168.1.50 --def clean=y
Any suggestions most welcome
Can i just add that that Filebot + AMC script is amazing - much time saved
cheers
/f
Re: Invoke.vbs not working
Posted: 20 Nov 2013, 07:12
by rednoah
This is NOT a valid expression:
Code: Select all
TV Shows/{n.replaceTrailingBrackets()}/Season {s}/{n.replaceTrailingBrackets()} - S{(episode.season ? s : 1).pad(2)}E{e.pad(2)} - {t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’?]/, \'\) .lowerTrail().replacePart(', Part $1')}
Remove all the --def *Format and don't use custom format expressions if you don't know what you're doing.
This is obviously wrong:
You somehow passing things wrong.
PS:
don't use invoke.vbs