
POSTBUCKET - where random posts in unrelated topics go
Re: How about sharing our format expressions?
{s00e00.lower()} 

Re: Fully Automated Media Center
Is there a way to override the "format" expressions in the "utorrent-postprocess" function to specify my own preferences for the filepaths? I mean that I'd rather not put my TV shows and movies into separate subdirectories, and I like the {n}.{s00e00}.{t} episode filename format better than the default with the spaces and the hyphens.
I tried creating my own version of utorrent-postprocess.groovy, with the following changes, and referencing it locally, but my files just got un-rar-ed, no renaming or moving happened.
I tried creating my own version of utorrent-postprocess.groovy, with the following changes, and referencing it locally, but my files just got un-rar-ed, no renaming or moving happened.
Code: Select all
def format = [
tvs: '''{n}{episode.special ? " - Special" : " - Season "+s.pad(2)}/{n}.{episode.special ? "S00E"+special.pad(2) : s00e00}.{t}''',
anime: '''Anime/{n}/{n} - {sxe} - {t}''',
mov: '''{n} ({y})/{n} [{y}]{" CD$pi"}{".$lang"}'''
]
Re: Fully Automated Media Center
What's the error output? Did you forget to copy lib/*.groovy? It'll need that for artwork/email/etc
Re: Fully Automated Media Center
Ah, yes, that did it. Once I downloaded the /lib/*.groovy files, my homebrew version of utorrent-postprocess.groovy worked great. Thanks for the info and for this great program. FileBot with these customizations should save me tons of time versus my old workflow!
-
- Posts: 9
- Joined: 26 Nov 2012, 07:38
Re: How about sharing your CLI scripts?
filebot -script fn:revert path/to/files --action rename doesn't work:
C:\Users\HTPC>filebot -script fn:revert "a:/tv shows/homeland/" --action rename
IllegalArgumentException: Illegal rename action: rename
java.lang.IllegalArgumentException: Illegal rename action: rename
at net.sourceforge.filebot.StandardRenameAction.forName(Unknown Source)
at net.sourceforge.filebot.StandardRenameAction$forName.call(Unknown Sou
rce)
at Script3.revert(Script3.groovy:9)
at Script3$_run_closure1.doCall(Script3.groovy:18)
at Script3.run(Script3.groovy:16)
at net.sourceforge.filebot.cli.ScriptShell.evaluate(Unknown Source)
at net.sourceforge.filebot.cli.ScriptShell.runScript(Unknown Source)
at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)
at net.sourceforge.filebot.Main.main(Unknown Source)
Failure (░_░)
C:\Users\HTPC>filebot -script fn:revert "a:/tv shows/homeland/" --action rename
IllegalArgumentException: Illegal rename action: rename
java.lang.IllegalArgumentException: Illegal rename action: rename
at net.sourceforge.filebot.StandardRenameAction.forName(Unknown Source)
at net.sourceforge.filebot.StandardRenameAction$forName.call(Unknown Sou
rce)
at Script3.revert(Script3.groovy:9)
at Script3$_run_closure1.doCall(Script3.groovy:18)
at Script3.run(Script3.groovy:16)
at net.sourceforge.filebot.cli.ScriptShell.evaluate(Unknown Source)
at net.sourceforge.filebot.cli.ScriptShell.runScript(Unknown Source)
at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)
at net.sourceforge.filebot.Main.main(Unknown Source)
Failure (░_░)
Re: How about sharing your CLI scripts?
Sorry, you'll need to grab the latest build or wait for the next release if you really need --action rename.
Re: Fully Automated Media Center
Great script!
2 quick questions -
Is there a way to include the style of file name format desired in the command line? I've modified the GUI usage to output the files in the format I want but the command line output doesn't seem to match the format I was hoping for.
While artwork=yes seems to get all the nfo and other pieces for the Show in question it doesn't appear to get an nfo for the specific Episode being worked on. Am I missing something there?
Thanks again for the great script!
2 quick questions -
Is there a way to include the style of file name format desired in the command line? I've modified the GUI usage to output the files in the format I want but the command line output doesn't seem to match the format I was hoping for.
While artwork=yes seems to get all the nfo and other pieces for the Show in question it doesn't appear to get an nfo for the specific Episode being worked on. Am I missing something there?
Thanks again for the great script!
Re: Fully Automated Media Center
1. Cmdline is configured via cmdline options only, it does not magically use random GUI settings (albeit easy to add, that'd be very unclean).
2. Added support for overriding the default naming formats via --def:
--def "seriesFormat=TV/…"
--def "animeFormat=Anime/…"
--def "movieFormat=Movies/…"
Not gonna advertise that much since people are just gonna mess up the cmdline arguments with unescaped quotes. If you don't understand how arguments are parsed in your shell you will probably run into problems if you use single/double quotes, ampersands, etc in your format.
3. Episode Nfos are pretty much useless and with well-named files any HTPC software can grab that info easily anyway.
2. Added support for overriding the default naming formats via --def:
--def "seriesFormat=TV/…"
--def "animeFormat=Anime/…"
--def "movieFormat=Movies/…"
Not gonna advertise that much since people are just gonna mess up the cmdline arguments with unescaped quotes. If you don't understand how arguments are parsed in your shell you will probably run into problems if you use single/double quotes, ampersands, etc in your format.
3. Episode Nfos are pretty much useless and with well-named files any HTPC software can grab that info easily anyway.
-
- Posts: 141
- Joined: 05 Jul 2012, 09:44
Re: Fully Automated Media Center
Hi!
I was just expanding the functionality of the deluge adaptor, and just realised symlinks don't work.
Why does filebot need to run as with root privileges in order to create symlinks?
Cheers!
I was just expanding the functionality of the deluge adaptor, and just realised symlinks don't work.
Why does filebot need to run as with root privileges in order to create symlinks?
Cheers!
-
- Posts: 141
- Joined: 05 Jul 2012, 09:44
Re: Fully Automated Media Center
Actually, I was wrong.
It is failing even running it with sudo.
I get "Exception: Unsupported Operation: createSymbolicLink"
Any idea why?
It is failing even running it with sudo.
I get "Exception: Unsupported Operation: createSymbolicLink"
Any idea why?
Re: Fully Automated Media Center
On Windows it needs to be admin. Linux should work fine as normal users. You'll need Java 7 though.
-
- Posts: 141
- Joined: 05 Jul 2012, 09:44
Re: Fully Automated Media Center
Yes, installing Java 7 from oracle fixed the problem thanks 

-
- Posts: 141
- Joined: 05 Jul 2012, 09:44
Re: Fully Automated Media Center
Would be useful to have a script option to disable archive extraction..
Cheers and good work!
Cheers and good work!
Re: Fully Automated Media Center
Why would that be useful? Right now it'll only extract archives that contain video files.
-
- Posts: 141
- Joined: 05 Jul 2012, 09:44
Re: Fully Automated Media Center
Oh.. in that case..
I thought it was extracting all files first
Thanks
I thought it was extracting all files first
Thanks
-
- Posts: 141
- Joined: 05 Jul 2012, 09:44
Re: Fully Automated Media Center
By the way, Plex integration doesn't seem to be working, maybe due to a new version...
http://$server:$port/plex doesn't seem to contain any useful information anymore: http://hastebin.com/cafivirihi.xml
On the other hand, http://miner:32400/library/sections/ seems to have all the needed information: http://hastebin.com/pifugopihe.xml
Can you make it work again?
http://$server:$port/plex doesn't seem to contain any useful information anymore: http://hastebin.com/cafivirihi.xml
On the other hand, http://miner:32400/library/sections/ seems to have all the needed information: http://hastebin.com/pifugopihe.xml
Can you make it work again?

Re: Fully Automated Media Center
Does the rescan request still work like this?
http://$server:$port/library/sections/$key/refresh/
http://$server:$port/library/sections/$key/refresh/
-
- Posts: 49
- Joined: 03 Sep 2012, 10:52
Re: Fully Automated Media Center
Yes, http://$server:$port/library/sections/all/refresh, worked for me.
http://wiki.plexapp.com/index.php/PlexN ... g_Sections
http://wiki.plexapp.com/index.php/PlexN ... g_Sections
Re: Fully Automated Media Center
Updated it the way you suggested. Should take effect by tomorrow.
Re: Fetch Artwork and Nfo for Movies
Hello, thanks for the great program. It's really helped me begin the quest to get organized!rednoah wrote:Description:Usage:
- Download artwork for all your Movies from TheMovieDB. Fetch Movie nfo and all kinds of artwork and save files according to XBMC standards.
- Disable GUI tv series confirmation dialogs via -non-strict option (on headless machines this is the default).
Options:Code: Select all
filebot -script fn:artwork.tmdb /path/to/movies/
--conflict override to fetch artwork from scratch (not just missing artwork)
-non-strict to disable user-interaction and run headless
Notes:
* Movies are expected to be organized into folders. The movie is determined using the name of the parent folder of each video file.
Download Script:
http://filebot.sf.net/scripts/artwork.tmdb.groovy
I have got this script working from the command line but it returns 'Movie Not Found' for each movie in the folder.
I have all movies in their own folder as suggested, but the folder names have the format:
{n} [{y},{director}][{source}]
As a test, I changed the folder for the first film to {n} [{y}] and this worked.
How could I modify the script to be able to pick up the movie name correctly?
Or would it be better to just use the {n} [{y}] naming convention?
Much appreciated
Bee
-
- Posts: 9
- Joined: 03 Jan 2013, 01:55
Re: [MANUAL] Configure OpenSubtitles and Sublight login
Sublight now allows free API keys again: http://www.sublight.si/RegisterClient.aspx. This is the wrong thread for this but why aren't there any GUI options for all these 'filebot -script fn:<commands>' ? As a new user I find it intimidating.
Re: [MANUAL] Configure OpenSubtitles and Sublight login
Well, one thing is that many people use FileBot without any GUI so this works for everybody.
More importantly if your run -script fn:configure it'll download the script and since API client/keys are hard-coded (currently FileBot identifies itself as SublightCmd) in the script I can easily auto-update these settings without a new release.
More importantly if your run -script fn:configure it'll download the script and since API client/keys are hard-coded (currently FileBot identifies itself as SublightCmd) in the script I can easily auto-update these settings without a new release.
-
- Posts: 3
- Joined: 05 Jan 2013, 19:52
Re: Fully Automated Media Center
I'm not integrating with utorrent, but this script via cli mode almost does everything I need it to, so thanks!
However I can't figure out how to get the hardlink action to work which I really need. The output claims it is a hardlink rename but it only creates the directories and not the file link. The docs say utorrent must be ran as 'admin', so I am guessing I must run filebot as root? In my script I sudo run filebot but that didn't resolve the issue. I'm a bit stuck and looking for help.
I'm running on a 64bit linux distribution.
Thanks,
James
However I can't figure out how to get the hardlink action to work which I really need. The output claims it is a hardlink rename but it only creates the directories and not the file link. The docs say utorrent must be ran as 'admin', so I am guessing I must run filebot as root? In my script I sudo run filebot but that didn't resolve the issue. I'm a bit stuck and looking for help.
I'm running on a 64bit linux distribution.
Thanks,
James