POSTBUCKET - where random posts in unrelated topics go

Any questions? Need some help?
Post Reply
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How about sharing our format expressions?

Post by rednoah »

{s00e00.lower()} ;)
:idea: Please read the FAQ and How to Request Help.
ehmtwo
Posts: 5
Joined: 05 Nov 2012, 05:59

Re: How about sharing our format expressions?

Post by ehmtwo »

<3
cgibby
Posts: 2
Joined: 09 Nov 2012, 06:02

Re: Fully Automated Media Center

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

Re: Fully Automated Media Center

Post by rednoah »

What's the error output? Did you forget to copy lib/*.groovy? It'll need that for artwork/email/etc
:idea: Please read the FAQ and How to Request Help.
cgibby
Posts: 2
Joined: 09 Nov 2012, 06:02

Re: Fully Automated Media Center

Post 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!
ohadbenita
Posts: 9
Joined: 26 Nov 2012, 07:38

Re: How about sharing your CLI scripts?

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

Re: How about sharing your CLI scripts?

Post by rednoah »

Sorry, you'll need to grab the latest build or wait for the next release if you really need --action rename.
:idea: Please read the FAQ and How to Request Help.
opentag
Posts: 1
Joined: 30 Nov 2012, 17:17

Re: Fully Automated Media Center

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

Re: Fully Automated Media Center

Post 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.
:idea: Please read the FAQ and How to Request Help.
verysofttoiletpaper
Posts: 141
Joined: 05 Jul 2012, 09:44

Re: Fully Automated Media Center

Post 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!
verysofttoiletpaper
Posts: 141
Joined: 05 Jul 2012, 09:44

Re: Fully Automated Media Center

Post by verysofttoiletpaper »

Actually, I was wrong.
It is failing even running it with sudo.
I get "Exception: Unsupported Operation: createSymbolicLink"

Any idea why?
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

On Windows it needs to be admin. Linux should work fine as normal users. You'll need Java 7 though.
:idea: Please read the FAQ and How to Request Help.
verysofttoiletpaper
Posts: 141
Joined: 05 Jul 2012, 09:44

Re: Fully Automated Media Center

Post by verysofttoiletpaper »

Yes, installing Java 7 from oracle fixed the problem thanks :)
verysofttoiletpaper
Posts: 141
Joined: 05 Jul 2012, 09:44

Re: Fully Automated Media Center

Post by verysofttoiletpaper »

Would be useful to have a script option to disable archive extraction..
Cheers and good work!
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

Why would that be useful? Right now it'll only extract archives that contain video files.
:idea: Please read the FAQ and How to Request Help.
verysofttoiletpaper
Posts: 141
Joined: 05 Jul 2012, 09:44

Re: Fully Automated Media Center

Post by verysofttoiletpaper »

Oh.. in that case..
I thought it was extracting all files first

Thanks
verysofttoiletpaper
Posts: 141
Joined: 05 Jul 2012, 09:44

Re: Fully Automated Media Center

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

Re: Fully Automated Media Center

Post by rednoah »

Does the rescan request still work like this?
http://$server:$port/library/sections/$key/refresh/
:idea: Please read the FAQ and How to Request Help.
cheesemaker
Posts: 49
Joined: 03 Sep 2012, 10:52

Re: Fully Automated Media Center

Post by cheesemaker »

Yes, http://$server:$port/library/sections/all/refresh, worked for me.
http://wiki.plexapp.com/index.php/PlexN ... g_Sections
User avatar
rednoah
The Source
Posts: 22975
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Fully Automated Media Center

Post by rednoah »

Updated it the way you suggested. Should take effect by tomorrow.
:idea: Please read the FAQ and How to Request Help.
beeman147
Posts: 1
Joined: 22 Dec 2012, 05:57

Re: Fetch Artwork and Nfo for Movies

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

Re: How about sharing your CLI scripts?

Post by rednoah »

:idea: Please read the FAQ and How to Request Help.
danielsokolowski
Posts: 9
Joined: 03 Jan 2013, 01:55

Re: [MANUAL] Configure OpenSubtitles and Sublight login

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

Re: [MANUAL] Configure OpenSubtitles and Sublight login

Post 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.
:idea: Please read the FAQ and How to Request Help.
beeblebrox42
Posts: 3
Joined: 05 Jan 2013, 19:52

Re: Fully Automated Media Center

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