Page 1 of 1
Parsing STRING instead of FILE
Posted: 11 Aug 2016, 10:22
by Reneg
Hello,
Is it possible to use the RENAME function to parse a STRING as argument instead of a file path and give the renamed title as a ECHOED result ?
Thank you
Re: Parsing STRING instead of FILE
Posted: 11 Aug 2016, 10:27
by rednoah
No, the
-rename command will expect valid file paths
If you need episode data for scripting then you can use the
-list or the
-mediainfo command:
Re: Parsing STRING instead of FILE
Posted: 11 Aug 2016, 11:14
by Reneg
Code: Select all
C:\Program Files\FileBot>filebot -list --q "The Vampire Diaries Stagione 7 (2016) .mkv DLMux 1080p AC3 - ITA ENG SUBS"
Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at net.filebot.cli.CmdlineOperations.fetchEpisodeList(CmdlineOperations.java:1041)
at net.filebot.cli.ArgumentProcessor.runCommand(ArgumentProcessor.java:59)
at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:25)
at net.filebot.Main.main(Main.java:124)
I tried it befor, but with complex Query string I'm getting this error
Re: Parsing STRING instead of FILE
Posted: 11 Aug 2016, 11:18
by rednoah
That's not how it works. The query parameter expects a search query (i.e. the series name).
Re: Parsing STRING instead of FILE
Posted: 11 Aug 2016, 11:20
by Reneg
Exactly, that's why I wanted to use the rename function.
Can u suggest me any workaround ?
Re: Parsing STRING instead of FILE
Posted: 11 Aug 2016, 12:42
by rednoah
Nope, the rename function can only work with real files. If you look into FileBot/Groovy scripts you might find a few helpful internal functions, but nothing like that is exposed via the CLI.
If you explain the bigger picture and what you're trying to build, then maybe I'll think of something.