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
Parsing STRING instead of FILE
Re: Parsing STRING instead of FILE
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:
If you need episode data for scripting then you can use the -list or the -mediainfo command:
Code: Select all
filebot -list --q "alias"
Code: Select all
filebot -mediainfo -r .
Re: Parsing STRING instead of FILE
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)
Re: Parsing STRING instead of FILE
That's not how it works. The query parameter expects a search query (i.e. the series name).
Re: Parsing STRING instead of FILE
Exactly, that's why I wanted to use the rename function.
Can u suggest me any workaround ?
Can u suggest me any workaround ?
Re: Parsing STRING instead of FILE
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.
If you explain the bigger picture and what you're trying to build, then maybe I'll think of something.