POSTBUCKET - where random posts in unrelated topics go

Any questions? Need some help?
trininja
Posts: 14
Joined: 08 Oct 2019, 12:29

Re: Exclude Blacklist & Series-Mappings

Post by trininja »

Tokyo Ghoul Root A or also named Tokyo Ghoul √A is flagged as Tokyo Ghoul Season S02 in the TV DB.

Wikipedia with Tokyo Ghoul episode/season index:
https://en.wikipedia.org/wiki/List_of_T ... %E2%88%9AA

AniDB:
https://anidb.net/anime/10875

TVDB entry:
https://www.thetvdb.com/series/tokyo-ghoul/seasons/2

Happened to me that I accidently overwrote my Tokyo Ghoul S01 with the Root A S01 since FileBot wasnÄt able to see the difference because TVDB doesn't split it correctly.

Same goes for Tokio Ghoul :re Season 1 and 2, which are sadly sorted as Tokyo Goul season 3 in TVDB:
https://www.thetvdb.com/series/tokyo-ghoul/seasons/3

AniDB:
https://anidb.net/anime/13499

Wiki:
https://en.wikipedia.org/wiki/List_of_T ... _Ghoul:_re
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

A sample file path is absolutely necessary. Please copy & paste the file path for one of the files that is giving you trouble, or the log if you're using the CLI.
:idea: Please read the FAQ and How to Request Help.
ziki
Posts: 1
Joined: 20 Oct 2019, 23:49

Re: FileBot on the Mac App Store

Post by ziki »

Hey. I purchased the MAS version without realizing I'll be missing some functionality (mainly the subtitles). Is it possible to get the full version? It's a lot of money for an app with missing features. Sure, my bad for not doing the research, but to be fair, neither app store or your main web page mentions this.
Thanks for any help I get.

Cheers.
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot on the Mac App Store

Post by rednoah »

Unfortunately, purchases from different stores and license systems are not interchangeable:
viewtopic.php?t=6265

I can offer 1 year complimentary universal licenses though:
viewtopic.php?t=9517

:idea: Apple does not allow the mentioning of features that are not in the MAS app. The FileBot website does however most prominently feature the direct purchase options for obvious reasons.

:idea: 1/3 of the money you paid goes directly to Apple as reseller. You may judge their services and policies (e.g. Refund policy) for yourself and then decide to use or not use their services in the future.
:idea: Please read the FAQ and How to Request Help.
2elles
Posts: 16
Joined: 25 Oct 2019, 05:24

Re: Exclude Blacklist & Series-Mappings

Post by 2elles »

Series Mapping

Smithsonian : Smithsonian Channel Documentaries
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

2elles wrote: 27 Oct 2019, 06:51 Smithsonian : Smithsonian Channel Documentaries
Added: https://github.com/filebot/data/commit/ ... 057d6749a3
:idea: Please read the FAQ and How to Request Help.
ddloads
Posts: 1
Joined: 02 Nov 2019, 06:25

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by ddloads »

I have tried running the command you posted but I keep getting "Illegal variable name" any idea how to fix this?
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by rednoah »

Which exact line number causes bash (Are you using bash?) to abort with this error message?
https://github.com/filebot/plugins/blob ... ler/tar.sh

Please post a screenshot that shows exactly what you're doing, and include as much additional information as possible, so we can take a guess as to what's special on your machine, that's different from anyone else.

:idea: Please read How to Request Help.
:idea: Please read the FAQ and How to Request Help.
kise
Posts: 21
Joined: 17 Sep 2019, 21:28

Re: Q&A for n00bs

Post by kise »

Hi,

I Use deluge executor script to rename files on completion, everything is fine except one minor problem, i would like to ignore non video files my script is quite completed as it is, is it possible to do so via --filter or anything anyways my scripts produce the following command based on file path.

Code: Select all

/usr/bin/filebot --db TheTVDB \
--q 360733 \
-rename '/media/e1b7/m7eesn/completed/tv/bydb-ttd/byid-360733/Watchmen.S01E02.1080p.WEB.h264-TBS[rarbg]' \
--output '/media/e1b7/m7eesn/media/TV Shows/' \
--format '{n}/Season {s.pad(2)}/{n} - {s00e00} - {t}' \
-non-strict \
--encoding utf8 \
--log all \
--log-file '/media/e1b7/m7eesn/src/logs/amc/2019_11_04.log' \
--action move \
--conflict index \
--def music=false \
--def skipExtract=true \
--def artwork=false \
--def ut_kind=multi \
--def minFileSize=100 \
--def minLengthMS=5
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Q&A for n00bs

Post by rednoah »

You can use the --file-filter for that:

Code: Select all

--file-filter f.video
:idea: viewtopic.php?t=4222


:!: --def name=value options are script options, in this case, specific to the amc script, so in this -rename these options do nothing.
:idea: Please read the FAQ and How to Request Help.
kise
Posts: 21
Joined: 17 Sep 2019, 21:28

Re: Q&A for n00bs

Post by kise »

rednoah wrote: 04 Nov 2019, 16:56 You can use the --file-filter for that:

Code: Select all

--file-filter f.video
:idea: viewtopic.php?t=4222
thats great to hear, does the filter include ONLY videos files or subs included as well?
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Q&A for n00bs

Post by rednoah »

f.video yields true for video files only.
:idea: Please read the FAQ and How to Request Help.
kise
Posts: 21
Joined: 17 Sep 2019, 21:28

Re: Q&A for n00bs

Post by kise »

rednoah wrote: 04 Nov 2019, 17:04 f.video yields true for video files only.
thats great, is it possible to combine two filters for video and subs?, i really just dont want nfo files :)
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Q&A for n00bs

Post by rednoah »

1.
kise wrote: 04 Nov 2019, 17:07 combine two filters for video and subs
Include video or subtitle files:

Code: Select all

--file-filter 'f.video || f.subtitle'


2.
kise wrote: 04 Nov 2019, 17:07 i really just dont want nfo files
Exclude *.nfo files:

Code: Select all

--file-filter 'ext != /nfo/'
:idea: Please read the FAQ and How to Request Help.
kise
Posts: 21
Joined: 17 Sep 2019, 21:28

Re: Q&A for n00bs

Post by kise »

rednoah wrote: 04 Nov 2019, 19:01 1.
kise wrote: 04 Nov 2019, 17:07 combine two filters for video and subs
Include video or subtitle files:

Code: Select all

--file-filter 'f.video || f.subtitle'


2.
kise wrote: 04 Nov 2019, 17:07 i really just dont want nfo files
Exclude *.nfo files:

Code: Select all

--file-filter 'ext != /nfo/'
Thank you, is there any up to date documentation page with those new changes fixes etc? it's really hard hunting those small but important changes.
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Q&A for n00bs

Post by rednoah »

kise wrote: 05 Nov 2019, 17:12 Thank you, is there any up to date documentation page with those new changes fixes etc? it's really hard hunting those small but important changes.
The release notes can be found here:
https://github.com/filebot/docs/blob/master/CHANGES.md

The --file-filter option was introduced with FileBot 4.8.2 but I'm not sure what that would have to do with changes and fixes, since it was just new at the time, and the examples given above would have worked from day one.
:idea: Please read the FAQ and How to Request Help.
kise
Posts: 21
Joined: 17 Sep 2019, 21:28

Re: Q&A for n00bs

Post by kise »

rednoah wrote: 05 Nov 2019, 17:37
kise wrote: 05 Nov 2019, 17:12 Thank you, is there any up to date documentation page with those new changes fixes etc? it's really hard hunting those small but important changes.
The release notes can be found here:
https://github.com/filebot/docs/blob/master/CHANGES.md

The --file-filter option was introduced with FileBot 4.8.2 but I'm not sure what that would have to do with changes and fixes, since it was just new at the time, and the examples given above would have worked from day one.
What i meant is that having update to date documentation for all those new features and how they work is really helpful instead of hunting for scattered forums posts and obscure URLs, and it would also cut down the amount of those unneeded questions. Also thank you for the changes URL that would be helpful in the future.
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Q&A for n00bs

Post by rednoah »

The documentation is up-to-date and does include the --file-filter option:
https://www.filebot.net/cli.html#arguments

:idea: filebot -help will give you the available options for the specific filebot build you're running.


EDIT:

Perhaps you're looking for documentation for all the possible values for the --file-filter option, such as 'f.video || f.subtitle', but that is tricky however, since these expressions are made up on the spot to deal with the situation at hand.
:idea: Please read the FAQ and How to Request Help.
plittlefield
Posts: 101
Joined: 09 Mar 2014, 19:15

Re: [DEB] Debian package

Post by plittlefield »

Hello Reinhard,

I am currently on...

Code: Select all

FileBot 4.8.2 (r5789)
JNA Native: 5.2.2
MediaInfo: 18.05
7-Zip-JBinding: 9.20
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-02-26 (r552)
Groovy: 2.5.1
JRE: OpenJDK Runtime Environment 1.8.0_222
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 3 GB Max Memory / 18 MB Used Memory
OS: Linux (amd64) Ubuntu 16.04.6 LTS
HW: Linux nas 4.15.0-15-generic #16~16.04.1-Ubuntu SMP Thu Apr 5 12:19:23 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
DATA: /home/paully/Downloads/filebot/data/paully
Package: TAR
License: FileBot License P8xxxxx3 (Valid-Until: 2020-07-31)
------------------- UPDATE AVAILABLE: FileBot 4.8.5 (r6224) --------------------
Done ヾ(@⌒ー⌒@)ノ
...what's my best option for upgrading to 4.8.5 and Java 11?

Thanks,

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

Re: [DEB] Debian package

Post by rednoah »

rednoah wrote: 13 Jul 2018, 12:00 The installer/deb.sh will add the repository and install FileBot for you:

Code: Select all

bash -xu <<< "$(curl -fsSL https://raw.githubusercontent.com/filebot/plugins/master/installer/deb.sh)"
Have you tried this yet?


:idea: Presumably, on Ubuntu 16.04, this will install Java 8 and and the Java 8 build of FileBot 4.8.5, since Java 11 / JavaFX 11 is only available for newer platforms.
:idea: Please read the FAQ and How to Request Help.
NexEternus
Posts: 5
Joined: 13 Nov 2019, 04:46

Re: Q&A for n00bs

Post by NexEternus »

Hi, new to filebot and I was having an issue with incorrect database matching because filebot is matching WEB (as in the format from webdl/webrip) to movies with Web in the name, such as Dark Web (2017), Web of Lies, etc.

viewtopic.php?f=3&t=360 < The query blacklist mentioned here sounds like the solution I'm looking for. How would I go about implementing this, since I don't see an -exclude-from-file flag or anything in the CLI usage documentation. Here is my current command:

Code: Select all

find /path/to/files/Temp -maxdepth 1 -type f -exec filebot -rename {} --db TheMovieDB --format "{n.colon(' - ')} ({y}) / {fn}" -non-strict --output "/path/to/files/Temp" -no-xattr ';'
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Q&A for n00bs

Post by rednoah »

Can you post sample file paths and console output please?
:idea: Please read the FAQ and How to Request Help.
NexEternus
Posts: 5
Joined: 13 Nov 2019, 04:46

Re: Q&A for n00bs

Post by NexEternus »

Hmm. So I think it might not be the filename that is fucking with it, but rather the folder name. I have all my webdls/webrips in a folder called Web. So, filebot might be thinking that is the movie name, since if I do the same action in another folder called "Temp" the results are different. Below is a short snippet of 2008 movies getting matched to the movie Web of Desire (2008).

Code: Select all

Auto-detect movie from context: [/home/nex/gdrive/Media/HD/Movies/Web/A.Childs.Christmas.2008.1080p.Amazon.WEB-DL.DD2.0.H.264-QOQ.mkv]
[MOVE] from [/home/nex/gdrive/Media/HD/Movies/Web/A.Childs.Christmas.2008.1080p.Amazon.WEB-DL.DD2.0.H.264-QOQ.mkv] to [/home/nex/gdrive/Media/HD/Movies/Web/Web of Desire (2008)/A.Childs.Christmas.2008.1080p.Amazon.WEB-DL.DD2.0.H.264-QOQ.mkv]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/nex/gdrive/Media/HD/Movies/Web/Hairtales.2008.1080p.Amazon.WEB-DL.DD2.0.H.264-QOQ.mkv]
[MOVE] from [/home/nex/gdrive/Media/HD/Movies/Web/Hairtales.2008.1080p.Amazon.WEB-DL.DD2.0.H.264-QOQ.mkv] to [/home/nex/gdrive/Media/HD/Movies/Web/Web of Desire (2008)/Hairtales.2008.1080p.Amazon.WEB-DL.DD2.0.H.264-QOQ.mkv]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/nex/gdrive/Media/HD/Movies/Web/Hannahs.Gift.2008.1080p.WEBRip.DD2.0.x264-NTb.mkv]
[MOVE] from [/home/nex/gdrive/Media/HD/Movies/Web/Hannahs.Gift.2008.1080p.WEBRip.DD2.0.x264-NTb.mkv] to [/home/nex/gdrive/Media/HD/Movies/Web/Web of Desire (2008)/Hannahs.Gift.2008.1080p.WEBRip.DD2.0.x264-NTb.mkv]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/nex/gdrive/Media/HD/Movies/Web/Randy.Newman.Live.in.London.2008.1080p.AMZN.WEB-DL.DD2.0.H.264-SiGMA.mkv]
[MOVE] from [/home/nex/gdrive/Media/HD/Movies/Web/Randy.Newman.Live.in.London.2008.1080p.AMZN.WEB-DL.DD2.0.H.264-SiGMA.mkv] to [/home/nex/gdrive/Media/HD/Movies/Web/Web of Desire (2008)/Randy.Newman.Live.in.London.2008.1080p.AMZN.WEB-DL.DD2.0.H.264-SiGMA.mkv]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/nex/gdrive/Media/HD/Movies/Web/Staind.Live.in.Cologne.Germany.2008.1080p.Amazon.WEB-DL.DD2.0.x264-QOQ.mkv]
[MOVE] from [/home/nex/gdrive/Media/HD/Movies/Web/Staind.Live.in.Cologne.Germany.2008.1080p.Amazon.WEB-DL.DD2.0.x264-QOQ.mkv] to [/home/nex/gdrive/Media/HD/Movies/Web/Web of Desire (2008)/Staind.Live.in.Cologne.Germany.2008.1080p.Amazon.WEB-DL.DD2.0.x264-QOQ.mkv]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/nex/gdrive/Media/HD/Movies/Web/The.Lost.World.of.Mr.Hardy.2008.1080p.WEBRip.DD2.0.x264-monkee.mkv]
[MOVE] from [/home/nex/gdrive/Media/HD/Movies/Web/The.Lost.World.of.Mr.Hardy.2008.1080p.WEBRip.DD2.0.x264-monkee.mkv] to [/home/nex/gdrive/Media/HD/Movies/Web/Web of Desire (2008)/The.Lost.World.of.Mr.Hardy.2008.1080p.WEBRip.DD2.0.x264-monkee.mkv]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/nex/gdrive/Media/HD/Movies/Web/The.Solomon.Treasures.2008.1080p.Amazon.WEB-DL.DD2.0.H.264-QOQ.mkv]
[MOVE] from [/home/nex/gdrive/Media/HD/Movies/Web/The.Solomon.Treasures.2008.1080p.Amazon.WEB-DL.DD2.0.H.264-QOQ.mkv] to [/home/nex/gdrive/Media/HD/Movies/Web/Web of Desire (2008)/The.Solomon.Treasures.2008.1080p.Amazon.WEB-DL.DD2.0.H.264-QOQ.mkv]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/nex/gdrive/Media/HD/Movies/Web/Wargames.The.Dead.Code.2008.1080p.AMZN.WEB-DL.DDP5.1.H.264-BLUTONiUM.mkv]
[MOVE] from [/home/nex/gdrive/Media/HD/Movies/Web/Wargames.The.Dead.Code.2008.1080p.AMZN.WEB-DL.DDP5.1.H.264-BLUTONiUM.mkv] to [/home/nex/gdrive/Media/HD/Movies/Web/Web of Desire (2008)/Wargames.The.Dead.Code.2008.1080p.AMZN.WEB-DL.DDP5.1.H.264-BLUTONiUM.mkv]

The results are much different in a folder called "Temp" and not "Web". As you can see, I still get wrong matches, but I get some right, and none go into random movies with Web in the name.

Code: Select all

 
Auto-detect movie from context: [/home/nex/gdrive/Media/HD/Movies/Temp/A.Childs.Christmas.2008.1080p.Amazon.WEB-DL.DD2.0.H.264-QOQ.mkv]
[MOVE] from [/home/nex/gdrive/Media/HD/Movies/Temp/A.Childs.Christmas.2008.1080p.Amazon.WEB-DL.DD2.0.H.264-QOQ.mkv] to [/home/nex/gdrive/Media/HD/Movies/Temp/Coopers' Camera (2009)/A.Childs.Christmas.2008.1080p.Amazon.WEB-DL.DD2.0.H.264-QOQ.mkv]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/nex/gdrive/Media/HD/Movies/Temp/Hairtales.2008.1080p.Amazon.WEB-DL.DD2.0.H.264-QOQ.mkv]
[MOVE] from [/home/nex/gdrive/Media/HD/Movies/Temp/Hairtales.2008.1080p.Amazon.WEB-DL.DD2.0.H.264-QOQ.mkv] to [/home/nex/gdrive/Media/HD/Movies/Temp/Tales (2014)/Hairtales.2008.1080p.Amazon.WEB-DL.DD2.0.H.264-QOQ.mkv]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/nex/gdrive/Media/HD/Movies/Temp/Hannahs.Gift.2008.1080p.WEBRip.DD2.0.x264-NTb.mkv]
[MOVE] from [/home/nex/gdrive/Media/HD/Movies/Temp/Hannahs.Gift.2008.1080p.WEBRip.DD2.0.x264-NTb.mkv] to [/home/nex/gdrive/Media/HD/Movies/Temp/Echelon Conspiracy (2009)/Hannahs.Gift.2008.1080p.WEBRip.DD2.0.x264-NTb.mkv]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/nex/gdrive/Media/HD/Movies/Temp/Randy.Newman.Live.in.London.2008.1080p.AMZN.WEB-DL.DD2.0.H.264-SiGMA.mkv]
[MOVE] from [/home/nex/gdrive/Media/HD/Movies/Temp/Randy.Newman.Live.in.London.2008.1080p.AMZN.WEB-DL.DD2.0.H.264-SiGMA.mkv] to [/home/nex/gdrive/Media/HD/Movies/Temp/Randy Newman - Live in London (2010)/Randy.Newman.Live.in.London.2008.1080p.AMZN.WEB-DL.DD2.0.H.264-SiGMA.mkv]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/nex/gdrive/Media/HD/Movies/Temp/Staind.Live.in.Cologne.Germany.2008.1080p.Amazon.WEB-DL.DD2.0.x264-QOQ.mkv]
[MOVE] from [/home/nex/gdrive/Media/HD/Movies/Temp/Staind.Live.in.Cologne.Germany.2008.1080p.Amazon.WEB-DL.DD2.0.x264-QOQ.mkv] to [/home/nex/gdrive/Media/HD/Movies/Temp/Live! (2007)/Staind.Live.in.Cologne.Germany.2008.1080p.Amazon.WEB-DL.DD2.0.x264-QOQ.mkv]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/nex/gdrive/Media/HD/Movies/Temp/The.Lost.World.of.Mr.Hardy.2008.1080p.WEBRip.DD2.0.x264-monkee.mkv]
[MOVE] from [/home/nex/gdrive/Media/HD/Movies/Temp/The.Lost.World.of.Mr.Hardy.2008.1080p.WEBRip.DD2.0.x264-monkee.mkv] to [/home/nex/gdrive/Media/HD/Movies/Temp/The Lost World of Mr. Hardy (2009)/The.Lost.World.of.Mr.Hardy.2008.1080p.WEBRip.DD2.0.x264-monkee.mkv]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/nex/gdrive/Media/HD/Movies/Temp/The.Solomon.Treasures.2008.1080p.Amazon.WEB-DL.DD2.0.H.264-QOQ.mkv]
[MOVE] from [/home/nex/gdrive/Media/HD/Movies/Temp/The.Solomon.Treasures.2008.1080p.Amazon.WEB-DL.DD2.0.H.264-QOQ.mkv] to [/home/nex/gdrive/Media/HD/Movies/Temp/Solomon (1997)/The.Solomon.Treasures.2008.1080p.Amazon.WEB-DL.DD2.0.H.264-QOQ.mkv]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/nex/gdrive/Media/HD/Movies/Temp/Wargames.The.Dead.Code.2008.1080p.AMZN.WEB-DL.DDP5.1.H.264-BLUTONiUM.mkv]
[MOVE] from [/home/nex/gdrive/Media/HD/Movies/Temp/Wargames.The.Dead.Code.2008.1080p.AMZN.WEB-DL.DDP5.1.H.264-BLUTONiUM.mkv] to [/home/nex/gdrive/Media/HD/Movies/Temp/War Games - The Dead Code (2008)/Wargames.The.Dead.Code.2008.1080p.AMZN.WEB-DL.DDP5.1.H.264-BLUTONiUM.mkv]
Processed 1 files
How would I go about excluding part of the filepath?
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Q&A for n00bs

Post by rednoah »

:arrow: Rename Web to WEB.

Alternatively, there's many other blacklisted terms that you can use for folder names that are known not to be interpreted:
viewtopic.php?t=360
:idea: Please read the FAQ and How to Request Help.
nicoparker
Donor
Posts: 13
Joined: 18 Nov 2016, 08:34

Re: [DEB] Debian package

Post by nicoparker »

Hello everyone, I have a quick question : I'm using Filebot on a Ubuntu headless server (16.04) and the 4.7.9 was working fine with openjdk-8-jre-headless. The latest .deb (4.8.5) required though the full openjdk-8-jre and pulled over 200MB of libs.
Is there any good reason behind it or is it just a package error?
Regards
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DEB] Debian package

Post by rednoah »

libjna is the only required package dependency:

Code: Select all

Depends: libjna-java
Recommends: default-jre, openjfx, mediainfo, libchromaprint-tools, p7zip-full, unrar | unrar-free
Enhances: nautilus-actions

The deb.sh installer script will however install all recommended dependencies, to make sure everything works out of the box regardless of your specific use case:

Code: Select all

sudo apt-get install --install-recommends -y filebot
:idea: Please read the FAQ and How to Request Help.
nicoparker
Donor
Posts: 13
Joined: 18 Nov 2016, 08:34

Re: [DEB] Debian package

Post by nicoparker »

Hmm that's strange, I swear the openjdk-jre8 (and the libs) were listed as a dependency... Any possible mistake on my side?

PS : I didn't use any script, just downloaded the .deb and dpkg -i

PPS : the libjna is the problem, it recommends the default-jre (but not headless)
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DEB] Debian package

Post by rednoah »

You should be able to install everything like so:

Code: Select all

sudo apt-get install --no-install-recommends -y filebot
That should only install the lib-jna and filebot packages with bare minimum dependencies.
:idea: Please read the FAQ and How to Request Help.
apeg
Posts: 4
Joined: 10 Oct 2019, 15:11

Re: Batch Rename any type of file

Post by apeg »

With all the problems TVDB has been having this is exactly what i'm looking for but im having a few problems, the behavior of these options are different in 'generic batch renaming mode':

{n} = full file name minus extension
{'Season '+s} = full file name minus extension
{fn} = blank no value

I'm primarily using filebot for sorting in this case, generic batch renaming is exactly what i need so i dont run into issues every time TVDB is having problems. But show name, season and full file name are still needed.

Any ideas? thanks,
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Batch Rename any type of file

Post by rednoah »

In plain file mode:
* n is the filename
* fn is the filename, as usual, same as n in this case
* s is undefined, since files don't have seasons


If you want SxE numbers, or titles, or anything, then you'll have to extract that piece of information by parsing the file name, since the file name is all you've got:

Code: Select all

{f.path.match(/Season (\d+)/)}
:idea: How to parse information from the file name is highly reliant on the file names you have.
:idea: Please read the FAQ and How to Request Help.
nicoparker
Donor
Posts: 13
Joined: 18 Nov 2016, 08:34

Re: [DEB] Debian package

Post by nicoparker »

So I gave the repo a try, but failed :

Code: Select all

root@server:~# apt-key adv --fetch-keys "https://raw.githubusercontent.com/filebot/plugins/master/gpg/maintainer.pub"
Executing: /tmp/tmp.kuHJZvQopu/gpg.1.sh --fetch-keys
https://raw.githubusercontent.com/filebot/plugins/master/gpg/maintainer.pub
gpgkeys: protocol `https' not supported
gpg: no handler for keyserver scheme `https'
gpg: WARNING: unable to fetch URI https://raw.githubusercontent.com/filebot/plugins/master/gpg/maintainer.pub: keyserver error

Code: Select all

root@server:~# wget https://raw.githubusercontent.com/filebot/plugins/master/gpg/maintainer.pub
--2019-11-23 02:03:01--  https://raw.githubusercontent.com/filebot/plugins/master/gpg/maintainer.pub
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.36.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.36.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4650 (4.5K) [text/plain]
Saving to: ‘maintainer.pub’

maintainer.pub           100%[===============================>]   4.54K  --.-KB/s    in 0s      

2019-11-23 02:03:01 (17.9 MB/s) - ‘maintainer.pub’ saved [4650/4650]

root@server:~# apt-key adv maintainer.pub 
Executing: /tmp/tmp.5dmHdLUYIf/gpg.1.sh maintainer.pub
pub  4096R/7C3C6A71 2017-04-13 Reinhard Pointner <[email protected]>

Hmmm looks like it worked. Next step, add the repo and apt update :

Code: Select all

root@server:~# apt update
Ign:9 https://get.filebot.net/deb universal-jdk8 InRelease
Get:10 https://get.filebot.net/deb universal-jdk8 Release [1,165 B]
Get:11 https://get.filebot.net/deb universal-jdk8 Release.gpg [862 B]
Ign:11 https://get.filebot.net/deb universal-jdk8 Release.gpg
Reading package lists... Done    
W: GPG error: https://get.filebot.net/deb universal-jdk8 Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4E402EBF7C3C6A71
E: The repository 'https://get.filebot.net/deb universal-jdk8 Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Looks like I have a problem with the signature. What did I do wrong?
Regards
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DEB] Debian package

Post by rednoah »

1.
What version of Ubuntu are you using?

2.
Did you use the install script which pre-installs the necessary dependencies, such as gnupg-curl?
https://github.com/filebot/plugins/blob ... deb.sh#L13

Code: Select all

bash -xu <<< "$(curl -fsSL https://raw.githubusercontent.com/filebot/plugins/master/installer/deb.sh)"
:idea: Please read the FAQ and How to Request Help.
plittlefield
Posts: 101
Joined: 09 Mar 2014, 19:15

Re: [DEB] Debian package

Post by plittlefield »

I am currently on FileBot 4.8.2 using the .deb package by hand (a long time ago.)

I've just seen this latest post and out of interest I went through the github script step-by-step with the --simulate option to see what would happen, because this is a headless server with no gui needed.

All was going well but then the last command WAS going to pull in 90 packages which I really don't need :-(

Code: Select all

sudo apt-get --simulate install --install-recommends filebot
So, I changed the install command line to...

Code: Select all

sudo apt-get --simulate install --no-install-recommends filebot
...which was a little better at 45 packages, but those were still loads of X Server related packages.

Is there any way to stop it installing ANY of those?

:-(

Thanks,

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

Re: [DEB] Debian package

Post by rednoah »

You can always use the portable and then figure out dependencies manually if disk space is an issue:
viewtopic.php?f=11&t=6057


That being said, according to the package metadata, libjna-java is the only hard dependency, and everything else is optional:

Code: Select all

Depends: libjna-java
Recommends: default-jre, openjfx, mediainfo, libchromaprint-tools, p7zip-full, unrar | unrar-free
Enhances: nautilus-actions
:idea: Please read the FAQ and How to Request Help.
plittlefield
Posts: 101
Joined: 09 Mar 2014, 19:15

Re: [DEB] Debian package

Post by plittlefield »

Space is not a problem, I'm just trying to keep my system lean and mean with as few packages as possible installed and needing to be updated ;-)

OK, so the Beta 4.9.0 is an option with just that 1 dependency, and it seems to only install 2 packages when I simulate...

Code: Select all

$ sudo apt-get --simulate install libjna-java
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libjna-jni
Suggested packages:
  libjna-java-doc
The following NEW packages will be installed
  libjna-java libjna-jni
0 to upgrade, 2 to newly install, 0 to remove and 4 not to upgrade.
Inst libjna-jni (4.2.2-1 Ubuntu:16.04/xenial [amd64])
Inst libjna-java (4.2.2-1 Ubuntu:16.04/xenial [all])
Conf libjna-jni (4.2.2-1 Ubuntu:16.04/xenial [amd64])
Conf libjna-java (4.2.2-1 Ubuntu:16.04/xenial [all])
...so are you saying that if I install the Beta 4.9.0 deb package, without the 75 recommended packages, my server will not start trying to install them at a later date?

Is there a way to test that?

I guess I could press CTRL+C if it kicks off :-)

Regards,

Paully
plittlefield
Posts: 101
Joined: 09 Mar 2014, 19:15

Re: [DEB] Debian package

Post by plittlefield »

Also, is it best to remove 4.8.2 before I install the Beta 4.9.0 for cleanliness?
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DEB] Debian package

Post by rednoah »

IDK. If you don't want surprised, then you can just not use the apt repository and manage things manually. Regardless, new version will override the old version, apt takes care of that, so no need to worry about cleanliness.
:idea: Please read the FAQ and How to Request Help.
yodaspowart
Posts: 16
Joined: 02 Jun 2017, 01:04

Re: Batch Rename any type of file

Post by yodaspowart »

As the TVDB is down for me on my seedbox (Linux/amc groovy script),
I am now using

Code: Select all

unsortedFormat
Managing to connect and rename to this online FTP folder fine using Mountain Duck and the latest Filebot which is working fine on my Mac.

Code: Select all

--def unsorted=y --def unsortedFormat="Unsorted/{fn =~ /2160p|4K|4k|UHD/ ? 'UHD-2160p/' : fn =~ /1080p/ ? 'HD-1080p' : fn =~ /720p/ ? 'HD-720p' : 'SD'}/{fn}.{ext}"
Image
I have now got TV shows into specific folders for resolution.

Would like to use the file naming setup to match the name of the show in a certain way:
Original file name:

Code: Select all

Legacies.S02E01.HDTV.x264-KILLERS[eztv].mkv
Wanted: Legacies - S02E01 - HDTV x264-KILLERS[eztv]

Not sure how it can be cleaner?

Code: Select all

{fn.before(/S\d{2}E\d{2}/).space(' ')} - {fn.match(/S\d{2}E\d{2}/).space(' ')} - {fn.after(/S\d{2}E\d{2}/).space(' ')}
Using the filebot GUI to test in file mode:
Image
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Batch Rename any type of file

Post by rednoah »

If it works, I'd leave it at that. Once you start parsing file names yourself, things necessarily level up in terms of complexity.

If simplification is the goal, at the cost of getting exactly what you want, then here's my solution:

Code: Select all

{fn.replaceAll(/[ .-]+/, ' - ')}

Code: Select all

Legacies - S02E01 - HDTV - x264 - KILLERS[eztv]
:idea: Please read the FAQ and How to Request Help.
plittlefield
Posts: 101
Joined: 09 Mar 2014, 19:15

Re: [DEB] Debian package

Post by plittlefield »

Ooooo, this could be the winning command line, which only installs 3 packages!

Code: Select all

$ sudo apt -s --no-install-recommends install /home/paully/Downloads/filebot/FileBot_4.9.0_universal-jdk8.deb

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'filebot' instead of '/home/paully/Downloads/filebot/FileBot_4.9.0_universal-jdk8.deb'
The following additional packages will be installed:
  libjna-java libjna-jni
Suggested packages:
  libjna-java-doc
Recommended packages:
  openjdk-8-jre openjfx libchromaprint-tools p7zip-full unrar | unrar-free
The following NEW packages will be installed
  filebot libjna-java libjna-jni
0 to upgrade, 3 to newly install, 0 to remove and 6 not to upgrade.
Inst libjna-jni (4.2.2-1 Ubuntu:16.04/xenial [amd64])
Inst libjna-java (4.2.2-1 Ubuntu:16.04/xenial [all])
Inst filebot (4.9.0 local-deb [all])
Conf libjna-jni (4.2.2-1 Ubuntu:16.04/xenial [amd64])
Conf libjna-java (4.2.2-1 Ubuntu:16.04/xenial [all])
Conf filebot (4.9.0 local-deb [all])
...will filebot work without all the recommended packages?!

Also, I am only running OpenJDK Java v8...

Code: Select all

openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~16.04.1-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
Am I good to go?!

:-)

Paully
plittlefield
Posts: 101
Joined: 09 Mar 2014, 19:15

Re: [DEB] Debian package

Post by plittlefield »

OK, so I went for it.

Turns out my current filebot was just a symlink to the TAR version, which made things easier.

Here are my upgrade / install commands as root...

Code: Select all

$ apt install p7zip-full unrar
$ apt --no-install-recommends install FileBot_4.9.0_universal-jdk8.deb
So, I now have this...

Code: Select all

$ filebot -script fn:sysinfo
FileBot 4.9.0 (r6899)
JNA Native: 4.0.1
MediaInfo: 19.09
p7zip: p7zip Version 9.20 (locale=en_GB.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)
unrar: UNRAR 5.30 beta 2 freeware
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-11-16 (r603)
Groovy: 2.5.8
JRE: OpenJDK Runtime Environment 1.8.0_222
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 3.7 GB Max Memory / 33 MB Used Memory
OS: Linux (amd64)
HW: Linux nas 4.15.0-15-generic #16~16.04.1-Ubuntu SMP Thu Apr 5 12:19:23 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
STORAGE: ext4 [/] @ 106 GB | fuse.sshfs [/home/paully/Downloads/seedbox2] @ 990 GB
DATA: /home/paully/.filebot
Package: DEB
License: FileBot License xxxxxxxx (Valid-Until: 2020-07-31)
Done ヾ(@⌒ー⌒@)ノ
...cannot wait to try it out!

Fingers crossed!

Thanks!

Regards,

Paully
yodaspowart
Posts: 16
Joined: 02 Jun 2017, 01:04

Re: Batch Rename any type of file

Post by yodaspowart »

Thanks a lot @rednoah also for quick reply.
It's perfect for me.
yodaspowart
Posts: 16
Joined: 02 Jun 2017, 01:04

Re: Batch Rename any type of file

Post by yodaspowart »

Updated my unsorted folder now:

Currently it's working in case anyone is interested in this:

Code: Select all

--def unsorted=y --def unsortedFormat="Unsorted/{fn =~ /2160p|4K|4k|UHD/ ? 'UHD-2160p/' : fn =~ /1080p/ ? 'HD-1080p' : fn =~ /720p/ ? 'HD-720p' : 'SD'}/{fn.before(/S\d{2}E\d{2}/).upperInitial().space(' ')} - {fn.match(/S\d{2}E\d{2}/).upper()} - {fn.after(/S\d{2}E\d{2}/).stripReleaseInfo().upperInitial().space(' ')} [{allOf{match}{s3d}{hd}{vc}{source}{vf}{('-')}{af}{ac}{channels}{n.findMatch(group) ? null : '- '+group} join ' '}].{ext}" --def exec="curl --insecure https://seedBoxPlexURL:port/library/sections/all/refresh?X-Plex-Token=XXXXXXXXXXXXXXXXXX_X"
Now Plex can pull in the TV shows from my: HD-1080p & UHD-2160p folders.
This is a fallback until TVDB is up and running.
I'm still renaming them properly with the Filebot GUI 4.8.5 through Mountain Duck mounted online FTP drive

Movies rarely go into unsorted.
If they end up here would get named like this:
Original name:

Code: Select all

A.Christmas.Tale.2008.Criterion.576p.BDRip.x264.AC3-Q0S.mp4

becomes:

Code: Select all

A Christmas Tale 2008 Criterion 576p BDRip X264 AC3-Q0S - - A Christmas Tale 2008 Criterion [HD AVC BDRip 1080p - 2ch AAC 2.0]
plittlefield
Posts: 101
Joined: 09 Mar 2014, 19:15

Re: [DEB] Debian package

Post by plittlefield »

Yep, all good :-)

With 4.9.0 the process seems to be faster and better at matching titles.

Thanks for your help and keep up the great work on this time-saving gem.

Paully
guyrivera
Posts: 1
Joined: 06 Dec 2019, 04:19

Re: Plex Naming Schemes

Post by guyrivera »

rednoah wrote: 07 Feb 2019, 14:38 There's no convenience method for this particular use case.

You'll either have to
(A) write your own custom format without using the {plex} binding at all, or
(B) write your own custom format using bits and pieces of the {plex} binding as necessary.

e.g.

Code: Select all

Movies/{plex[1]}{" [$vf.$vc.$ac]"}/{plex[2]}{" [$vf.$vc.$ac]"}

:!: Either way, you'll no longer be strictly adhering to the Plex naming scheme, although it'll probably work.
Thanks a lot - it works!
Yammers
Posts: 21
Joined: 27 Jan 2018, 16:40

Re: How about sharing our format expressions?

Post by Yammers »

Hi i am trying to do an expression that puts the movies into a collection folder if there is more than one but it does not name the folder with the word collection in it any ideas example below

I want it to name the folder Aliens or Alien, then in that folder have Alien 1 (1979) Alien 2 ( Year etc)
sblack55
Posts: 22
Joined: 23 Sep 2015, 18:43

Re: --filter and fine-tuning

Post by sblack55 »

rednoah wrote: 27 Oct 2014, 20:54 You can manage your list of explicitly excluded (or included) shows with an external text file.

Code: Select all

--filter '!readLines('/path/to/excludes.txt').contains(n)'
Having some trouble with this syntax, probably due my failure to grasp the vagaries of script/cmdline quoting. Here are the key lines from my bash script:

Code: Select all

PVR_LOC="/volume1/PVR"
...
sFilter='!readLines('${PVR_LOC}/ExcludeShows.txt').contains(n)'
…
filebot "${sSourceFile}" ${FB_OPTS} -script fn:amc --output "${DEST}" ${sMapper} --filter "${sFilter}" --def seriesFormat="${FB_FMT_SERIES}" --def movieFormat="${FB_FMT_MOVIE}" --def "ut_label=${UTLABEL}">/tmp/fblog.txt 2>&1
And here is my log:

Code: Select all

Dec 08 15:03:38: filebot "/volume1/PVR/record/The Carbonaro Effect/The Carbonaro Effect.S01E12.An Elevated Ferret Alert.ts" -non-strict --action hardlink --conflict auto -script fn:amc --output "/volume1/PVR/General" --mapper episode.derive(0,0) --filter "!readLines(/volume1/PVR/ExcludeShows.txt).contains(n)" --def seriesFormat="TV Shows/{ny}/Season {s}/{n}.{s00e00}.{t}" --def movieFormat="" --def "ut_label=TV"
Dec 08 15:03:50: Run script [fn:amc] at [Sun Dec 08 15:03:42 EST 2019]
Dec 08 15:03:50: Parameter: seriesFormat = TV Shows/{ny}/Season {s}/{n}.{s00e00}.{t}
Dec 08 15:03:50: Parameter: movieFormat =
Dec 08 15:03:50: Parameter: ut_label = TV
Dec 08 15:03:50: Argument[0]: /volume1/PVR/record/The Carbonaro Effect/The Carbonaro Effect.S01E12.An Elevated Ferret Alert.ts
Dec 08 15:03:50: Input: /volume1/PVR/record/The Carbonaro Effect/The Carbonaro Effect.S01E12.An Elevated Ferret Alert.ts
Dec 08 15:03:50: Group: {Series=true} => [The Carbonaro Effect.S01E12.An Elevated Ferret Alert.ts]
Dec 08 15:03:50: ScriptException: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Dec 08 15:03:50: Script2.groovy: 1: unexpected token: PVR @ line 1, column 21.
Dec 08 15:03:50: !readLines(/volume1/PVR/ExcludeShows.txt).contains(n)
Dec 08 15:03:50: ^
Dec 08 15:03:50: 
Dec 08 15:03:50: 1 error
Dec 08 15:03:50: 
Dec 08 15:03:50: Finished without processing any files
Dec 08 15:03:50: Abort (×_×)
SysInfo:

Code: Select all

FileBot 4.8.6 (r6868)
JNA Native: 6.1.0
MediaInfo: 19.04
7-Zip-JBinding: 9.20
Chromaprint: 1.4.3
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-12-07 (r610)
Groovy: 2.5.8
JRE: OpenJDK Runtime Environment 13.0.1
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 522 MB Max Memory / 26 MB Used Memory
OS: Linux (amd64)
HW: Linux NetStore 3.10.105 #24922 SMP Wed Jul 3 16:37:24 CST 2019 x86_64 GNU/Linux synology_avoton_1815+
STORAGE: ext4 [/] @ 1.2 GB | btrfs [/volume1] @ 7 TB
DATA: /volume1/@appstore/filebot/data/admin
Package: SPK
License: FileBot License P9013368 (Valid-Until: 2020-08-23)
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: --filter and fine-tuning

Post by rednoah »

YES:

Code: Select all

!readLines('/path/to/excludes.txt').contains(n)
:idea: This is the value you want to pass in.

NO:

Code: Select all

!readLines(/volume1/PVR/ExcludeShows.txt).contains(n)
:!: This is the value you are actually passing in, which is syntactically incorrect Groovy code, hence syntax errors.


Hence:

Code: Select all

--filter '!readLines("/path/to/excludes.txt").contains(n)'
:arrow: Please read Cmdline and Argument Passing for details.
:idea: Please read the FAQ and How to Request Help.
sblack55
Posts: 22
Joined: 23 Sep 2015, 18:43

Re: --filter and fine-tuning

Post by sblack55 »

rednoah wrote: 09 Dec 2019, 10:51 Hence:

Code: Select all

--filter '!readLines("/path/to/excludes.txt").contains(n)'
Got it working, thanks!

(Single-quotes, double-quotes, substitutions, no substitutions... sheesh, I'm dizzy!)
kriz84
Posts: 3
Joined: 09 Dec 2019, 12:37

Re: [BTC] Purchase FileBot with Crypto Currency

Post by kriz84 »

Hello!
i would pay the lifetime license with Bitcoin.
is this possible? and the new 4.9.0 Betas should be no problem with the license?

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

Re: [BTC] Purchase FileBot with Crypto Currency

Post by rednoah »

Sorry, only 1 year license is available via crypto at this point.
:idea: Please read the FAQ and How to Request Help.
moonshine
Posts: 2
Joined: 10 Dec 2019, 09:54

Re: FileBot on the Mac App Store

Post by moonshine »

Hi... I purchade the app on the Appstore and then realized that this version doesn't support command line... I tried to get a refund, but apple refuses "We've determined that your purchase doesn't meet the conditions for a refund." Whatever that means....

Is there anyway to "convert" to a universal license ? (Maybe pay a price difference- I know apple takes a cut)
Thanks.
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot on the Mac App Store

Post by rednoah »

I suppose you could request a 1-year complimentary license:
viewtopic.php?t=9517
:idea: Please read the FAQ and How to Request Help.
moonshine
Posts: 2
Joined: 10 Dec 2019, 09:54

Re: FileBot on the Mac App Store

Post by moonshine »

that's an expensive 1 year license... but i'll give it a try... i don't like subscription model (although I understand why developers would prefer a constant flow of revenue) ... and thats the reasson i bought from appstore ... (shoudl have done more reading about it... )
bilaalpeters
Posts: 1
Joined: 11 Dec 2019, 06:30

Re: --filter and fine-tuning

Post by bilaalpeters »

That worked, thanks so much!
UnseenThreat
Posts: 1
Joined: 14 Dec 2019, 16:37

Re: Unattended Automation with FileBot Node

Post by UnseenThreat »

I follow all the instruction but when i try to execute i have : BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 57
Did you know why?
Regards
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Unattended Automation with FileBot Node

Post by rednoah »

UnseenThreat wrote: 14 Dec 2019, 16:39 BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 57
:arrow: viewtopic.php?f=13&t=11099
:idea: Please read the FAQ and How to Request Help.
ca81
Posts: 29
Joined: 14 Dec 2019, 20:08

Re: How about sharing our format expressions?

Post by ca81 »

Hi,

Have been using Filebot for sometime now and finally went ahead and got a subscription.
Kudos to rednoah for an amazing product!!!

I am using the following piece of code for renaming the TV series that I have:

Code: Select all

{n.replace(':','.').replace('?','!').replace('*','@')} - 
{s00e00} - 
{t.replace(':','.').replace('?','!').replace('*','@')} 
[{"$vf, $vc, $af"}, 
{(audio.language)}, 
{text.language}, 
{airdate}, 
{source==null ? 'NA' : source}, 
{group==null ? 'NA' : group}]
I am using Filebot version 4.8.5 and the output with the above code is as below:
Dominion.S02E05.Son.Of.The.Fallen.720p.WEB-DL.2CH.x265.HEVC-PSA
to
Dominion - S02E05 - Son of the Fallen [720p, HEVC, 2ch, [en], , 2015-08-06, WEB-DL, PSA]

and
Dual audio file with 1 subtitle Naruto - S01E01 - Enter Naruto Uzumaki! [720p,HEVC,AAC,03-Oct-2002]
to
Naruto - S01E01 - Enter. Naruto Uzumaki! [720p, HEVC, 2ch, [en, ja], [en], 2002-10-03, , AnimeRG]

Can someone please help me with a couple of the issues that I am facing?
1) The audio languages are shown with square brackets and a comma.....can I get them with round brackets instead of square brackets and separated by a hyphen instead of a comma??
2) In case no information about the source or group is available then I want to display "NA" but it somehow does not seem to work.

peace,
~ca
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How about sharing our format expressions?

Post by rednoah »

1.

Code: Select all

{audioLanguages.ISO2.joining('-', '(', ')')}

Code: Select all

(en-ja)

2.

Code: Select all

{any{source}{'NA'}}

Code: Select all

NA
:idea: viewtopic.php?f=5&t=1895
:idea: Please read the FAQ and How to Request Help.
hellojello
Posts: 1
Joined: 14 Dec 2019, 23:31

Re: FileBot on the Mac App Store

Post by hellojello »

Hello
ca81
Posts: 29
Joined: 14 Dec 2019, 20:08

Re: How about sharing our format expressions?

Post by ca81 »

Thanks rednoah for the quick response!!!

this seems to work as intended :D
rednoah wrote: 14 Dec 2019, 21:32 2.

Code: Select all

{any{source}{'NA'}}

Code: Select all

NA
but this returns nothing :(
rednoah wrote: 14 Dec 2019, 21:32 1.

Code: Select all

{audioLanguages.ISO2.joining('-', '(', ')')}

Code: Select all

(en-ja)
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How about sharing our format expressions?

Post by rednoah »

ca81 wrote: 15 Dec 2019, 00:09 but this returns nothing :(
Try with Format Editor. What does the warning message say? (if it returns nothing, then there'll be a corresponding warning message)
:idea: Please read the FAQ and How to Request Help.
VideoMox
Posts: 2
Joined: 15 Sep 2019, 01:57

Re: [User Study] Take a screen recording and earn yourself a free license

Post by VideoMox »

I want to piggy-back a little on Antz123's response. Note -- I can't PM yet because I haven't posted enough as I'm a new forum user. I've been using Filebot for a while, though. So Antz is the case of primarily having 1 media type to manage (anime).

I have several types: Anime, Movies, and "default" for regular TV shows. Each one of these is expressed as a Preset because each one has a different file naming convention, something like
Anime - I want to preserve the subbing group information and I also like to include whether it's sub, dub or dual. Specifically, I use this template:

Code: Select all

{n} - {s00e00} - {t} {fn.match(/^\[.*?\]/)} {(audio.size() > 1) ? '[DUAL]' : audio[0].language} ({vc} {vf})
Movies - I just want the title, year, encoding, resolution, number of audio channels
default (for TV shows and regular cartoons) - title, episode, resolution

So I really like that I can just select my preset with my files loaded for renaming and it goes off, searches and comes back with a reasonable guess as to what I want. This works maybe 60-70% of the time.

The other 30-40% of the time, however, things get cumbersome. Most of the time I can predict when Filebot won't be able to get a match and I go under "Episodes" to get the complete episode listing for a show so I can manually match them. This is usually do to weird file naming or something odd about the episodes themselves as they exist in TheTVDB.

Now, if I haven't "pre-loaded" a preset before I manually match the episodes, what will happen is that they get matched with some default naming template (i.e. not my "Default"). So then I have to load the correct preset, lose my matching (because it will either fail the match on the preset load or match the wrong data), and I have to go back to the Episodes tab, re-select the episodes and THEN match them. At that point, since the desired preset has been loaded, it will format the matches correctly.

This basically means that I start my workflow with a dummy preset load before I do anything just to establish the correct file naming template I want to use. This is especially annoying since I'm still on 4.7.9 and TVDB queries always fail now.

Is this better in 4.8.5?
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [User Study] Take a screen recording and earn yourself a free license

Post by rednoah »

:?: Can you provide screenshots or perhaps a screen recording to illustrate the issue? (reproducing GUI issues via textual description is like fixing your moms computer via the phone line, it just doesn't work)

:idea: Examples for file paths you have trouble with would also be most appreciated.


In the meanwhile, I've sent you a test license so you can try and evaluate the latest revision, which hopefully has some quality-of-live improvements in this regard:
viewtopic.php?t=1609
:idea: Please read the FAQ and How to Request Help.
JD2005
Posts: 3
Joined: 16 Dec 2019, 15:43

Re: --filter and fine-tuning

Post by JD2005 »

What's the correct syntax inside of the excludes.txt file? I'm finding contradicting information, some saying you just list the episodes line by line, others saying you need to include the 'n !=' ahead of it.
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: --filter and fine-tuning

Post by rednoah »

The code is literally reading the file, so this piece of code implicitly specifies the format, which is values line by line:

Code: Select all

!readLines("/path/to/excludes.txt").contains(n)
e.g. /path/to/excludes.txt

Code: Select all

Alias
Firefly
This would be functionally equivalent just specifying the list of values in code instead of an external text file:

Code: Select all

![/Alias/, /Firefly/].contains(n)

:idea: --filter allows you to specify arbitrary code. Maybe your code reads a file and checks if n is in there. Maybe your code checks if n is a specific value or not. Maybe your code does something I haven't thought of yet. It's your code. Anything is possible. Hence you will find different solutions made by different people hand-crafted for different use cases.


:idea: You may find "conflicting" information because some people use the @file syntax for reading command-line arguments from external text files. That's completely different though. But if all args (including the filter option) a read from a text file anyway, then some users might prefer to specify this data inline rather than in another external text file.
:idea: Please read the FAQ and How to Request Help.
JD2005
Posts: 3
Joined: 16 Dec 2019, 15:43

Re: --filter and fine-tuning

Post by JD2005 »

Thank you, I wasn't sure as Filebot comes back with the words 'Include' next to each line, as well it doesn't seem to be excluding what I'm specifying as it's being labeled incorrectly anyway. I'm using the syntax laid out in this thread so just wanted to make sure I was applying this correctly before trying to figure out where else the issue is.

In case you could give me any pointers, the show 'Watchmen' is being converted to 'Vekterne' no matter what I do... All other shows seem to be working fine except this one. I realize Vekterne is Norwegian for Watchmen, but still not sure why it's choosing this language for just this show. The show and input filename going into it is english. I am also using '--lang en' in my script, so again not sure what's happening. If you have any advice I certainly appreciate it.

Code: Select all

filebot -script fn:amc --output "/home/user/Media" --action move --conflict skip -non-strict "/home/user/Stage" --log-file amc.log --def unsorted=y music=y --lang en --filter "!readLines('/home/user/uScripts/excludes.txt').contains(n)"
"
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: --filter and fine-tuning

Post by rednoah »

You can use filebot -list for testing:

Code: Select all

filebot -list --db TheTVDB --q Watchmen -non-strict

e.g.

Code: Select all

$ filebot -list --db TheTVDB --q Watchmen -non-strict --filter "!(n ==~ /WatchMojo|Pitchmen| Vekterne|Watchmen: Motion Comic/)"
Apply filter [!(n ==~ /WatchMojo|Pitchmen| Vekterne|Watchmen: Motion Comic/)] on [249] items
Include [Watchmen - 1x01 - It's Summer and We're Running Out of Ice]
Include [Watchmen - 1x02 - Martial Feats of Comanche Horsemanship]
Include [Watchmen - 1x03 - She Was Killed by Space Junk]
Include [Watchmen - 1x04 - If You Don't Like My Story, Write Your Own]
Include [Watchmen - 1x05 - Little Fear of Lightning]
Include [Watchmen - 1x06 - This Extraordinary Being]
Include [Watchmen - 1x07 - An Almost Religious Awe]
Include [Watchmen - 1x08 - A God Walks into Abar.]
Include [Watchmen - 1x09 - See How They Fly]
Watchmen - 1x01 - It's Summer and We're Running Out of Ice
Watchmen - 1x02 - Martial Feats of Comanche Horsemanship
Watchmen - 1x03 - She Was Killed by Space Junk
Watchmen - 1x04 - If You Don't Like My Story, Write Your Own
Watchmen - 1x05 - Little Fear of Lightning
Watchmen - 1x06 - This Extraordinary Being
Watchmen - 1x07 - An Almost Religious Awe
Watchmen - 1x08 - A God Walks into Abar.
Watchmen - 1x09 - See How They Fly

:!: Turns out " Vekterne" has a leading space in the database, which is probably an errors, so as far as the exclude list is concerned, I'd add both values:

Code: Select all

Vekterne
 Vekterne
:!: readLines() may or may not trim() lines implicitly. It don't know. It might. If it does, then this won't work either.


:idea: Newer revisions of FileBot implicitly trim() all values we get back from TheTVDB, as to avoid invisible leading/trailing spaces messing with us: viewtopic.php?t=1609
:idea: Please read the FAQ and How to Request Help.
JD2005
Posts: 3
Joined: 16 Dec 2019, 15:43

Re: --filter and fine-tuning

Post by JD2005 »

Well in the meantime I was researching and found that my Ubuntu server's locale was blank, so I set it to en_US.utf-8. At the same time I added the ' Vekterne' to the exceptions list and reran the script and it worked! So not sure which one solved it but either way I really appreciate your assistance!
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: --filter and fine-tuning

Post by kim »

someone renamed show in English to Vekterne ;)
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

Re: [PLEX] FileBot Xattr Metadata Scanners & Plug-ins

Post by devster »

Does this still work now that plugins have been officially abandoned by Plex?
I only work in black and sometimes very, very dark grey. (Batman)
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [PLEX] FileBot Xattr Metadata Scanners & Plug-ins

Post by rednoah »

Yes, it works. I think the only thing that has changed so far is that you have to install manually (i.e. copy files) but of course we'll see how things develop in the future.
:idea: Please read the FAQ and How to Request Help.
draco31fr
Posts: 1
Joined: 29 Dec 2019, 11:26

Re: [DEB] Debian package

Post by draco31fr »

Hello,

I just wanna inform you about changes in Ubuntu 18.04 LTS.

Now default-jre is OpenJDK 11 :

Code: Select all

$ apt policy default-jre
default-jre:
  Installé : 2:1.11-68ubuntu1~18.04.1
  Candidat : 2:1.11-68ubuntu1~18.04.1
 Table de version :
 *** 2:1.11-68ubuntu1~18.04.1 500
        500 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
        100 /var/lib/dpkg/status
     2:1.10-63ubuntu1~02 500
        500 http://fr.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

Code: Select all

$ apt show default-jre
Depends: default-jre-headless (= 2:1.11-68ubuntu1~18.04.1), openjdk-11-jre
same for JavaFX:

Code: Select all

$ apt policy openjfx
openjfx:
  Installé : 11.0.2+1-1~18.04.2
  Candidat : 11.0.2+1-1~18.04.2
 Table de version :
 *** 11.0.2+1-1~18.04.2 500
        500 http://fr.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
        100 /var/lib/dpkg/status
     8u161-b12-1ubuntu2 500
        500 http://fr.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
For your information, with universal-jdk8's filebot repo, openjdk-8-jre and openjfx downgraded to 8u161, the GUI failed to launch with the following stack trace :

Code: Select all

déc. 29, 2019 12:10:53 PM net.filebot.Main onStart
GRAVE: Failed to initialize JavaFX
java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
	at net.filebot.util.ui.SwingUI.initJavaFX(SwingUI.java:582)
	at net.filebot.Main.onStart(Main.java:196)
	at net.filebot.Main.lambda$null$0(Main.java:162)
	at net.filebot.util.ui.SwingUI$SwingRunnable.doInBackground(SwingUI.java:472)
	at net.filebot.util.ui.SwingUI$SwingRunnable.doInBackground(SwingUI.java:462)
Caused by: java.lang.ClassNotFoundException: javafx.embed.swing.JFXPanel
	... 5 more
At this time, sysinfo report was :

Code: Select all

$ filebot -script fn:sysinfo
FileBot 4.8.5 (r6224)
JNA Native: 5.2.0
MediaInfo: 17.12
p7zip: p7zip Version 16.02 (locale=fr_FR.UTF-8,Utf16=on,HugeFiles=on,64 bits,8 CPUs Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz (906EA),ASM,AES-NI)
unrar: UNRAR 5.50 freeware
Chromaprint: fpcalc version 1.4.3
Extended Attributes: OK
Unicode Filesystem: OK
GVFS: PlatformGVFS [/run/user/1000/gvfs]
Script Bundle: 2019-05-15 (r565)
Groovy: 2.5.6
JRE: OpenJDK Runtime Environment 1.8.0_232
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 3 GB Max Memory / 44 MB Used Memory
OS: Linux (amd64)
HW: Linux draco-laptop 5.0.0-37-generic #40~18.04.1-Ubuntu SMP Thu Nov 14 12:06:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
DATA: /home/draco/.filebot
Package: DEB
License: UNREGISTERED
Done ヾ(@⌒ー⌒@)ノ
So, I have to use universal repository, instead of universal-jdk8, remove & purge old filebot package, and reinstall / update all stack (jre, javafx, ...)
Now GUI is launching well, sysinfo changes only relies on java version :

Code: Select all

JRE: OpenJDK Runtime Environment 11.0.5
I suggest you update the first post and also the website.
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DEB] Debian package

Post by rednoah »

Did you use the installer/deb.sh script? The script should automatically use the correct repository, by checking if OpenJFX is version 8 or above.
:idea: Please read the FAQ and How to Request Help.
VideoMox
Posts: 2
Joined: 15 Sep 2019, 01:57

Re: [User Study] Take a screen recording and earn yourself a free license

Post by VideoMox »

Sorry for the late reply, it took me a while to reproduce the issue. So basically, the parser gets confused when there are numbers in the title itself.
And this example is about as bad as it gets:

Image

It got the title correctly, but it wasn't able to pick up on the proper season number for some reason, even though the "0048" was part of a "word" in the title and not isolated by whitespace. I've also seen Filebot get confused when there are isolated numbers, like years or sequel numbering. It seems like any kind of numerics in the title throw it off.

Also notice that it doesn't consistently pick the right or wrong season. The pattern seems random as to whether it chooses Season 1 or Season 2.

For additional background: I ran my "Anime" pre-set:

Image

Hope this helps track down the issue.
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [User Study] Take a screen recording and earn yourself a free license

Post by rednoah »

Looks like a typical Absolute ⇆ SxE numbers mismatch to me, rather unrelated to numbers in the series name. You'll want to match with Absolute Order and then either go with that, or dynamically re-order to Airdate Order (SxE) in the format:
viewtopic.php?f=3&t=2769

Image
:idea: Please read the FAQ and How to Request Help.
Pulpi
Posts: 22
Joined: 29 Aug 2014, 22:25

Re: Exclude Blacklist & Series-Mappings

Post by Pulpi »

Hey rednoah,
please add "His Dark Materials" -> e.g. for: tvr-hdm-s01e04-1080p

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

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

Added:

Code: Select all

His Dark Materials	HDM
:idea: Please read the FAQ and How to Request Help.
Pinhead
Posts: 10
Joined: 11 Jan 2020, 09:41

Re: FileBot on the Mac App Store

Post by Pinhead »

After reading that the Apple store version Has limited usage due to Apple, I may add. Should have done more research before buying. I requested a refund. I got it. Whoo hoo. So I will be purchasing the universal licence full version now :)))))
Cyb3rGh05t
Posts: 29
Joined: 17 May 2019, 11:47

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by Cyb3rGh05t »

how do i add my liscense to the package?
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by rednoah »

Cyb3rGh05t wrote: 19 Jan 2020, 11:51 how do i add my liscense to the package?
Please read the log, or the documentation: https://www.filebot.net/activate.html
:idea: Please read the FAQ and How to Request Help.
Cyb3rGh05t
Posts: 29
Joined: 17 May 2019, 11:47

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by Cyb3rGh05t »

rednoah wrote: 19 Jan 2020, 11:54
Cyb3rGh05t wrote: 19 Jan 2020, 11:51 how do i add my liscense to the package?
Please read the log, or the documentation: https://www.filebot.net/activate.html
THANK YOU
Cyb3rGh05t
Posts: 29
Joined: 17 May 2019, 11:47

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by Cyb3rGh05t »

i get some errors with the command

Code: Select all

filebot -script fn:sysinfo

Code: Select all

FileBot 4.8.5 (r6224)
JNA Native: 5.2.2
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load amd64 (64-bi                                                                                                                     t) native library libmediainfo.so: Unable to load library 'mediainfo': Native li                                                                                                                     brary (linux-x86-64/libmediainfo.so) not found in resource path ([file:/root/fil                                                                                                                     ebot-portable/jar/filebot.jar])
7-Zip-JBinding: 9.20
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such                                                                                                                      file or directory
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-05-15 (r565)
Groovy: 2.5.6
JRE: OpenJDK Runtime Environment 1.8.0_232
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 6 Core / 6 GB Max Memory / 25 MB Used Memory
OS: Linux (amd64)
HW: Linux optimusprime 4.4.0-171-generic #200-Ubuntu SMP Tue Dec 3 11:04:55 UTC                                                                                                                      2019 x86_64 x86_64 x86_64 GNU/Linux
DATA: /root/filebot-portable/data/root
Package: TAR
License: FileBot License P7950282 (Valid-Until: 2020-05-23)
Done ヾ(@⌒ー⌒@)ノ
What did i miss?

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

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by rednoah »

libmediainfo.so is either not installed or not compatible with your system:

Code: Select all

MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load amd64 (64-bit) native library libmediainfo.so: Unable to load library 'mediainfo': Native library (linux-x86-64/libmediainfo.so) not found in resource path ([file:/root/filebot-portable/jar/filebot.jar])
fpcalc is not installed:

Code: Select all

Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory

:idea: libmediainfo.so and fpcalc are optional dependencies. You may or may not need either, depending on your use case. You will find many many many threads here in this forum discussing how to get libmediainfo.so working on various platforms.


:idea: If you're using a Debian-based OS such as Ubuntu, then I recommend using APT package management for dependencies: https://www.filebot.net/linux/apt.html
:idea: Please read the FAQ and How to Request Help.
forceflow
Posts: 1
Joined: 25 Jan 2020, 02:04

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by forceflow »

Ubuntu 19.10, OpenJDK 8, licensed version of filebot.

I've used this script, and all works well (with OpenJDK 8).
When I run update_filebot.sh however, I always end up with a version that gives me an error when I try to run it:

Code: Select all

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/filebot/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [TAR] How to install FileBot on Linux / FreeBSD / Solaris / any Unix OS

Post by rednoah »

Sorry, the incremental update script only works for the Java 11 build, but not the Java 8 compatibility build.
:idea: Please read the FAQ and How to Request Help.
phut
Posts: 1
Joined: 26 Jan 2020, 15:49

Re: How about sharing our format expressions?

Post by phut »

joined forum to contribute to this thread after not finding exactly what i wanted searching. i'm a simple man of simple requirements, so in case some other simpletons come a-googlin'

Code: Select all

{n} - {'s'+s.pad(2)}{'e'+e.pad(2)}{episode.special ? ('s00e'+special.pad(2)) : null } - {t}
Renames TV shows in the plex & human-friendly format
Show Title - s00e00 - Episode Title

With specials being named as s00 (per theTVDB).

actual examples:
  • Travel Man 48 Hours in... Jordan (Christmas Special)
  • Travel Man 48 Hours in... Dubrovnik
becomes
  • Travel Man 48 Hours in... - s00e03 - Jordan (Christmas Special)
  • Travel Man 48 Hours in... - s10e01 - Dubrovnik
I arrange folders/drives manually myself, as is my preference, so no need for filebot to take that over. Place, rename, scan @ plex, done.


edit because i found an error in my expression, now fixed
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How about sharing our format expressions?

Post by rednoah »

phut wrote: 26 Jan 2020, 15:58 i'm a simple man of simple requirements
{plex.name} will serve you well:

Code: Select all

{plex.name}
:idea: viewtopic.php?t=4116
:idea: Please read the FAQ and How to Request Help.
fud18
Posts: 5
Joined: 04 Feb 2020, 16:45

Re: Plex Naming Schemes

Post by fud18 »

I recently noticed that some of my movies were not getting their meta data in Plex unless I manually matched the titles. What I noticed was preventing this was having A|An|The at the beginning. According to Plex's website/forums if you place anything after a parenthesis it will not detect it which allows the files to match correctly. Below are the naming formats I have tried with examples. Any help would be greatly appreciated to get my naming to work like Example 3.
Example 1:
  • The Fly (1986) is matched correctly in Plex, but I want proper sort with the The at the end
    Filebot naming script: {n.replace(':',' - ')} ({y})
Example 2:
  • Fly, The (1986) is not matched correctly in Plex.
    Filebot naming script: {n.sortName('$2, $1').replace(':',' - ')} ({y})
Example 3 (What I would like): Fly (1986), The
  • If the current file does not begin with "A|An|The" the naming is done incorrectly as such
    Hamburger: The Motion Picture (1986) = Hamburger: The Motion Picture (1986), Hamburger: The Motion Picture
    The Fly (1986) = Fly (1986), The
    Filebot naming script: {n.sortName('$2').replace(':',' - ')} ({y}){n.sortName(', $1').replace(':',' - ')}
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Plex Naming Schemes

Post by rednoah »

AFAIK, what you would like is is not what Plex would like to see:
https://support.plex.tv/articles/categories/your-media/

:idea: {plex} is the way to go. It may not be what you want, but it'll be what Plex wants and expects. You can do things differently, and maybe it'll mostly work, or maybe it'll sometimes not work, either way, no guarantees once you start ignoring the standard if favor of your own preferences. ;)

Code: Select all

{plex}
:idea: Please read the FAQ and How to Request Help.
fud18
Posts: 5
Joined: 04 Feb 2020, 16:45

Re: Plex Naming Schemes

Post by fud18 »

Thanks for the reply rednoah, I have tried that, but I don't want all the A|An|The's lumped together...makes it a real nightmare to try and remove files if I am bouncing around all over the place. I will face the consequences of the way I want it named if someone can just tell me how to the the A|An|The from the beginning of the title to after the date as provided in my example. I have tested it and it works flawlessly that's why I want to do it plus then I can find them easy in windows explorer to remove movies I no longer want.
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Plex Naming Schemes

Post by rednoah »

You could do n.sortName() to remove the A and The altogether, since that'll probably mess with Plex the least:

Code: Select all

n.sortName()
:idea: Please read the FAQ and How to Request Help.
fud18
Posts: 5
Joined: 04 Feb 2020, 16:45

Re: Plex Naming Schemes

Post by fud18 »

But how do I add the removed part back after the (year)?
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Plex Naming Schemes

Post by rednoah »

Assuming that Plex ignores everything after the Name (Year) part, you can try this:

Code: Select all

ny.sortName('$2, $1')
:idea: Please read the FAQ and How to Request Help.
fud18
Posts: 5
Joined: 04 Feb 2020, 16:45

Re: Plex Naming Schemes

Post by fud18 »

That worked like a charm. Thanks so much rednoah!!!!!
thenegativeone
Posts: 3
Joined: 07 Feb 2020, 12:08

Re: [User Study] Take a screen recording and earn yourself a free license

Post by thenegativeone »

Hay @rednoah are you still giving out free licenses for this or not
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [User Study] Take a screen recording and earn yourself a free license

Post by rednoah »

thenegativeone wrote: 07 Feb 2020, 12:22 Hay @rednoah are you still giving out free licenses for this or not
Yes, of course, I have yet to receive a single screen recording. ;)
:idea: Please read the FAQ and How to Request Help.
thenegativeone
Posts: 3
Joined: 07 Feb 2020, 12:08

Re: [User Study] Take a screen recording and earn yourself a free license

Post by thenegativeone »

What do you need a recording of. Or shall I say do you want it as a review or what I need more info to go off of
User avatar
rednoah
The Source
Posts: 24634
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [User Study] Take a screen recording and earn yourself a free license

Post by rednoah »

Just start the recording, and then do whatever you wanna do, and narrate your thoughts. From download, to install, to first launch, to first usage, to first rename, etc.

* What thoughts come to mind?
* What makes sense?
* What doesn't make sense?
* Where are you stuck?
* What works as expected?
* What works different from your expectation?

TL;DR A screen recording of you using FileBot, narrated by you thinking out loud as you go along. ;)
:idea: Please read the FAQ and How to Request Help.
Post Reply