POSTBUCKET - where random posts in unrelated topics go
Re: Fully Automated Media Center
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.
-
- Posts: 3
- Joined: 05 Jan 2013, 19:52
Re: Fully Automated Media Center
Thanks for the rapid response. I knew hardlinks in linux normally didn't require root, thought it was a java limitation.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.
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)
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]
-
- Posts: 3
- Joined: 05 Jan 2013, 19:52
Re: Fully Automated Media Center
Switching to OpenJDK 1.7 fixed the issue, thanks again.
Re: Fully Automated Media Center
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
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
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).
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
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,
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
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:
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
Override the format expression => @see Customize Paths
Re: Fully Automated Media Center
Ok, sorry for the noobiness.
So, id set for example --output /my/tv/dir
and something like: --def "movieFormat="E:movies"/{n} {y}/{fn}"
So, id set for example --output /my/tv/dir
and something like: --def "movieFormat="E:movies"/{n} {y}/{fn}"
Re: Fully Automated Media Center
Reading this thread should answer all your questions:
http://filebot.sourceforge.net/forums/v ... ?f=8&t=429
http://filebot.sourceforge.net/forums/v ... ?f=8&t=429
-
- Posts: 1
- Joined: 30 Jan 2013, 19:12
Forcing Show Names via CSV file
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.
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.
What it does is:
1) Move files into:
2) Has an inbuilt force show name directed at
E:/Videos/names.csv
Using the format of:
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
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)
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)')}
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)')}
1) Move files into:
Code: Select all
E:/Videos/Show Name/Season 00/00 - Title
E:/Videos/names.csv
Using the format of:
Code: Select all
Actual Show Name;Show name you want
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
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
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
Any help would be greatly appreciated
Re: [SNIPPET] Put the "The" at the end
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).
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
How would I find this? I read through the api page for serviio but have no clue on how to combine it.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.
Re: POSTBUCKET - where random posts in unrelated topics go
Whats it say? Send http requests?
Re: [GUIDE] Fully Automated Media Center with Transmission (
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!
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 (
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:
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 (
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 ?
Sorry about these questions I'm a real noob, hopefully I'm not the only one and this might help others...
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 ?
If so do I just have to copy and paste the parts I want?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
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 (
Yes, you can just append options to the cmdline above and it'll work:
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.
Code: Select all
--def subtitles=en
Re: [GUIDE] Fully Automated Media Center with Transmission (
Thanks ! it works! and it's pretty awesome.
Re: [GUIDE] Fully Automated Media Center with Transmission (
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?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 ?If so do I just have to copy and paste the parts I want?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
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 (
Not that I can remember, I just downloaded the bundle, and installed the app without doing anything.
[FAQ] How can I change the filename?
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.
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?
This is the format that I use for YAMJ (and should work well with any other media center)
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
Renames the folder to be "name, the (year)" for better sorting
Renames the file to be "the name (year).format.resolution.[cd#]"
Code: Select all
..\{n.replaceFirst(/^(?i)(The|A)\s(.+)/, /$2, $1/)} {'('+y+')'}\{n} {'('+y+')'}{'.'+source}{'.'+vf}{".[CD$pi]"}{fn.match(/[.]fanart|[.]mkv/)}
"..\" 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+')'}\
Code: Select all
{n} {'('+y+')'}{'.'+source}{'.'+vf}{".[CD$pi]"}{fn.match(/[.]fanart|[.]mkv/)}
Re: [MANUAL] Configure OpenSubtitles and Sublight login
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:
and the files in ~/.java/.userPrefs are empty. I'm running Filebot on Ubuntu.
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 (°_°)