Page 6 of 41

Re: Fully Automated Media Center

Posted: 05 Jan 2013, 20:06
by rednoah
What's the cmdline output? If you're using --action hardlink it'll do that or print errors if it doesn't work. Make sure you're using Java 7, on linux you don't need to be root to create hardlinks.

Re: Fully Automated Media Center

Posted: 05 Jan 2013, 20:36
by beeblebrox42
rednoah wrote:What's the cmdline output? If you're using --action hardlink it'll do that or print errors if it doesn't work. Make sure you're using Java 7, on linux you don't need to be root to create hardlinks.
Thanks for the rapid response. I knew hardlinks in linux normally didn't require root, thought it was a java limitation.

If hardlinking requires Java 7 that might be the issue. I am using OpenJDK 1.6.0_24. I'll try to see if can upgrade to 1.7 and report back.

Code: Select all

FileBot 3.2 (r1372)
JNA Native: 3.5.0
MediaInfo: MediaInfoLib - v0.7.61
7-Zip-JBinding: OK
Extended Attributes: java.lang.NoClassDefFoundError: Ljava/nio/file/attribute/BasicFileAttributeView;
GVFS: OK
OpenJDK Runtime Environment 1.6.0_24 (headless)
64-bit OpenJDK 64-Bit Server VM
Linux (amd64)
Here is an example of one of the renames. There were no errors but only the to directory structure was created.

Code: Select all

[HARDLINK] Rename [/mnt/torrents/finished/NCIS.S10E01.HDTV.x264-LOL/ncis.1001.hdtv-lol/NCIS.S10E01.HDTV.x264-LOL.mp4] to [/mnt/torrents/organized/TV Shows/NCIS/Season 10/NCIS - S10E01 - Extreme Prejudice.mp4]

Re: Fully Automated Media Center

Posted: 05 Jan 2013, 20:53
by beeblebrox42
Switching to OpenJDK 1.7 fixed the issue, thanks again.

Re: Fully Automated Media Center

Posted: 07 Jan 2013, 11:31
by paddym
Hey Folks,

Brand new Nubie here I've been thinking about automating my xbmc setup for downloading and I'm absolutely blown away by what this script says it does.
Great work!

My question is probably stupid, where do I put this actual script file? I know you have steps entering it into uTorrent etc but what about other steps like saving the script somewhere?

thanks :-)

Re: Fully Automated Media Center

Posted: 07 Jan 2013, 11:55
by rednoah
You don't have to do anything. Just copy and paste the cmd and it'll work out of the box.

The -script fn:name argument means that FileBot will automatically grab the script from my online repository (it'll also auto-update every day).

Re: Fully Automated Media Center

Posted: 07 Jan 2013, 14:57
by paddym
Wow,

That's really great stuff thank you for this great piece of work.

I'll test it out tonight and see how it gets on... Watch this space for more dunce questions ;-)

Great work,

Re: Fully Automated Media Center

Posted: 07 Jan 2013, 23:12
by Demerzel
This seems really tits..

Im wondering how i can set my output to different disks?
eg my tv is on C: and movies is on E:

Re: Fully Automated Media Center

Posted: 08 Jan 2013, 02:08
by rednoah
Override the format expression => @see Customize Paths

Re: Fully Automated Media Center

Posted: 08 Jan 2013, 09:13
by Demerzel
Ok, sorry for the noobiness.


So, id set for example --output /my/tv/dir
and something like: --def "movieFormat="E:movies"/{n} {y}/{fn}"

Re: Fully Automated Media Center

Posted: 08 Jan 2013, 09:43
by rednoah
Reading this thread should answer all your questions:
http://filebot.sourceforge.net/forums/v ... ?f=8&t=429

Forcing Show Names via CSV file

Posted: 30 Jan 2013, 19:21
by SyAccursed
Quite new to this tool but it is rather awesome so I thought I'd share this after working it out!

It's kind of an 'everyman' code to move and rename files into a fairly simplistic format.

Code: Select all

E:\Videos\{def a; new File('E:/Videos/names.csv').splitEachLine(';'){ if (n == it[0]) a = it[1]}; a ?: n.upperInitial().replaceTrailingBrackets()}\Season {s.pad(2)}\{es*.pad(2).join(' & ').replaceAll('null',{episode.special ? 'Special '+special.pad(2):''})} - {t.upperInitial().replaceAll(/[?.:]/).replacePart(' (Part $1)')}
Having shared this with my brother (on mac) we hit some issues with it (to do with file paths and such) and it needs to be done like this to work (basically just exact past no ~ shortcuts and swapped \ for / in the file path.

Code: Select all

/Users/Symon/Television/{def a; new File('/Users/Symon/Television/names.csv').splitEachLine(';'){ if (n == it[0]) a = it[1]}; a ?: n.upperInitial().replaceTrailingBrackets()}/Season {s.pad(2)}/{es*.pad(2).join(' & ').replaceAll('null',{episode.special ? 'Special '+special.pad(2):''})} - {t.upperInitial().replaceAll(/[?.:]/).replacePart(' (Part $1)')}
What it does is:
1) Move files into:

Code: Select all

E:/Videos/Show Name/Season 00/00 - Title
2) Has an inbuilt force show name directed at
E:/Videos/names.csv
Using the format of:

Code: Select all

Actual Show Name;Show name you want
This also proves handy for forcing extra folders in example:
Avatar: The Last Air Bender;Avatar/The Last Air Bender
The Legend of Korra;Avatar/The Legend of Korra

Causes these two shows to be neatly organised into E:/Videos/Avatar/Show Name/Season/Episode

3) Inbuilt multi-part episode handle that outputs format of

Code: Select all

01 & 02 - Title
4) Replaces part numbers on episodes with (Part 0)

5) If a special episode is included it is placed within its related Season and formatted as Special 00 - Title

6) General house-keeping. Capitalises first initials for all words on show title and episode titles + knocks out ? . and : from titles (probably could do with a few more knockced out but I just add in illegals as I find em)

Re: [SNIPPET] Put the "The" at the end

Posted: 31 Jan 2013, 23:03
by Centric
Thank you for this rednoah, much appreciated. I was just wondering if its possible to reverse this process for the input file? (I don't have much knowledge in this areas, if my last sentence didn't make it obvious). But if I run filebot in command prompt on "Avengers, The" is it possible to make it "The Avengers" before it tries to look up the film... I hope that made sense...

Any help would be greatly appreciated

Re: [SNIPPET] Put the "The" at the end

Posted: 01 Feb 2013, 04:21
by rednoah
Yes, but only with your own customised scripting. The cmdline allows you to force the query.

Though for the sake of simplicity I suggest you:
* make sure to add .nfo files with imdbid (can be generated by the artwork.* scripts).

OR
* include {imdbid} in the filename

OR
* if you renamed it before with FileBot and have "ExtendedAttributes" enabled it'll already know everything because it can read all metadata from filesystem attributes. (This is only enabled on Windows when installed via .msi and running with Java 7).

Re: Fully Automated Media Center

Posted: 10 Feb 2013, 16:38
by buck3y3
rednoah wrote:What's not working with serviio? Just initiating a rescan is plex/xbmc specific. If you find out how to do that with serviio I can add that.
How would I find this? I read through the api page for serviio but have no clue on how to combine it.

Re: POSTBUCKET - where random posts in unrelated topics go

Posted: 10 Feb 2013, 16:43
by rednoah
Whats it say? Send http requests?

Re: [GUIDE] Fully Automated Media Center with Transmission (

Posted: 12 Feb 2013, 13:45
by Maxbn
Hi!

Thanks for all that, I've been waiting a long time for a guide on how to use it with transmission!

I carefully followed the steps above, but when a download ends, nothing happens.
Is there any pre-requisite before doing any of this ?

About the part in the nano editor, I have two questions:

is this part in the code "output "Path/to/folder" supposed to be replaced by something ?
secondly it may be irrelevant but when I copy and paste that part, the first time i do it, only the first and third line are copied, I have to paste it a second time so that the second line appears, is that a normal behavior?

Once again thanks for working on that!

Re: [GUIDE] Fully Automated Media Center with Transmission (

Posted: 12 Feb 2013, 14:10
by rednoah
You can also use your favourite text editor to edit the script. It's just text.

Of course you'll need to replace this part and specify where the files will go:

Code: Select all

 --output "path/to/folder"

Re: [GUIDE] Fully Automated Media Center with Transmission (

Posted: 12 Feb 2013, 16:22
by Maxbn
Thanks I got it to work!

For the record I installed Java, and changed the output path.

The only thing is it doesn't fetch the subtitles, which makes sense as I don't see "subtitles=en " as i see on the utorrent version.
Now my question is does all the options of the utorrent version works with this version ?
Options:
--def music=n Don't process music files
--def subtitles=en,de,fr Download subtitles for the given languages
--def artwork=n Don't fetch artwork/nfo
--def backdrops=y Fetch all available backdrops (not just one as with artwork=y)
--def xbmc=hostname Tell the given XBMC instance to rescan it's library
--def plex=hostname Tell the given Plex instance to rescan it's library
--def myepisodes=username:password Use the following MyEpisodes account to mark episodes as 'acquired'
--def pushover=userkey Send update notifications to your devices via Pushover
--def gmail=username:password Use the following gmail account to send and recieve reports
--def mailto=email Send report to the given email address (optional, email to yourself if not set)
--def ignore=regex Ignore filepaths that match the given regular expression
--def clean=y Automatically empty folders and clutter files that may be left behind after moving the video files or temporary extracted files after copying
If so do I just have to copy and paste the parts I want?
Sorry about these questions I'm a real noob, hopefully I'm not the only one and this might help others...

Re: [GUIDE] Fully Automated Media Center with Transmission (

Posted: 12 Feb 2013, 16:54
by rednoah
Yes, you can just append options to the cmdline above and it'll work:

Code: Select all

--def subtitles=en
The startup script is just glue logic between transmission and filebot. Also it's were you can set additional options for filebot and the amc script. The amc script itself is always the same, called via utorrent, transmission, or just directly from cmdline.

Re: [GUIDE] Fully Automated Media Center with Transmission (

Posted: 12 Feb 2013, 19:01
by Maxbn
Thanks ! it works! and it's pretty awesome.

Re: [GUIDE] Fully Automated Media Center with Transmission (

Posted: 13 Feb 2013, 01:50
by buck3y3
Maxbn wrote:Thanks I got it to work!

For the record I installed Java, and changed the output path.

The only thing is it doesn't fetch the subtitles, which makes sense as I don't see "subtitles=en " as i see on the utorrent version.
Now my question is does all the options of the utorrent version works with this version ?
Options:
--def music=n Don't process music files
--def subtitles=en,de,fr Download subtitles for the given languages
--def artwork=n Don't fetch artwork/nfo
--def backdrops=y Fetch all available backdrops (not just one as with artwork=y)
--def xbmc=hostname Tell the given XBMC instance to rescan it's library
--def plex=hostname Tell the given Plex instance to rescan it's library
--def myepisodes=username:password Use the following MyEpisodes account to mark episodes as 'acquired'
--def pushover=userkey Send update notifications to your devices via Pushover
--def gmail=username:password Use the following gmail account to send and recieve reports
--def mailto=email Send report to the given email address (optional, email to yourself if not set)
--def ignore=regex Ignore filepaths that match the given regular expression
--def clean=y Automatically empty folders and clutter files that may be left behind after moving the video files or temporary extracted files after copying
If so do I just have to copy and paste the parts I want?
Sorry about these questions I'm a real noob, hopefully I'm not the only one and this might help others...
I suppose I should have added that to the guide, but I couldn't remember if Java came with the bundle. Another thought, did you have to do anything special with your filebot install?

Re: [GUIDE] Fully Automated Media Center with Transmission (

Posted: 13 Feb 2013, 11:55
by Maxbn
Not that I can remember, I just downloaded the bundle, and installed the app without doing anything.

[FAQ] How can I change the filename?

Posted: 18 Feb 2013, 09:31
by rednoah
The format engine allows you to fully automatically make any kind of change to show names and episode titles via Groovy expressions.

Q: Some episodes start with '...Name' - Is it possible to ignore the dots when renaming?
A: Sure, just use after(regex) function.

Code: Select all

{t.after(/^[.]+/)}

Re: How about sharing our format expressions?

Posted: 20 Feb 2013, 21:22
by Omertron
This is the format that I use for YAMJ (and should work well with any other media center)

Code: Select all

..\{n.replaceFirst(/^(?i)(The|A)\s(.+)/, /$2, $1/)} {'('+y+')'}\{n} {'('+y+')'}{'.'+source}{'.'+vf}{".[CD$pi]"}{fn.match(/[.]fanart|[.]mkv/)}
All my movies are staged into a directory that I rename from and check before moving to my main movie folder.

"..\" moves the movie from it's staging directory to a correctly named folder

Code: Select all

{n.replaceFirst(/^(?i)(The|A)\s(.+)/, /$2, $1/)} {'('+y+')'}\
Renames the folder to be "name, the (year)" for better sorting

Code: Select all

{n} {'('+y+')'}{'.'+source}{'.'+vf}{".[CD$pi]"}{fn.match(/[.]fanart|[.]mkv/)}
Renames the file to be "the name (year).format.resolution.[cd#]"

Re: [MANUAL] Configure OpenSubtitles and Sublight login

Posted: 11 Mar 2013, 22:00
by gavdari
How can I manually modify the preferences file in linux? I'm trying to login into opensubtitles only (I don't have a sublight account) and when I'm running filebot -script fn:configure.login, This is what I get:

Code: Select all

Testing OpenSubtitles... OK
Testing Sublight... WebServiceException: Response indicates error: You must log in first.
javax.xml.ws.WebServiceException: Response indicates error: You must log in first.
	at net.sourceforge.filebot.web.SublightSubtitleClient.checkError(Unknown Source)
	at net.sourceforge.filebot.web.SublightSubtitleClient.getSubtitleList(Unknown Source)
	at net.sourceforge.filebot.web.SublightSubtitleClient$getSubtitleList.call(Unknown Source)
	at Script3.run(Script3.groovy:36)
	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 (°_°)
and the files in ~/.java/.userPrefs are empty. I'm running Filebot on Ubuntu.