Invoke.vbs not working

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
adomo
Posts: 2
Joined: 27 Feb 2013, 01:07

Invoke.vbs not working

Post 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 :)
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Invoke.vbs not working

Post by rednoah »

Probably just doesn't work on Windows 8. Well, too bad.
:idea: Please read the FAQ and How to Request Help.
iampaulh
Power User
Posts: 22
Joined: 24 Jan 2013, 12:12

Re: Invoke.vbs not working

Post 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.
festol
Posts: 5
Joined: 02 Jun 2013, 03:49

Re: Invoke.vbs not working

Post 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
User avatar
najib1021
Posts: 9
Joined: 02 Feb 2013, 14:14

Re: Invoke.vbs not working

Post 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\"}
User avatar
bonelifer
Power User
Posts: 81
Joined: 23 Mar 2013, 18:27

Re: Invoke.vbs not working

Post by bonelifer »

Try changing

Code: Select all

Season {s}

Code: Select all

{"Season"} {s.pad(2)}
User avatar
najib1021
Posts: 9
Joined: 02 Feb 2013, 14:14

Re: Invoke.vbs not working

Post 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.. ;)
festol
Posts: 5
Joined: 02 Jun 2013, 03:49

Re: Invoke.vbs not working

Post 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
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Invoke.vbs not working

Post 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:

Code: Select all

\'\
You somehow passing things wrong.

PS: don't use invoke.vbs
:idea: Please read the FAQ and How to Request Help.
Post Reply