POSTBUCKET - where random posts in unrelated topics go

Any questions? Need some help?
Hematot
Posts: 17
Joined: 31 Mar 2012, 11:33

Re: POSTBUCKET - where random posts in unrelated topics go

Post by Hematot »

Exactly, it doesn't contain any subtitles but was identified as having it. Just as the ones actually having subtitles...

So I cleared the cache and ran the script again and just as expected ALL files was identified as NOT having any subtitles.
The reversing of the logical test came through but the getMediaInfo function failed to discriminate between the videos with and without embedded subtitles as before.

It took a while to find the media info function in FileBot, even with your instruction (you've hidden that function quite well!), but after trying to run it an explanation of why getMediaInfo doesn't work might have presented itself!
The result after pressing the table button was an error message saying:
Unable to load 32-bit native library 'mediainfo'

Looking in C:\Program Files\FileBot there's a 'MediaInfo.dll'.
I've just recently installed 4.0 over whatever previous version I had (3.x).
filebot -version gives 'FileBot 4.0 (r2056) / Java(TM) SE Runtime Environment 1.7.0_51'

/H
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

Read the FAQ. You're probably running a 32-bit JVM when you should be running a 64-bit JVM. You can also check with the sysinfo script if everything is working correctly.
:idea: Please read the FAQ and How to Request Help.
Hematot
Posts: 17
Joined: 31 Mar 2012, 11:33

Re: POSTBUCKET - where random posts in unrelated topics go

Post by Hematot »

Installed the 32-bit FileBot, that did the trick!
Don't understand why FileBot worked at all though...
Thanks! /H
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

FileBot is all Java code, which is then run by a JVM, doesn't matter if it's the 32-bit or 64-bit one. Though once external native libraries, e.g. MediaInfo.dll, get linked into the process architecture must match, or the library will be ignored, that's just how programs work.
:idea: Please read the FAQ and How to Request Help.
Hematot
Posts: 17
Joined: 31 Mar 2012, 11:33

Re: POSTBUCKET - where random posts in unrelated topics go

Post by Hematot »

I get a little bit of a deja vu feeling asking this: can the getMissingSubtitles function that is called from suball recognize my existing external subtitles that are named xxx.en.srt?
It downloads new ones and call them xxx.eng.srt.
Have I fiddled with some setting that I've forgot about?
/H
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

Nope, currently only checks for matching 3-letter codes. But you can try the latest revision which should work for what you're trying to do.
:idea: Please read the FAQ and How to Request Help.
Hematot
Posts: 17
Joined: 31 Mar 2012, 11:33

Re: POSTBUCKET - where random posts in unrelated topics go

Post by Hematot »

Well, I installed "FileBot_4.0_x86.msi" yesterday, is there a newer revision?
Suball hasn't changed either from what I can tell... (except the fix you did on sunday)
Sorry, I don't understand; latest revision of what?
/H
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

Latest revision of FileBot. See FAQ.
:idea: Please read the FAQ and How to Request Help.
Hematot
Posts: 17
Joined: 31 Mar 2012, 11:33

Re: POSTBUCKET - where random posts in unrelated topics go

Post by Hematot »

Thanks rednoah!
That did the trick.
/H
aztazt
Posts: 3
Joined: 24 Apr 2014, 21:28

Re: Exclude Blacklist & Series-Mappings

Post by aztazt »

Can you add a filter to exclude/blacklist files that match this pattern :

*.!sync

They are from BitTotrrent Sync while syncing and renamed by BTSync when finished.

I'm not a regexp guru but it may look like this :

(\.!sync)+$

Thx
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

Those !sync files don't have video extensions right? So it's already excluded from the start. Give me the complete path of one of these !sync files and how you think it affects matching in a negative way (with logs or examples).
:idea: Please read the FAQ and How to Request Help.
aztazt
Posts: 3
Joined: 24 Apr 2014, 21:28

Re: Exclude Blacklist & Series-Mappings

Post by aztazt »

Those .!sync files don't have video extension, right.
I didn't know that only video extensions were seen by filebot.

Here is a complete path of a .!sync file :

/data/download/NCIS.S11E01.Whiskey.Tango.Foxtrot.1080p.WEB-DL.DD5.1.H.264-CtrlHD.!sync

and that file becomes

/data/downloads/NCIS.S11E01.Whiskey.Tango.Foxtrot.1080p.WEB-DL.DD5.1.H.264-CtrlHD.mkv

when BitTorrent Sync finishes download.

I would like filebot to rename and move all .mkv files from /data/downloads/ to their final destination like that :

/data/TVShow/NCIS/NCIS - 11x01 - Whiskey Tango Foxtrot.mkv

but I don't want filebot to try rename and move .!syc files.

It's ok, just forget about my first request, filebot already works like I want.

Thank you for you amazing work.
adamp
Posts: 1
Joined: 29 May 2014, 11:35

Re: [MANUAL] Set OpenSubtitles Account

Post by adamp »

I'm using v4.0.

By running:

Code: Select all

filebot -script osdb.stats
I got:

Code: Select all

FileNotFoundException: osdb.stats
java.io.FileNotFoundException: osdb.stats
        at net.sourceforge.filebot.cli.ArgumentProcessor$DefaultScriptProvider.getScriptLocation(ArgumentProcessor.java:
195)
        at net.sourceforge.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:106)
        at net.sourceforge.filebot.Main.main(Main.java:192)
Failure (░_░)
Launch4j: Failed to run the given command.
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [MANUAL] Set OpenSubtitles Account

Post by rednoah »

Code: Select all

filebot -script fn:osdb.stats
:idea: Please read the FAQ and How to Request Help.
Morgenstern72
Donor
Posts: 43
Joined: 09 May 2014, 18:57

Re: How about sharing our format expressions?

Post by Morgenstern72 »

Movies (Filebot 4.1)

Code: Select all

../{primarytitle}{' ('+net.filebot.WebServices.IMDb.scrape(imdbid, '''//SPAN[@class='title-extra']''').match('"(.+)"')+')'} ({y}){' ['+fn.replaceAll(/(?i)directors|theatrical|ultimate/,'$0 Cut').matchAll(/UNRATED|REMASTERED|EXTENDED|UNCUT|DIRECTORS.CUT|THEATRICAL.CUT|ULTIMATE.CUT|SPECIAL.EDITION/).join('][').upperInitial().lowerTrail()+']'} [{vf}] [{ac}{fn.match("-HD.MA.")+af}]/{primarytitle} ({y}) {vc}{" (CD$pi)"}{' '+lang}
Movies (Filebot 4.0)

Code: Select all

../{primarytitle}{' ('+net.sourceforge.filebot.WebServices.....
I store my movies all in a seperate folder, to be able to navigate and extraxt as mauch info as possible when I have no tool for that (I use XBMC as media center). This makes it easy for me to search for low quality, special editions, etc.
Ilike to have the original titles of movies, so I use the special scraper. I also like to have extended info like special editions, resolution and audio quality to search for.

Examples
Folder: EnglishTitle (2013) [1080p] [DTS-HD.MA.6ch]
Movie: EnglishTitle (2013) x264.mkv

Folder: EnglishTitle (OriginalTitle) (1998) [576p] [AC3]
Movie: EnglishTitle (1998) XviD.avi

Folder: EnglishTitle (2001) [Extended] [1080p] [AC3]
Movie: EnglishTitle (2001) XviD


Episodes (FB 4.1)

Code: Select all

../{n}{' ("'+net.filebot.WebServices.IMDb.scrape(imdbid, '''//SPAN[@class='title-extra']''').match('"(.+)"')+'")'} ({y})/{"Season ${s.pad(2)}"}/{n} {s00e00} {t} [{vf}]{' '+lang}
Episodes (FB 4.0)

Code: Select all

../{n}{' ("'+net.sourceforge.filebot.WebServices...
This script is quite simple except the original title part at the beginning. Since I have some german tv shows I like to get correct titels for them. Rest is just standard. I do not use extended info here, because I want all shows in one folder per season.

Example
Folder: EnglishTitle\Season 1
Show: EnglishTitle.S01E01.ShowTitle.mkv
Pitbull_Raven
Posts: 7
Joined: 08 Jun 2014, 20:18

Re: Automated Media Center

Post by Pitbull_Raven »

rednoah wrote:Overview:
Here's a script that you can use with µTorrent as "Run program when torrent finishes" command to automatically sort out your downloads. It'll fully automatically organize newly downloaded TV shows and movies and is smart enough to detect what is what.
Dude... I just found filebot and must say it's amazeballs! This script works. The only gripe I have with this is that it seems to be duplicating my files. I.e. it's downloading to the download folder, then copies the files and renames according to the rules set forth in script. But it also keeps the original file (I guess until ratio is reached?). Is there any way to get utorrent to "relocate" the file instead, leaving it to seed once relocated and renamed to correct folder?
dlskins
Posts: 2
Joined: 10 Jun 2014, 16:18

Re: How about sharing our format expressions?

Post by dlskins »

Is there an option to rename The Show as Show, The?
tekwarp
Posts: 4
Joined: 12 Jun 2014, 02:07

Re: Media Index CSV

Post by tekwarp »

rednoah wrote:Description:
  1. Write media info of all video files in the given folder and subfolders to an easily readable CSV file (e.g. open in Excel)
Usage:

Code: Select all

filebot -script fn:mi /path/to/media/ "MediaIndex.csv"
Download Script:
http://filebot.net/scripts/mi.groovy

:?: I am new to groovy so not familiar with the syntax at all. How would you modify the above script to also retrieve the movie genre and IMDB or TMDB Rating?

thanks in advance!!

Seb
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

You can't. The mi script does not cross-reference your files with any database.
:idea: Please read the FAQ and How to Request Help.
tekwarp
Posts: 4
Joined: 12 Jun 2014, 02:07

Re: POSTBUCKET - where random posts in unrelated topics go

Post by tekwarp »

Thanks!
schimi2k
Posts: 4
Joined: 28 Jun 2014, 08:31

Re: Exclude Blacklist & Series-Mappings

Post by schimi2k »

hey, can u please add this to the blacklist:

tvs-poi = Person of Interest:
poid 1080p S03E13
&
tvs-poi-dd51-ded-dl-18p-ithd-avc-313

Season 03 Episode 13

Arrow ( TVDB ID: 257655 )
tvp-arrow-s02e11-1080p
&
tvs-arrow-dd51-ded-dl-18p-ithd-avc-211

Season 02 Episode 11


Marvel's Agents of S.H.I.E.L.D. ( TVDB ID: 263365 ):
tvp-shield-sXXeXX-1080p
&
tvs-agents of shield-dd51-ded-dl-18p-ithd-avc-122

Season 01 Episode 22


THX :)
Last edited by schimi2k on 28 Jun 2014, 08:56, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

Please post the filenames that are not matched correctly so I can figure out what to do about it.

EDIT: Fixed with r2286
:idea: Please read the FAQ and How to Request Help.
schimi2k
Posts: 4
Joined: 28 Jun 2014, 08:31

Re: Exclude Blacklist & Series-Mappings

Post by schimi2k »

WOW Thats fast buddy :)
i edit my previous post - these 2 releases ( TVP and TVS ) are the most used in German ( maybe with 720 instead of 1080 )

i hope u can work with it
Thx again for the great work
Meph88
Donor
Posts: 35
Joined: 29 Jun 2014, 15:46

Re: How about sharing your CLI scripts?

Post by Meph88 »

Hey,

I'm new to filebot and to scripts. I have a massive media library and I'm learning a lot of information trying to make a big job easier on myself.
I've managed to get the following script running well on my system:
call filebot -script fn:amc "T:\Unorganised" --output "T:/Organised" --action move --conflict override -non-strict --def music=y subtitles=en artwork=y

This successfully takes the media in the first directory, renames it, moves it into the new directory organised by show/season or movie or Artist/Album and so on. It's really great. Massive time saver so far.

I need a little help though, messing around and learning how this works I "tested"with a bunch of files. Now I'm ready to take it live and organise my library I have an issue. Any files that have been through the organisation script previously seem to be omitted. It leaves a number of files behind I have to sort manually which is a little annoying.

There's two ideas I have but I don't know how to do either; 1. Write into the script a command to ignore the logs from previous executions or 2. Reset/delete or something the file that holds the data for which files have been through the process before and should be excluded from future scans.

Any help is hugely appreciated.

I am also open to any improvements to the script that might do something cool and/or useful.
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

Note that if you call this script in intervals every hour or every day you must set --def excludeList or you will get banned.

In the call you posted you're NOT setting excludeList (which is bad) but you describe behaviour excludeList being set (that is good, you MUST set excludeList).
:idea: Please read the FAQ and How to Request Help.
seb182
Posts: 1
Joined: 19 Jul 2014, 10:01

Re: Automated Media Center

Post by seb182 »

Hey Rednoah

Great script - thanks very much for sharing!

One thing though - could you integrate the deleting of the original files? At the moment, it looks like it extracts, then copies and sorts the newly extracted file, thus leaving all the RAR files AND a copy of the unrarred file in the original download location.

Probably not a big thing for you to fix, right? :)
Achandab
Donor
Posts: 109
Joined: 04 Nov 2013, 21:20

Re: Installing FileBot on Synology NAS

Post by Achandab »

finally!! thanks RN. Any change of seeing a UI for synology???
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Installing FileBot on Synology NAS

Post by rednoah »

I'd only work on that on the premise of a paid application, so the Synology DSM UI is on ice until Synology supports publishing paid applications via Package Center. That's in the works for sure though, so maybe 1-2 years later.
:idea: Please read the FAQ and How to Request Help.
Pulpi
Posts: 22
Joined: 29 Aug 2014, 22:25

Re: Installing FileBot on Synology NAS

Post by Pulpi »

Filebot is working great, but I have problems by installing MediaInfo. Can anyone help me?

Code: Select all

FileBot 4.2 (r2326)
JNA Native: 4.0.0
MediaInfo: java.lang.UnsatisfiedLinkError: Unable to load library 'mediainfo': Native library (linux-x86/libmediainfo.so) not found in resource path ([file:/volume1/@appstore/filebot/FileBot.jar])
7-Zip-JBinding: net.sf.sevenzipjbinding.SevenZipNativeInitializationException: Failed to load 7z-JBinding: no 7-Zip-JBinding in java.library.path
chromaprint-tools: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Groovy Engine: 2.3.4
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0_06 (headless)
JVM: 32-bit Java HotSpot(TM) Embedded Client VM
CPU/MEM: 4 Core / 170 MB Max Memory / 10 MB Used Memory
OS: Linux (i386)
uname: Linux ds214play 3.2.40 #4493 SMP PREEMPT Thu Aug 21 21:46:01 CST 2014 i686 GNU/Linux synology_evansport_214play
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Installing FileBot on Synology NAS

Post by rednoah »

So which part of the Advanced section do you not understand?

1. Download the missing native libraries (.so files) for your arch
2. Set LD_LIBRARY_PATH to the folder where these libraries are before calling filebot
:idea: Please read the FAQ and How to Request Help.
Pulpi
Posts: 22
Joined: 29 Aug 2014, 22:25

Re: Installing FileBot on Synology NAS

Post by Pulpi »

I´ve downloaded the libmediainfo.so file for my arch (i686) and had set the path to the folder (where the file is in)
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Installing FileBot on Synology NAS

Post by rednoah »

Send me the output of filebot -script fn:sysenv please. You could also try with the latest beta.

EDIT: I've checked things and there's no issues with v4.2 so my guess is that the i686 binaries are simply not compatible with your system due to other library dependencies like libc version.
:idea: Please read the FAQ and How to Request Help.
Pulpi
Posts: 22
Joined: 29 Aug 2014, 22:25

Re: Installing FileBot on Synology NAS

Post by Pulpi »

By the way: Even no success by using the latest beta (after editing to set native libraries).

So at the moment there is no way to fix that?
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Installing FileBot on Synology NAS

Post by rednoah »

The i686 libraries are compiled for Linux (Ubuntu, Debian, etc) but there may or may not be incompatibilities with certain embedded Linux systems (especially older ones).
:idea: Please read the FAQ and How to Request Help.
Pulpi
Posts: 22
Joined: 29 Aug 2014, 22:25

Re: Installing FileBot on Synology NAS

Post by Pulpi »

I´ve compiled my "own" libmediainfo.so and now it works ;) but not with the current version (v0.7.69) only with v0.7.61 :D

Code: Select all

FileBot 4.2 (r2326)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.61
7-Zip-JBinding: net.sf.sevenzipjbinding.SevenZipNativeInitializationException: Failed to load 7z-JBinding: no 7-Zip-JBinding in java.library.path
chromaprint-tools: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Groovy Engine: 2.3.4
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0_06 (headless)
JVM: 32-bit Java HotSpot(TM) Embedded Client VM
CPU/MEM: 4 Core / 170 MB Max Memory / 12 MB Used Memory
OS: Linux (i386)
uname: Linux ds214play 3.2.40 #4493 SMP PREEMPT Thu Aug 21 21:46:01 CST 2014 i686 GNU/Linux synology_evansport_214play
Done ヾ(@⌒ー⌒@)ノ
sebmex
Posts: 2
Joined: 29 Sep 2014, 12:12

Re: Installing FileBot on Synology NAS

Post by sebmex »

Hi,

i tried to install the package, it went fine but no java installed.

I then installed the java 8 package following this tutorial :

http://pcloadletter.co.uk/2011/08/23/ja ... ment-77184

but when i try to call filebot -version

I get the “/usr/syno/bin/filebot : line 35 : java not found” message.

Any help would be appreciated.
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Installing FileBot on Synology NAS

Post by rednoah »

symlink java to /usr/syno/bin/java
:idea: Please read the FAQ and How to Request Help.
sebmex
Posts: 2
Joined: 29 Sep 2014, 12:12

Re: Installing FileBot on Synology NAS

Post by sebmex »

thanks for your answer, but would you have a complete command i can type on my interface ?... i am completely dumb on a console... :oops:
whocares
Posts: 18
Joined: 11 Oct 2014, 22:19

Re: [SNIPPET] Sort into A-Z folders

Post by whocares »

This should work

Code: Select all

{n =~ /^(?i)[0-9a-g]/ ? 'a-f' : n =~ /^(?i)[h-n]/ ? 'h-n' : n =~ /^(?i)[o-s]/ ? 'o-s' : 't-z' } 
:)
gardnerd4me
Posts: 9
Joined: 21 Oct 2014, 04:36

Re: [OSX] brew cask install filebot

Post by gardnerd4me »

Thank you for this wonderful application. After installing with brew, I can't seem to get my AMC script to run. Is their something more that needs to be done here? I have tried using the standard "filebot -script fn:amc" and also tried pointing to "/opt/homebrew-cask/Caskroom/filebot/4.5/FileBot.app -script fn:amc". Still no luck. Worked fine before installing with the brew method. Any help is appreciated.
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [OSX] brew cask install filebot

Post by rednoah »

Have you tried? What's the output?
5. Check if filebot is working:

Code: Select all

filebot -version
@readme viewtopic.php?f=5&t=1868
:idea: Please read the FAQ and How to Request Help.
gardnerd4me
Posts: 9
Joined: 21 Oct 2014, 04:36

Re: [OSX] brew cask install filebot

Post by gardnerd4me »

FileBot 4.5 (r2600) / Java(™) SE Runtime Environment 1.8.0_20

edit: OK, just updated java and filebot: FileBot 4.5 (r2612) / Java(TM) SE Runtime Environment 1.8.0_25

Code: Select all

filebot -script fn:sysinfo                                           
Oct 20, 2014 11:30:57 PM net.filebot.Main initializeCache
WARNING: App version (r2612) does not match cache version (r2600): reset cache
FileBot 4.5 (r2612)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (/opt/homebrew-cask/Caskroom/filebot/4.5/FileBot.app/Contents/MacOS/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.3.7
JRE: Java(TM) SE Runtime Environment 1.8.0_25
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 2 Core / 1 GB Max Memory / 372 MB Used Memory
OS: Mac OS X (x86_64)
uname: Darwin Mothership.local 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64
Done ヾ(@⌒ー⌒@)ノ
And here is the output of the command when run

Code: Select all

Filebot -script fn:amc --output "/Volumes/D3/Media" --log-file amc.log --action copy --conflict auto --def artwork=n --def excludeList=amc.txt --def ignore=iso --def gmail=************************* "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME" --def "seriesFormat=TV Shows/{n}/{episode.special ? 'Season 0' : 'Season '+s}/{episode.special ? 'S00E'+special.pad(2) : s00e00} - {t}" "movieFormat=Movies/{n}/{n}"
Locking /Users/*************/.filebot/logs/amc.log
Parameter: artwork = n
Parameter: excludeList = amc.txt
Parameter: ignore = iso
Parameter: gmail = *****
Parameter: ut_dir = /
Parameter: ut_kind = multi
Parameter: ut_title = 
Parameter: seriesFormat = TV Shows/{n}/{episode.special ? 'Season 0' : 'Season '+s}/{episode.special ? 'S00E'+special.pad(2) : s00e00} - {t}
Parameter: movieFormat = Movies/{n}/{n}
NullPointerException: java.lang.NullPointerException
java.lang.NullPointerException
	at net.filebot.media.ReleaseInfo$FolderEntryFilter.accept(ReleaseInfo.java:442)
	at net.filebot.media.MediaDetection.isDiskFolder(MediaDetection.java:94)
	at net.filebot.cli.ScriptShellMethods.isDisk(ScriptShellMethods.java:85)
	at Script1.resolveInput(Script1.groovy:143)
	at Script1$_resolveInput_closure83.doCall(Script1.groovy:144)
	at Script1.resolveInput(Script1.groovy:144)
	at Script1$_resolveInput_closure83.doCall(Script1.groovy:144)
	at Script1.resolveInput(Script1.groovy:144)
	at Script1$_resolveInput_closure83.doCall(Script1.groovy:144)
	at Script1.resolveInput(Script1.groovy:144)
	at Script1$_run_closure46.doCall(Script1.groovy:167)
	at Script1.run(Script1.groovy:167)
	at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:61)
	at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:82)
	at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:109)
	at net.filebot.Main.main(Main.java:183)
Failure (°_°)
edit again. OK, so I just ran the full command pointed at "/opt/homebrew-cask/Caskroom/filebot/4.5/FileBot.app" and it came back permission denied. So that explains why it's not running. I think I can fix from here.

edit again :( Nope, i'm totally lost.
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [OSX] brew cask install filebot

Post by rednoah »

I just ran the full command pointed at "/opt/homebrew-cask/Caskroom/filebot/4.5/FileBot.app" and it came back permission denied. So that explains why it's not running. I think I can fix from here.
This is exactly why you can't have the .app package. Thanks for making my point.


1.
So it's running perfectly fine then - obviously - since FileBot is giving you lots of output.

2.
FileBot.app is a FOLDER and you can't execute folders, only programs, which are files. Learn how to use your OS.

3.
filebot runs, and then crashes, and rightly so because you're calling it on YOUR ENTIRE FILESYSTEM

Code: Select all

Parameter: ut_dir = /
Can you guess what it should be? It's the path to the files you wanna process. Most certainly not the filesystem root / right?

Code: Select all

"ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME"
So you called the script yourself? Transmission is supposed to set certain environment variables when making the call. So you need to set them if you're making to call. Clear?

4.
I suppose you're lucky on this one, Mac letting you get away with it, but seriously... you confirm "filebot" works and then you expect "Filebot" to work? It's not the same. Don't try this on Linux.

Code: Select all

Filebot
5.
Once you fix all the issues above, we might actually get to the point where we can see the real issue.
:idea: Please read the FAQ and How to Request Help.
gardnerd4me
Posts: 9
Joined: 21 Oct 2014, 04:36

Re: [OSX] brew cask install filebot

Post by gardnerd4me »

1.
So it's running perfectly fine then - obviously - since FileBot is giving you lots of output.
Yes, it appears so.

2.
FileBot.app is a FOLDER and you can't execute folders, only programs, which are files. Learn how to use your OS.
My mistake, was trying lots of alternative ways to run the script. That was a stupid mistake.

3.
filebot runs, and then crashes, and rightly so because you're calling it on YOUR ENTIRE FILESYSTEM

Code: Select all

Parameter: ut_dir = /
Can you guess what it should be? It's the path to the files you wanna process. Most certainly not the filesystem root / right?

Code: Select all

"ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME"
So you called the script yourself? Transmission is supposed to set certain environment variables when making the call. So you need to set them if you're making to call. Clear?
Didn't realize the significance of setting the environment variables when running the script manually. Lesson learned.

4.
I suppose you're lucky on this one, Mac letting you get away with it, but seriously... you confirm "filebot" works and then you expect "Filebot" to work? It's not the same. Don't try this on Linux.
Similar to #2, bad copy/pasting on my part

5.
Once you fix all the issues above, we might actually get to the point where we can see the real issue.
I hope that i have fixed these issues enough to continue to ask for help getting the script to run.


So I got the script to run manually, and it is performing exactly as it should using this:

Code: Select all

filebot -script fn:amc --output "/Volumes/*****/Media" --log-file amc.log --action copy --conflict auto --def artwork=n --def excludeList=amc.txt --def ignore=iso --def gmail=***** "ut_dir=/Users/*****/Downloads/Torrents/*****" "ut_kind=multi" "ut_title=*****" --def "seriesFormat=TV Shows/{n}/{episode.special ? 'Season 0' : 'Season '+s}/{episode.special ? 'S00E'+special.pad(2) : s00e00} - {t}" "movieFormat=Movies/{n}/{n}"
Very happy to get this far. However when I change that same script back into the "transmission-postprocess" executable and chmod +x the file, it will not trigger from transmission. I thank you for pointing out my mistakes trying to run it manually, which I never do. But now i'm back to my original problem of trying to get transmission to run it. Here is the script transmission is trying to run, minus sensitive information:

Code: Select all

filebot -script fn:amc --output "/Volumes/*****/Media" --log-file amc.log --action copy --conflict auto --def artwork=n --def excludeList=amc.txt --def ignore=iso --def gmail=***** "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME" --def "seriesFormat=TV Shows/{n}/{episode.special ? 'Season 0' : 'Season '+s}/{episode.special ? 'S00E'+special.pad(2) : s00e00} - {t}" "movieFormat=Movies/{n}/{n}"
As I said, this script ran flawless on the last version before I updated using the brew method, so not sure why it has stopped running.
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [OSX] brew cask install filebot

Post by rednoah »

Once the script itself is working the rest is really more of a Transmission issue. I'd first make sure that Transmission is in fact calling your script (add some logging to your shell script) and that all the variables like $TR_TORRENT_DIR are available in the script (add some more logging for that)

e.g.

Code: Select all

date >> output.txt
whoami >> output.txt
echo $TR_TORRENT_DIR >> output.txt
echo $TR_TORRENT_NAME >> output.txt
echo $TR_TORRENT_NAME >> output.txt
:idea: Please read the FAQ and How to Request Help.
gardnerd4me
Posts: 9
Joined: 21 Oct 2014, 04:36

Re: [OSX] brew cask install filebot

Post by gardnerd4me »

Well as soon as I added logging to the script and tried another download, it ran fine. Not sure why but i'll leave it as is if it's working.
te5s3rakt
Posts: 35
Joined: 02 Apr 2013, 11:51

Re: [OSX] brew cask install filebot

Post by te5s3rakt »

the filebot upgrade command line there... how would you recommend to automate that if you wished? on mac
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [OSX] brew cask install filebot

Post by rednoah »

brew cask doesn't support automatic updates at this point, but it's planned
:idea: Please read the FAQ and How to Request Help.
arcelas
Posts: 7
Joined: 19 Jul 2014, 03:04

Re: My Perfection Custom Naming Scheme

Post by arcelas »

DevXen wrote:Here is my naming scheme For TV Shows, i've worked on for the last week or two.

Code: Select all

{model.episode.containsAll(episodelist.findAll{it.season == s && it.episode && it.title}) ? 'H:/Live Action (New)/'+(csv('C:/FileBot Settings/TV/TVGenreFolderBasedOnSeriesName.csv').get(n) ?: genre)+'/' : 'H:/Unfinished Seasons (New)/Current Seasons (In Progress)' + '/'}{norm = {it.upperInitial().lowerTrail().replaceAll(/[`´‘’ʻ""“”]/, "'").replaceAll(/[:|]/, " - ").replaceAll(/[?]/, "!").replaceAll(/[*\s]+/, " ").replaceAll(/\b[IiVvXx]+\b/, { it.upper()}).replaceAll(/\b[0-9](?i:th|nd|rd)\b/, {it.lower()})}; norm(n).replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/).replaceTrailingBrackets()}{' '+n.match(/\([A-Z]+\)$/)}{if (norm(n) != norm (primaryTitle)) ' ('+norm(primaryTitle)+')'}{fn.contains('3D') || fn.contains('3-D') ? ' '+'3D':""}{if (y) {' ['+y +']'}}{' '+any{"[$certification]"}{"["+$imdb.certification+"]" }.replaceAll('N A','').replaceAll(/^ \d+$/, 'PG-$0')}{" [$rating" + "★]"} [{csv('C:/FileBot Settings/TV/TVNetwork.csv').get(info.network) ?: info.network }]/{[episodelist.findAll{ it.season == s }.airdate.year.min()]} {episode.special ? ' - Season '+s.pad(2)+'/[Specials]' : ' - Season '+s.pad(2)}/{csv('C:/FileBot Settings/TV/TVFileShowNames.csv').get(n) ?: norm(n).replaceTrailingBrackets()}{' '+n.match(/\([A-Z]+\)$/)}{' '+n.match(/\([0-9]+\)$/)} {episode.special ? '- S00E'+special.pad(2)+' -' : '- '+s00e00+' -'} {norm(t.replaceAll("\\s*[(]([^)]*)[)]\$", { group, match -> ' (Part '+match.pad(2)+')' }))}{fn.contains('3D') || fn.contains('3-D') ? ' '+'3D':""}{' (' + fn.matchAll(/extended|uncensored|remastered|unrated|uncut|directors.cut|special.edition|unsold.pilot|unaired.pilot| unaired.episode/)*.upperInitial()*.lowerTrail().sort().join(', ').replaceAll(/ [._]/, " ") + ')'}{" Part $pi"}{" [$minutes Min]"}{airdate.format(" [MM.dd.yyyy]")}{" [$source]"}{" [$vf $ac $af]"}
---Updated: 10.28.2014---
#14 in the list.

I'm not sure if I can remember all I've done to it. it is based on: "Ithiel's super crazy renaming scheme for perfectionists!" I just decided to perfect it for my needs.

Changes/Updates/Additions
  • 1. More Accurately matches Complete/Incomplete seasons as it looks for The Episode title as well as season. Removing Specials and Numbered but unlisted episodes from matching.
    2. I Put the Country Code back in the Folder name and capitalized it. i.e.: "(US)" when it's part of the show name on TheTVDB To Differentiate between Shows like: Wilfred and Wilfred (US), Being Human and Being Human (US), Etc
    3. Added the Year the show started To the folder (To differentiate between tv show remakes: Knight Rider [1982] vs. Knight Rider [2008]
    4. When the year is included in TheTVDB Show name then I added it to the filename as well. (2008)
    5. Moved 'The', 'A', and 'An' to the end of the TV Show name on the folder, but not on the show or episode names on the file. (Every Big Bang Theory episode name starts with 'The'.)
    6. I put the Episode Parts back in and Padded it as well. (Part 01), (Part 02), etc. (Edit: This is working again)
    7. Added: [TV Rating] [Star Rating] [Network] to the Folder show name. [TV-PG] [9.5★] [FOX]
    8. Added the Year the season started to the Season folder [2008] - Season 01, [2009] - Season 02, etc.
    9. Added: [Actual Minutes of the Episode] [Original Airdate] [Source] [Resolution Standard Audio Codec Audio Channels] To the File name. [21 Min] [03.05.2011] [DVDRip] [360p AAC 2ch]
    10. Added a CSV File for Matching: TVNetwork.csv as Some networks are longer than needed: National Geographic;NeoGeo .. The CW;CW .. etc.
    11. Added a CSV file for Matching: TVFileShowNames.csv as some show names are a bit long, when it's already in the folder name, So: Epic Rap Battles of History;ERB .. How it Should have Ended;HISHE
    12. Moved the specials to the season to which their aired under a [Specials] Sub Folder
    13. added: unsold.pilot, unaired.pilot, unaired.episode To the Extended info matching check.
    14. Added genre folder name CSV File check based on series name (I.E.: Being Human (US) now goes to Horror instead of Comedy.)
Filename Examples:
  • Cyanide & Happiness Show, The [2010] [10.0 Stars] [YouTube]\[2010] - Season 01\The Cyanide & Happiness Show - S01E01 - The Sign [0 Min] [02.01.2010] [WEB-DL] [720p AAC 2ch].mp4
    Epic Rap Battles Of History [2010] [TV-MA] [9.3 Stars] [YouTube]\[2010] - Season 01\ERB - S01E01 - John Lennon Vs Bill O'Reilly [2 Min] [09.26.2010] [WEB-DL] [576p AAC 2ch].mp4
    How It Should Have Ended [2007] [YouTube]\[2007] - Season 01\HISHE - S01E01 - How The Matrix Should Have Ended [1 Min] [03.06.2007] [WEB-DL] [360p AAC 2ch].mp4
    7 Deadly Sins [2014] [TV-MA] [Showtime]\[2014] - Season 01\7 Deadly Sins - S01E01 - Gluttony [27 Min] [08.07.2014] [HDTV] [480p AAC 2ch].mkv
Like i said I could be missing things I've done. But Assuming that I'm not. Everything else should still be the same as: "Ithiel's super crazy renaming scheme for perfectionists!". You can find his naming scheme at: http://www.filebot.net/forums/viewtopic.php?f=5&t=1205

The CSV files I am using
  • C:\FileBot Settings\TV\TVGenreFolderBasedOnSeriesName.csv
    C:\FileBot Settings\TV\TVFileShowNames.csv
    C:\FileBot Settings\TV\TVFolderShowNames.csv
    C:\FileBot Settings\TV\TVNetwork.csv
(These are all in: What To Match;What You want to replace it with Format)

If there is a better, faster, more efficient, Smaller way to do Anything in my naming scheme, Please share.

Also there are a couple other things I'd like to do to it. but Haven't been able too, so if any of you out there, want to tackle these ideas, That'd be rad. and if not, it's pretty good as it is.

The things i would still like to add are:
  • 1. A csv filecheck for the Foldername. So you can match shows like: Avatar The last Air bender, and the Legend of Kora in the same folder, under different sub folders. (As explained in the post in this thread, by: SyAccursed) - I worked on it for a few hours, but was unable to get it to work correctly.
    2. A way to check if the show has ended. and if you have every episode of every season put (Full) in the show folder name.
    3.Check the sources of each episode in the folder if they all are the same add (Source) to the Season Folder name. If they are not the same add (Mixed) or each source in the season (HDTV & DVDRip) [I haven't decided which I like better yet.] - To the season folder name.
    4. And also, find a way to check to see if the show is in the middle of airing the current season, if so. put those files in a (Currently airing) folder as they won't be complete until the season ends. - so it'd be a 3 way split. 1. Completed Seasons. 2. Incomplete Season. 3. Currently airing Seasons. (The idea being to identify the incomplete seasons to complete them. and not to move the currently airing seasons to the main folder until the season is over.
These Ideas I haven't been able to get working yet. But they would make the naming scheme perfect for me. So if I can get them working, i'll update this post accordingly. If anyone else out there, would like to give them a try, that'd be cool too. and as i said, if not. it's usable and nearly complete as it is, so Enjoy.

I'd also like to thank rednoah, for all his help with several issues i've had working this out. and putting up with my crazy annoying requests for help. haha. I'd also like to thank everyone else that has posted ideas, and things that work, and better ways to do things, that i was able to pick up here in the forums. without that, and those examples, I don't think I could have figured out how to do any of it. so If I used an idea of yours and didn't credit you, I apologize. Let me know And I will.

..And now to work on my Movie naming Scheme.
I love the ideas behind you naming scheme, just wondering how to do a couple things:
1. How would I add the show name to the actual filename? PLEX needs the file named that way.
2. How do I get the .csv files you are using?

Thanks again.
DevXen
Power User
Posts: 164
Joined: 12 Oct 2014, 21:15

Re: POSTBUCKET - where random posts in unrelated topics go

Post by DevXen »

arcelas wrote:I love the ideas behind you naming scheme, just wondering how to do a couple things:
1. How would I add the show name to the actual filename? PLEX needs the file named that way.
2. How do I get the .csv files you are using?

Thanks again.


Thank you. I spent a lot of time on it.

It does put the show name in the filename. The only time it puts something different is when there is a match in the csv file.

The csv files I've just updated as I went in notepad to work for my TV shows and my preferences.

Like the genre csv file. I have:

Being Human (US);Horror

In one line cause I want it to go to the horror folder.

To run it. You just need the empty files. What I did was create new notepad files of the names and path mentioned above. Then rename them from .TXT to .csv then add to them as needed.

Examples:

C:\FileBot Settings\TV\TVGenreFolderBasedOnSeriesName.csv
Being Human (US);Horror

C:\FileBot Settings\TV\TVFileShowNames.csv
Lois & Clark: The Adventures of Superman;Lois & Clark (TAOS)

C:\FileBot Settings\TV\TVFolderShowNames.csv
Wilfred (US);Wilfred/Wilfred (US)
Wilfred;Wilfred/Wilfred (AU)

C:\FileBot Settings\TV\TVNetwork.csv
The CW;CW


Important things to note on matching. The name has to be exact, the case matters, and :'s need to be in the csv if it's in the show/title. If something didn't match for me. I'd refresh it by clicking on the button again (to reload the values) and that shows me how filebot sees the original show/title the : being the biggest thing missed as the matching changes that to - so you don't know if it's - or : originally. But I hope that helps.
CletusAZ
Posts: 2
Joined: 06 Nov 2014, 19:45

Re: Exclude Blacklist & Series-Mappings

Post by CletusAZ »

Im having PBS NOVA episodes get renamed incorrectly.

In this case: PBS.NOVA.2014.Killer.Landslides.720p.HDTV.x264.AAC.MVGroup.org.mp4

was renamed as: Welcome to New York (2014).mp4

Any way I can fix this or add something to the series mapping so that it can work better?

Thanks :)
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

Why did you not mention that you're using the amc script?

For episode files that are named like movie files you need to force tv mode. RTFM.
:idea: Please read the FAQ and How to Request Help.
CletusAZ
Posts: 2
Joined: 06 Nov 2014, 19:45

Re: Exclude Blacklist & Series-Mappings

Post by CletusAZ »

Oh cool! I had not learned about TV only mode yet. Ill look it up.
Thank you
angst
Posts: 6
Joined: 18 Mar 2013, 00:55

Re: Add Blacklisted Terms and Improve Movie / Series Detecti

Post by angst »

Rednoah,

I have a folder called "processing" where the files wait for FileBot. I keep getting series renamed to a movie, a 1908 silent (classic?):

<sequence date="2014-03-29T16:04:45.618-06:00">
<rename dir="E:\processing" from="BBC.Rip.Off.Britain.Food.Series.1.01of10.720p.HDTV.x264.AAC.MVGroup.org.mp4" to="E:\Plex\Movies\The Fish Processing Factory at Astrakhan (1908)\The Fish Processing Factory at Astrakhan (1908).mp4"/>
</sequence>

I think this can be due to the folder name "processing". I may have incorrectly allowed this match one time or another. Not sure. Any idea? My script is below:

filebot -script fn:amc --output "Z:\Plex" --log-file amc.log --action move -non-strict "Z:\Plex" --def excludeList=amc-input.txt --def deleteAfterExtract=y --def plex=plex-home
filebot -script fn:amc --output "Z:\Plex" --log-file amc.log --action move -non-strict "E:\processing" --def deleteAfterExtract=y --def plex=plex-home
filebot -script fn:cleaner E:\processing
filebot -script fn:cleaner Z:\Plex\Movies
filebot -script fn:cleaner "Z:\Plex\TV Shows"


Thanks a bunch,

Angst
Hillbird
Posts: 3
Joined: 19 Nov 2014, 08:15

Re: Manual / FAQ

Post by Hillbird »

when trying command filebot -script fn:configure
to configure opensubtitles I get the following message:
what is going wrong? version 4.5.3 filebot

Enter OpenSubtitles username: NullPointerException: Cannot invoke method readLine() on null object
java.lang.NullPointerException: Cannot invoke method readLine() on null object
at Script1.run(Script1.groovy:4)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:61)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:82)
at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:112)
at net.filebot.Main.main(Main.java:170)
Failure (°_°)
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

Your console environment doesn't seem right.

How about you post some sysinfo?
viewtopic.php?f=4&t=1868
:idea: Please read the FAQ and How to Request Help.
Hillbird
Posts: 3
Joined: 19 Nov 2014, 08:15

Re: POSTBUCKET - where random posts in unrelated topics go

Post by Hillbird »

Synology NAS DS212j DSM 5.1-5021 Update 2
Filebot 4.5.3
CLI Webconsole 0.2.6-2
Java SE Embedded 1.8.0-1
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

I suppose Console Interactive programs don't work with "CLI Webconsole" or whatever that is. I recommend using SSH to login to your NAS.
:idea: Please read the FAQ and How to Request Help.
blackbike
Posts: 1
Joined: 04 Jan 2015, 17:11

Re: Exclude Blacklist & Series-Mappings

Post by blackbike »

Could you please add:

TBLUS = The Biggest Loser US

Thanks
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

That's not how it works. If you have trouble matching certain files please posts the full paths in a new thread.

See viewtopic.php?f=5&t=1868
:idea: Please read the FAQ and How to Request Help.
jclancy103
Posts: 6
Joined: 20 Jan 2015, 06:59

Re: [SNIPPET] Sort into A-Z folders

Post by jclancy103 »

I am using CLI and used one of the formats here with changes to work with my system, my output.txt file looks like this
I:\
F:\
[n =~ /^(?i) (0-9a-c)/ ? 'M:\' : n =~ /^(?i) (d-h)/ ? 'K:\' : n =~ /^(?i) (i-m)/ ? 'J:\' : n =~ /^(?i) (n-s)/ ? 'L:\' : n =~ /^(?i) (t)/ ? 'E:\' : 'D:\' }

-----------------------
Instructions:
- The first 3 lines must be the File Output Locations.
- Don't put anything else on those lines.
- Remember your trailing slashes.
- Line 1 is for Anime.
- Line 2 is for TV Shows.
- Line 3 is for Movies.
- UNC and local paths supported.

When it goes to move and create the folder to put the movie in I get like 20 folders and they start being named as the movie entry, so folder 1 will be {n =~ then 2 will be /^(?I) and so on. I know I am missing something simple can someone please throw me a bone.

Thanks,
John
DavidRTurner
Power User
Posts: 91
Joined: 01 Feb 2014, 16:59

Re: How about sharing our format expressions?

Post by DavidRTurner »

I have just one more thing to do on my Movie Format; I want to use a CSV to rename movie titles, but I'm not finding a way to get this done.

I've done it with several other fields, but cannot get the name.

Simple Version:

Code: Select all

>>-- this is the start of the MOVIE_FORMAT definition, with opening curly brackets 
{
MOVIE_FORMAT= {it.upperInitial() .lowerTrail().replaceAll(/[`´‘’“”""]/, "'").replaceAll(/[*^]/, "-").replaceAll(/[;]/, ", ").replaceAll(/[?|]/, "!").replaceAll(/ /, " ").replaceAll(/[:]/, "-").replaceAll(/[*\s]+/, " ")};

MOVIE_FORMAT(n).replaceFirst(/^(?i)(The|A|An)\s(.+)/, /$2, $1/).replaceAll(/\b(?i:it)+\b/, {it.upperInitial()})
}
<<-- this is the end of the MOVIE_FORMAT definition with closing curly brackets

{alias ?: ''}

{info.SpokenLanguages.displayLanguage.contains(/English/) ? '' : " [Lang= "+(info.SpokenLanguages.displayLanguage[0]).upper()+"]"}

({y}) 
[{(info.runtime).replaceAll('min', '')} min] 
{actors.take(3)} 
{genres.take(3)}
{csv('B:\Downloads\Filebot\Movie Preferred Names.csv').get(n) ?: MOVIE_FORMAT(n)}
needs to go in here somewhere.
If I test this line at the end of the format, it works fine, pulling the whole format, and then pulling the CSV replacement name, so the code works; I just can't place it correctly to replace the movie name in the main format.
Thoughts?

What do I mean by 'replace the movie name?'
I want to keep them all sorted under the franchise name - especially where there are different-named sequels:
Planet of the Apes (1968);Planet of the Apes 1
Beneath the Planet of the Apes;Planet of the Apes 2
Escape From the Planet of the Apes;Planet of the Apes 3
Conquest of the Planet of the Apes;Planet of the Apes 4
Battle for the Planet of the Apes;Planet of the Apes 5
Planet of the Apes (2001);Planet of the Apes 6
Rise of the Planet of the Apes;Planet of the Apes 7
Dawn of the Planet of the Apes;Planet of the Apes 8
User avatar
bonelifer
Power User
Posts: 86
Joined: 23 Mar 2013, 18:27

Re: Exclude Blacklist & Series-Mappings

Post by bonelifer »

NCIS.NO NCIS: New Orleans
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

Added to series index.
:idea: Please read the FAQ and How to Request Help.
scf
Posts: 4
Joined: 07 Oct 2012, 06:55

Pre-10.8?

Post by scf »

For a bunch of reasons I'm not running 10.8. Is there a way to get a copy to run on an older version, since 4.0.0 seems to fail recently with some Java error? I'm happy to make a donation :)
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Pre-10.8?

Post by rednoah »

Java 8 only works on 10.8+ so new versions just can't work on older OSX versions.

Depending how old your system is (you didn't say) you might be able to install Java 7 and run FileBot 4.2 which is no longer supported but should still work quite well.
:idea: Please read the FAQ and How to Request Help.
TehBotol
Supporter
Posts: 34
Joined: 06 Mar 2013, 00:01

Re: How about sharing our format expressions?

Post by TehBotol »

Here is what i use for TV Series

Code: Select all

\{n.replaceTrailingBrackets()} {'S'+s.pad(2)} ({episodelist.findAll{it.season == s}.airdate.year[0,1].unique().join('-')})\{n.replaceTrailingBrackets()} {'S'+s.pad(2)} E{e.pad(2)} - {t} - {try{source}catch(e){'WEB-DL'}}.{vf}.{ac}.{af.replace('6ch','5.1')}.{try{group}catch(e){''}}
File Name : Tvseriesname.S02E19.1080p.WEB-DL.DD5.1.H.264-NTb
will change to : TV Series Name S02 (Year)\Tv Series Name S02 E19 - Episode Title - WEB-DL.1080p.AC3.5.1.NTb

do note if filebot cant find the source in the fillename (bluray/webdl/hdtv) it will change to WEB-DL
cteahan
Posts: 1
Joined: 24 May 2015, 14:14

Re: [GUIDE] How to install FileBot on Debian Linux

Post by cteahan »

Hi,

Have installed the package but can't get filebot to run... Using Debian Jessie and OpenJDK 7, do I need to use a different JRE? Any pointers would be greatly appreciated...
chris@Aphrodite:~/Downloads$ filebot
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/filebot/Main : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
chris@Aphrodite:~/Downloads$
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [GUIDE] How to install FileBot on Debian Linux

Post by rednoah »

FAQ says you need Java 8.
:idea: Please read the FAQ and How to Request Help.
Ravager
Posts: 6
Joined: 28 Aug 2014, 10:48

Re: [MANUAL] Set OpenSubtitles Account

Post by Ravager »

When i run filebot -script fn:osdb.login i get this error

Code: Select all

InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
        at net.filebot.web.WebRequest.fetch(WebRequest.java:123)
        at net.filebot.web.WebRequest.fetchIfModified(WebRequest.java:101)
        at net.filebot.web.CachedResource.fetchData(CachedResource.java:28)
        at net.filebot.web.CachedResource.fetchData(CachedResource.java:11)
        at net.filebot.web.AbstractCachedResource.fetch(AbstractCachedResource.java:137)
        at net.filebot.web.AbstractCachedResource.get(AbstractCachedResource.java:82)
        at net.filebot.cli.ArgumentProcessor$DefaultScriptProvider.fetchScript(ArgumentProcessor.java:210)
        at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:82)
        at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:116)
        at net.filebot.Main.main(Main.java:169)
Failure (°_°)
In Ubuntu 15.10
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [MANUAL] Set OpenSubtitles Account

Post by rednoah »

That's a generic Java issue. Try Google: http://stackoverflow.com/questions/4764 ... ameter-mus
:idea: Please read the FAQ and How to Request Help.
aztazt
Posts: 3
Joined: 24 Apr 2014, 21:28

Re: [GUIDE] How to install FileBot on Debian Linux

Post by aztazt »

I might be wrong, but I think neither Debian Wheezy nor Debian Jessie are offering OpenJDK 8 in their repositories.

I personnaly use Debian 7.9 and I was unable to install openjdk-8-jre on my server (dependancies are not met).

Any advice would be greatly appreciated, thank you
schimi2k
Posts: 4
Joined: 28 Jun 2014, 08:31

Re: Exclude Blacklist & Series-Mappings

Post by schimi2k »

Navy CIS New Orleans > NCIS New Orleans

germany called NCIS also Navy CIS ... overwrites already some of my old NCIS files with NCIS New Orleans files ...

thx
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

Please give me the filenames that don't work, and what TV series should be matched (with TheTVDB link).
:idea: Please read the FAQ and How to Request Help.
schimi2k
Posts: 4
Joined: 28 Jun 2014, 08:31

Re: Exclude Blacklist & Series-Mappings

Post by schimi2k »

ok sorry :)
rls name: Navy CIS New Orleans S02E01 Der Feind im Inneren GERMAN DL DUBBED 1080p WebHD x264-TVP

tvdb: http://www.thetvdb.com/?tab=series&id=278125&lid=14 >>> NCIS: New Orleans


NCIS: New Orleans ( because of the ":" just NCIS New Orleans )
thx again
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

Added to series alias.
:idea: Please read the FAQ and How to Request Help.
hellmaker
Donor
Posts: 36
Joined: 13 Jan 2016, 20:43

Re: Exclude Blacklist & Series-Mappings

Post by hellmaker »

Hi,

can you add to exclude blacklist following terms please:

Drama
Komödie
Animationsfilm
Katastrophenfilm
Actionthriller
Actionkomödie
Tragikomödie
Krimikomödie
Liebeskomödie
Romantikkomödie
Science-Fiction
Horrorkomödie
Actiondrama
Western
Fantasyfilm
Action
TV-Thriller
Thriller
Thrillerkomödie
Horrorfilm
Horrorthriller
Actionthriller
Dokumentarfilm
Politdrama
Actionfilm
Fantasykomödie
Mysterythriller
Abenteuerfilm
Kriegsfilm
Kriminalfilm
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

Done, except for Action|Thriller|Drama because those terms might interfere with valid search queries.
:idea: Please read the FAQ and How to Request Help.
hellmaker
Donor
Posts: 36
Joined: 13 Jan 2016, 20:43

Re: Exclude Blacklist & Series-Mappings

Post by hellmaker »

Please add also

Animations

to blacklist. Thanks!
TehJonny
Posts: 19
Joined: 13 Feb 2016, 00:45

Re: Exclude Blacklist & Series-Mappings

Post by TehJonny »

11.23.63 ; 11/23/63
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

Added:

Code: Select all

11.22.63	11/22/63
Making sure that you give me the correct names would have been nice...
:idea: Please read the FAQ and How to Request Help.
TehJonny
Posts: 19
Joined: 13 Feb 2016, 00:45

Re: Exclude Blacklist & Series-Mappings

Post by TehJonny »

Bordertown US : Bordertown (2016)
TehJonny
Posts: 19
Joined: 13 Feb 2016, 00:45

Re: Exclude Blacklist & Series-Mappings

Post by TehJonny »

11 22 63 : 11.22.63
11 22 63 : 11/22/63
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

11/22/63 will only work with r3550 or higher.
:idea: Please read the FAQ and How to Request Help.
maverickmu
Posts: 1
Joined: 20 Apr 2016, 14:44

Re: Exclude Blacklist & Series-Mappings

Post by maverickmu »

please add the following:
aced
awa
itg
mp
sof
tvp
tvs

Thanks a lot!
regards
zocidj
Posts: 9
Joined: 08 Oct 2014, 13:00

Re: [JDownloader] Setup for Windows, Linux and Mac OS X

Post by zocidj »

Hy, any chance to explain step by step how to make to work this script on windows. Thanks
zocidj
Posts: 9
Joined: 08 Oct 2014, 13:00

Re: [JDownloader] Setup for Windows, Linux and Mac OS X

Post by zocidj »

Helo, anybody here ??? :)
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [JDownloader] Setup for Windows, Linux and Mac OS X

Post by rednoah »

What have you tried? What's not working? What do the logs say? Have you managed to call any external program with JDownloader?
:idea: Please read the FAQ and How to Request Help.
zocidj
Posts: 9
Joined: 08 Oct 2014, 13:00

Re: [JDownloader] Setup for Windows, Linux and Mac OS X

Post by zocidj »

I didn`t try anything. Can you explain me step by step how to enable jdownloader to rename downloaded movies or tv shows with filebot, automaticly. Please. Regard
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [JDownloader] Setup for Windows, Linux and Mac OS X

Post by rednoah »

I don't use Windows and everything I know is in the original post at the top of the page. I'd try that first, and if it's not working right away you'll have to figure how to fix it yourself. Feel free to share your solution if you do. ;)
:idea: Please read the FAQ and How to Request Help.
manbearpig2012
Posts: 10
Joined: 26 Apr 2016, 18:08

Re: [JDownloader] Setup for Windows, Linux and Mac OS X

Post by manbearpig2012 »

I can't for the life of me get this to work w/ jdownloader....

copied/pasted the PackageFinished script into the event viewer

Code: Select all

var script = JD_HOME + '/jdownloader-postprocess.sh'

var path = package.getDownloadFolder()
var name = package.getName()
var label = package.getComment() ? package.getComment() : 'N/A'
var links = package.getDownloadLinks() ? package.getDownloadLinks() : []

function isReallyFinished() {
    for (var i = 0; i < links.length; i++) {
        if (links[i].getArchive() != null && links[i].getExtractionStatus() != "SUCCESSFUL" || !package.isFinished()) {
            return false
        }
    }
    return true
}

if (isReallyFinished()) {
    var command = [script, path, name, label, 'PACKAGE_FINISHED']
    log(command)
    log(callSync(command))
}


made the jdownloader-postprocess.sh

Code: Select all

#!/bin/sh

# org.jdownloader.extensions.eventscripter.EventScripterExtension.scripts.json
# [{"eventTrigger":"ON_PACKAGE_FINISHED","enabled":true,"name":"Execute FileBot (PackageFinished)","script":"var script = JD_HOME + '/jdownloader-postprocess.sh'\n\nvar path = package.getDownloadFolder()\nvar name = package.getName()\nvar label = package.getComment() ? package.getComment() : 'N/A'\n\nvar command = [script, path, name, label, 'PACKAGE_FINISHED']\n\nlog(command)\nlog(callSync(command))\n","eventTriggerSettings":{}} ]

# Input Parameters
ARG_PATH="$1"
ARG_NAME="$2"
ARG_LABEL="$3"

# Configuration
CONFIG_OUTPUT="T:/_TV Shows"

filebot -script fn:amc "D:/_JDownloader Downloads" --output "T:/_TV Shows" --log-file amc.log --action copy --conflict skip -non-strict --def clean=y --def excludeList=amc.txt --def "seriesFormat=t:/_TV Shows/{n.replaceAll(/\.:/,'-').replacePart('')}/{'Season '+s}/{n.replaceAll(/\./,'-').replacePart('')} - {s00e00} - {t.replace('?', '').replaceAll(/\.:/,'-').replacePart(', Part $1')}{' ('+fn.match(/Uncensored/)+')'} [{airdate.format('MM-dd-yyy')}]({VF}{'.'+SOURCE}{'.'+VC}{'.'+AC}{'.'+AF}{'.'+fn.match(/DD5.1/)})" --def skipExtract=n --def deleteAfterExtract=y
yet still get this when I do a test run of the EventScripter.... help??? Don't need the archive one because i'm having filebot handle the extracting.

Cheers

Image
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [JDownloader] Setup for Windows, Linux and Mac OS X

Post by rednoah »

1.
That error message doesn't mean anything to me. Ask the JDownloader folks

2.
Is your jdownloader-postprocess.sh called?
viewtopic.php?f=4&t=3067
:idea: Please read the FAQ and How to Request Help.
Crack00r
Posts: 19
Joined: 26 Nov 2015, 11:00

Re: [JDownloader] Setup for Windows, Linux and Mac OS X

Post by Crack00r »

This Script is for Windows, just add a Trigger after extract is finished

Code: Select all

var command = "filebot.exe"; // Change this if filebot isn't on your path
var logfile = "D:/jdownloader-eventscripter.log"; // File this script logs to. Use forward slashes as path separators!
var filebotLogfile = "D:/filebot.log"; // File that filebot will log to. Use forward slashes as path separators!
var downloadBase = "D:/\Downloads/\extracted"; // Base folder under which your download packages reside. Use escaped backslashes as path separators!
var archiveExtensions = /(\.(zip|rar|7z|par\d+|part\d+|r\d+|t\d+|\d{3}))$/; // Regex to test for nested archives in extracted files

// Parameters for the scripts to run
var params = {
    "rename": {
        "options": {
            "-script": "fn:amc",
            "--log-file": filebotLogfile,
            "--action": "move",
            "--conflict": "override",
            "--lang": "de"
        },
        "defs": {
            "plex": "crack00r",
            "unsorted": "y",
            "skipExtract": "y",
            "clean": "y",
            "minFileSize": "104857600",
            "excludeList": "D:/amc-input.txt",
            "seriesFormat": "D:/Filme/Filme/Serien/{n}/{'Staffel '+s}/{n} - {s00e00} - {t}",
            "movieFormat": "D:/Filme/Filme/Filme/{n} ({y})"
        },
        "switches": [
            "-non-strict"
        ]
    },
    "cleaner": {
        "options": {
            "-script": "fn:cleaner",
            "--log-file": filebotLogfile
        },
        "defs": {
            "root": "y"
        },
        "switches": []
    }
}

var logBuf = "";

function log(message) {
    logBuf += new Date().toISOString().slice(0, 19) + " - " + message + "\r\n";
}

function logArray(message, arr) {
    log("\t" + message);

    if (arr == null) {
        log("\t\tnone");
        return;
    }

    for (var i = 0; i < arr.length; i++) {
        log("\t\t" + arr[i]);
    }
}

function logSpacer() {
    log("++++++++++++++++++++++++++++++");
}

function flushLog() {
    // Comment out the next two lines to prevent log from being written to file
    writeFile(logfile, logBuf, true);
    logBuf = "";
}

function quoteIfNecessary(value) {
    return (value != null && value.indexOf("\"") < 0) ? '"' + value + '"' : value;
}

function quoteArrayElements(input) {
    var result = [];

    for (var i = 0; i < input.length; i++) {
        result[result.length] = quoteIfNecessary(input[i]);
    }

    return result;
}

function reduce(map, joinChar) {
    var keyValuePairs = [];

    for (var key in map) {
        keyValuePairs[keyValuePairs.length] = key + joinChar + map[key];
    }

    return keyValuePairs;
}

function mapToArray(map) {
    var array = [];

    for (var key in map) {
        array[array.length] = key;
        array[array.length] = map[key];
    }

    return array;
}

function createArgumentArray(parameters, inputs) {
    var options = mapToArray(parameters["options"]);
    var switches = parameters["switches"];
    var defs = reduce(parameters["defs"], "=");

    return [command].concat(options).concat(switches).concat(inputs).concat(["--def"]).concat(defs);
}

function isArchiveFile(filename) {
    return archiveExtensions.test(filename);
}

function containsNestedArchive(extractedFiles) {
    for (var i = 0; i < extractedFiles.length; i++) {
        if (isArchiveFile(extractedFiles[i])) {
            return true;
        }
    }

    return false;
}

function getPackageRoot(folder) {
    return folder.substring(0, folder.indexOf("\\", downloadBase.length + 1));
}

var archiveFolder = archive.getFolder();
var archiveName = archive.getName();
var archiveType = archive.getArchiveType();
var extractedFiles = archive.getExtractedFiles();
var archiveUID = archiveFolder + "\\" + archiveName;
var packageRoot = getPackageRoot(archiveFolder);

logSpacer();
log("FINISHED EXTRACTION - " + archiveUID);
log("\tType: " + archiveType);
log("\tPackage root: " + packageRoot);
logArray("Extracted files:", extractedFiles);

if (extractedFiles == null || extractedFiles.length == 0) {
    log("SKIPPING - No files extracted.");
} else if (containsNestedArchive(extractedFiles)) {
    log("SKIPPING - Nested archive detected.");
} else {
    var renameInputs = quoteArrayElements(extractedFiles);
    var renameArgs = createArgumentArray(params["rename"], renameInputs);
    log("RUNNING SCRIPT - " + archiveUID);

    callAsync(
        function(exitCode, stdOut, errOut) {
            if (exitCode == 0) {
                log("SUCCESS - " + archiveUID);

                var cleanerArgs = createArgumentArray(params["cleaner"], packageRoot);

                log("CLEANING - " + packageRoot);

                callAsync(
                    function(exitCode, stdOut, errOut) {
                        if (exitCode == 0) {
                            log("ALL CLEAN - " + packageRoot);
                        } else {
                            log("STILL DIRTY - " + packageRoot);
                        }

                        flushLog();
                    },
                    cleanerArgs
                );
            } else {
                log("ERROR - " + archiveUID + " - Code " + exitCode);
            }

            flushLog();
        },
        renameArgs
    );
}

logSpacer();
flushLog();
markmarz
Posts: 18
Joined: 31 May 2016, 14:08

Re: Exclude Blacklist & Series-Mappings

Post by markmarz »

Hi,

Plex supports a fixed set of subdirectory names for various kinds of supplemental material:
  • Behind The Scenes
    Deleted Scenes
    Featurettes
    Interviews
    Scenes
    Shorts
    Trailers
('Organized in Subdirectories' section of https://support.plex.tv/hc/en-us/articl ... ets-Movies)

Would it be possible to add these names to your blacklist?

I've found by experimentation (newbie here) that if I rename (say) a Featurettes directory to Extras (already on your blacklist), then the Filebot GUI excludes files in that directory, which is exactly what I need. So I think I'm on the right track asking for this. Alternatively, is there a way to build my own local blacklist the GUI will honor?

Thanks!
Mark M
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

Added.
:idea: Please read the FAQ and How to Request Help.
markmarz
Posts: 18
Joined: 31 May 2016, 14:08

Re: Exclude Blacklist & Series-Mappings

Post by markmarz »

Thanks! What do I need to do to see this reflected in the GUI? I'm guessing FileBot pulls the blacklist dynamically, but I'm not seeing any change in how it's handling Featurettes.
User avatar
rednoah
The Source
Posts: 24640
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

You need to wait 1-2 weeks.

In the meanwhile, posting examples for file paths that need special handling would be helpful.
:idea: Please read the FAQ and How to Request Help.
markmarz
Posts: 18
Joined: 31 May 2016, 14:08

Re: Exclude Blacklist & Series-Mappings

Post by markmarz »

Thanks! Here's some examples. Note that Windows 7 automatically replaced the network uri \\OMV\Movies\ with a drive letter when a command box was opened, in case that matters to you.

Code: Select all

Z:.
│   Brute Force (1947).mp4
│
├───Trailers
│       trailer.mp4
│       
└───Featurettes
         Paul Mason President Trump Love Letter.mp4

Z:\Brute Force (1947)>

Z:.
│   The 3 Penny Opera (1931).mp4
│
├───Scenes
│       Mack The Knife.mp4
│
├───Shorts
│       Jerry Orbach - Mack the Knife.mp4
│
└───Trailers
         trailer.mp4


Z:\The 3 Penny Opera (1931)>
markmarz
Posts: 18
Joined: 31 May 2016, 14:08

Re: Exclude Blacklist & Series-Mappings

Post by markmarz »

Maybe this from Debian, where the Plex server and data resides, is more clear:

https://onedrive.live.com/redir?resid=3 ... hoto%2cJPG
urukai
Posts: 1
Joined: 14 Jun 2016, 23:19

Re: Exclude Blacklist & Series-Mappings

Post by urukai »

is there a way to deal with the show extras? http://thetvdb.com/?tab=series&id=75660

ex: Extras - Series 1 (2005) [DVDRip (x264)] - BTN/Extras 1x05 - Samuel L Jackson.mkv

or is that a manual job?
Post Reply