Page 5 of 41

Re: How about sharing our format expressions?

Posted: 06 Nov 2012, 06:11
by rednoah
{s00e00.lower()} ;)

Re: How about sharing our format expressions?

Posted: 06 Nov 2012, 06:15
by ehmtwo
<3

Re: Fully Automated Media Center

Posted: 09 Nov 2012, 06:12
by cgibby
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.

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

Posted: 09 Nov 2012, 06:20
by rednoah
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

Posted: 09 Nov 2012, 15:51
by cgibby
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!

Re: How about sharing your CLI scripts?

Posted: 26 Nov 2012, 08:30
by ohadbenita
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 (░_░)

Re: How about sharing your CLI scripts?

Posted: 26 Nov 2012, 08:51
by rednoah
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

Posted: 30 Nov 2012, 17:24
by opentag
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

Posted: 01 Dec 2012, 05:04
by rednoah
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.

Re: Fully Automated Media Center

Posted: 10 Dec 2012, 12:04
by verysofttoiletpaper
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!

Re: Fully Automated Media Center

Posted: 10 Dec 2012, 12:12
by verysofttoiletpaper
Actually, I was wrong.
It is failing even running it with sudo.
I get "Exception: Unsupported Operation: createSymbolicLink"

Any idea why?

Re: Fully Automated Media Center

Posted: 10 Dec 2012, 12:33
by rednoah
On Windows it needs to be admin. Linux should work fine as normal users. You'll need Java 7 though.

Re: Fully Automated Media Center

Posted: 10 Dec 2012, 13:05
by verysofttoiletpaper
Yes, installing Java 7 from oracle fixed the problem thanks :)

Re: Fully Automated Media Center

Posted: 11 Dec 2012, 12:10
by verysofttoiletpaper
Would be useful to have a script option to disable archive extraction..
Cheers and good work!

Re: Fully Automated Media Center

Posted: 11 Dec 2012, 12:24
by rednoah
Why would that be useful? Right now it'll only extract archives that contain video files.

Re: Fully Automated Media Center

Posted: 11 Dec 2012, 13:05
by verysofttoiletpaper
Oh.. in that case..
I thought it was extracting all files first

Thanks

Re: Fully Automated Media Center

Posted: 11 Dec 2012, 13:15
by verysofttoiletpaper
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? :D

Re: Fully Automated Media Center

Posted: 11 Dec 2012, 13:25
by rednoah
Does the rescan request still work like this?
http://$server:$port/library/sections/$key/refresh/

Re: Fully Automated Media Center

Posted: 12 Dec 2012, 09:24
by cheesemaker
Yes, http://$server:$port/library/sections/all/refresh, worked for me.
http://wiki.plexapp.com/index.php/PlexN ... g_Sections

Re: Fully Automated Media Center

Posted: 12 Dec 2012, 11:53
by rednoah
Updated it the way you suggested. Should take effect by tomorrow.

Re: Fetch Artwork and Nfo for Movies

Posted: 22 Dec 2012, 06:17
by beeman147
rednoah wrote:Description:
  1. Download artwork for all your Movies from TheMovieDB. Fetch Movie nfo and all kinds of artwork and save files according to XBMC standards.
  2. Disable GUI tv series confirmation dialogs via -non-strict option (on headless machines this is the default).
Usage:

Code: Select all

filebot -script fn:artwork.tmdb /path/to/movies/
Options:
--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
Hello, thanks for the great program. It's really helped me begin the quest to get organized!

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

Re: How about sharing your CLI scripts?

Posted: 22 Dec 2012, 10:15
by rednoah

Re: [MANUAL] Configure OpenSubtitles and Sublight login

Posted: 03 Jan 2013, 01:58
by danielsokolowski
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

Posted: 03 Jan 2013, 04:55
by rednoah
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.

Re: Fully Automated Media Center

Posted: 05 Jan 2013, 20:01
by beeblebrox42
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