Page 38 of 41

Re: Plex Naming Schemes

Posted: 14 Apr 2020, 11:46
by rednoah
hstorey219 wrote: 14 Apr 2020, 10:38 when I run Filebot, it will create this Media/Movies/Girls Trip (2017)/Girls trip (2017)
I just want Filebot to rename the folder and video file into Plex format without creating any folders.
That is what {plex.tail} does, i.e. the Plex path without leading Movies / Series folder. You probably mean {plex.name} which refers to the filename part, without path components.


:!: Note that Plex assumes a certain a certain path, and not just file name. If you stray from that path, then all bets or off, and things may or may not work for you.


:!: Note that the amc script is explicitly not designed for renaming files in-place. The official recommendation is to organize files into a new structure.


:!: Leaving --output unspecified is bad practice, since it'll just default to the current working directory, whatever it may be.

Re: [DEB] Debian package

Posted: 22 Apr 2020, 23:38
by spetrillo
Stupid question...and maybe I am missing it...but how do we install the license?

Re: [DEB] Debian package

Posted: 22 Apr 2020, 23:40
by spetrillo
Second...if I use the script to do the install I am seeing a 32 bit JVM installed. I thought it would install the 64 bit version?

Re: [DEB] Debian package

Posted: 23 Apr 2020, 07:23
by rednoah
spetrillo wrote: 22 Apr 2020, 23:38 Stupid question...and maybe I am missing it...but how do we install the license?
License Activation is generally self-explanatory, so don't worry about it until FileBot prompts you with instructions:
https://www.filebot.net/activate.html

spetrillo wrote: 22 Apr 2020, 23:40 Second...if I use the script to do the install I am seeing a 32 bit JVM installed. I thought it would install the 64 bit version?
Logs? Screenshots?

The FileBot package depends on the OpenJDK package, which almost certainly installs the latest 64-bit OpenJDK 11 at this point in time, unless you're running a 32-bit OS.

Re: Conditional Structures (if-then-else)

Posted: 27 Apr 2020, 02:25
by AbedlaPaille
kim wrote: 19 Sep 2018, 00:32 well if I try this (in GUI)

Code: Select all

\\gaia-prime\Movies\{any{'Movie Collections/'+az+'/'+collection+'/'+ny+'/'+ny}{az+'/'+ny+'/'+ny}} [{vf}]{subt}
I get output
e.g. \\gaia-prime/Movies/D/Demolition Man (1993)/Demolition Man (1993) [720p]
or \\gaia-prime/Movies/Movie Collections/A/Avatar Collection/Avatar (2009)/Avatar (2009) [720p]

try

Code: Select all

\\gaia-prime\Movies\{any{collection ? ('Movie Collections/'+az+'/'+collection+'/'+ny+'/'+ny) : 'collection found but something is wrong'} {az+'/'+ny+'/'+ny} {'WTF'} }
only if I write {az+'/'+ny+'/'+ny} wrong like so {az'/'+ny+'/'+ny} I get the
"but when you use it on a movie that isn't in one, it only adds the vf and subt part... the file name and path disappear..."

btw: there is a better way to write it

Code: Select all

\\gaia-prime\Movies\{any{'Movie Collections/'+az+'/'+collection}{az}}/{ny}/{ny} [{vf}]{subt}
or

Code: Select all

\\gaia-prime\Movies\{def altDir = ('Movie Collections/'+az+'/'); any{altDir+collection}{az}}/{ny}/{ny} [{vf}]{subt}
Very interesting this! Is it possible to insert conditional trails within the paths? Like a vf.match in the directory name, can't seem to adapt my normal expression. Even when i got the syntax right it crashed paths for movies that didn't match vf

Code: Select all

{any{'[Collections]/'+collection+'/'+'('+y+')'+' '+n}{ny+' ['+vf.match(/720[pP]|1080[pP]/)+']'+'/'+ny}}
I don't know how to play around Primary title and n either, usually use something like this:

Code: Select all

info.OriginalLanguage =~ /en/ ? primaryTitle : n

Re: Conditional Structures (if-then-else)

Posted: 27 Apr 2020, 17:10
by kim

Code: Select all

{ any{n}{ny}{'no match'} }

Re: Conditional Structures (if-then-else)

Posted: 02 May 2020, 05:18
by AbedlaPaille
Didn't get that sorry, bit of a noob. How do you suggest i write info.OriginalLanguage =~ /en/ ? primaryTitle : n if it's within a {any{'/'/' }{'/'/' }} path? Most syntax i tried don't seem to be working. And what am i missing when it comes to displaying potential attributes on folders like i do with my normal scheme?

Re: Conditional Structures (if-then-else)

Posted: 02 May 2020, 07:28
by rednoah
e.g. Here's what you asked for specifically:

Code: Select all

{any{info.OriginalLanguage =~ /en/ ? primaryTitle : n}{'No Name'}}

e.g. Here's how you'd work with potential attributes:

Code: Select all

{allOf{vc}{vf}{source}{group}.joining('-', '[', ']')}

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

Posted: 03 May 2020, 16:41
by GeorgeAl
Hello, I have purchased the file bot (2nd year at row), and I could like to know if you plan to make any guide with examples for noobs like me?
I do not have the time to learn to program now, as a matter of fact, I do not care at all. I only want something that works, for that I paid.

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

Posted: 03 May 2020, 17:12
by rednoah
GeorgeAl wrote: 03 May 2020, 16:41 Hello, I have purchased the file bot (2nd year at row), and I could like to know if you plan to make any guide with examples for noobs like me?
I do not have the time to learn to program now, as a matter of fact, I do not care at all. I only want something that works, for that I paid.
Sorry, this guide is already as simple as possible. You may petition the JDownloader developers to make it easier, perhaps even add 1st party integration for FileBot post-processing.

That being said, I'd just stick the FileBot Desktop Application if you're looking for something easy and straight-forward. Presets are great for adding a degree of automation.

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

Posted: 03 May 2020, 17:35
by GeorgeAl
Unfortunately, all useful guides at the JDownloader forum are at german.

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

Posted: 03 May 2020, 18:04
by rednoah
GeorgeAl wrote: 03 May 2020, 17:35 Unfortunately, all useful guides at the JDownloader forum are at german.
It's not a language issue. JDownloader is just difficult to work with, compared to uT and qBT where it's just a matter of copy & paste.

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

Posted: 03 May 2020, 18:29
by GeorgeAl
Yes, you are right. The AMC script works with qtorrent, but I want to make it work with jdownloader 2 but no hope.

Re: MediaInfo Inspector

Posted: 15 May 2020, 22:41
by AbedlaPaille
What's the best way to work with files lacking mediainfo, for example audio languages?

I was thinking i might be able to modify the mediainfo audio language directly with the mediainfo program you linked, seems i can only visualize it though.

Re: Conditional Structures (if-then-else)

Posted: 27 May 2020, 12:30
by AbedlaPaille
Often find myself in cases where i could use either {any} or { x ? x : y } pretty much interchangeably. In those cases is there a better option ? Like one less hungry in computing power ?

Re: Conditional Structures (if-then-else)

Posted: 27 May 2020, 12:53
by rednoah
I'd use the one that is more readable. They're not interchangeable though, because the ternary operator does not catch exceptions, and because it does less, I'd expect it to be faster, but definitely not noticeably faster in human time scales.

Re: Conditional Structures (if-then-else)

Posted: 27 May 2020, 15:06
by AbedlaPaille
Cheers. So the complex format i posted earlier is pretty sound and i wouldn't be able to optimize its speed much more, correct?

For reference viewtopic.php?f=5&t=11862

Re: Conditional Structures (if-then-else)

Posted: 27 May 2020, 15:12
by rednoah
AbedlaPaille wrote: 27 May 2020, 15:06 So the complex format i posted earlier is pretty sound and i wouldn't be able to optimize its speed much more, correct?
I'm sure it's possible to optimize speed, and the first step would to profile each part, to see which one is slower than expected. As with everything, the 20 / 80 principle applies, 20% of your code will be responsible for 80% of run time, so it's integral to find out what those 20% are first.

Re: Conditional Structures (if-then-else)

Posted: 27 May 2020, 15:14
by AbedlaPaille
Thanks for the pointers !

Re: How about sharing our format expressions?

Posted: 11 Jun 2020, 21:12
by AbedlaPaille
Image

I'm nearly done with my OCD :D

Films is the main one, it's a close relative to plex but with multi entry collection folders and no 'The' prefix. That's how i browse my full library in explorer.

Plex is where things are tidy.

Collections and Studios use a --filter. The All folder in Collections is for single entry collections.

Directors, Genres, Bitrate, Resolution, Size, Ratings, Language, Year have no filter, they're just different sorting orders with different schemes.

For example Language/Other looks like this

Image

I use year first in several ones, like Directors, Studios, Year

Image

If you want to know more just ask :)

Re: Conditional Structures (if-then-else)

Posted: 27 Jun 2020, 14:57
by nomadicleo
Hi,

Could someone please help me with a conditional statement for (certification). My original preset is:

Code: Select all

{n.replaceAll(/[:|]/, " - ")} ({y})\{n.replaceAll(/[:|]/, " - ")} ({y}) {vf} - {certification}
When it does not find a certification, it simply appends the hyphen at the end of the name but I would like it to only add the hyphen when there is a certification found.

Re: Conditional Structures (if-then-else)

Posted: 27 Jun 2020, 15:10
by rednoah
nomadicleo wrote: 27 Jun 2020, 14:57 When it does not find a certification, it simply appends the hyphen at the end of the name but I would like it to only add the hyphen when there is a certification found.
e.g.

Code: Select all

{" - " + certification}
:arrow: viewtopic.php?t=1895

Re: Conditional Structures (if-then-else)

Posted: 27 Jun 2020, 15:33
by nomadicleo
Thank you, @rednoah!! Worked perfectly.

Re: Conditional Structures (if-then-else)

Posted: 28 Jun 2020, 18:09
by aryanprincesanty
FileBot might not find all the groups for the TV shows I have. How do I make a format such that when {group} exists - it should be added, if not - it should be blank.

My current format is:

Code: Select all

{ny}/Season 0{s}/{ny} - {s00e00} - {t} [{vf} {source} {vc} {if (bitdepth == 10) '10-bit'} {ac} {channels} {if (group != null) {group} else ""}]

What changes should I apply to have my files look like this:
no group:

Code: Select all

Brooklyn Nine-Nine - S02E01 - Undercover [480p x264 8-bit AAC 2.0]
xyz group:

Code: Select all

Brooklyn Nine-Nine - S02E02 - Chocolate Milk [480p x264 8-bit AAC 2.0 XYZ]

Re: Conditional Structures (if-then-else)

Posted: 29 Jun 2020, 03:45
by rednoah
aryanprincesanty wrote: 28 Jun 2020, 18:09 How do I make a format such that when {group} exists - it should be added, if not - it should be blank.
That is default. You're probably asking about the preceding blank though, so that you don't end up with a superfluous blank if {group} is undefined.

e.g.

Code: Select all

{" " + group}

Code: Select all

{" " + ac}{" " + channels}{" " + group}
:arrow: viewtopic.php?t=1895



Note the conceptual similarity to previously asked questions:
rednoah wrote: 27 Jun 2020, 15:10
nomadicleo wrote: 27 Jun 2020, 14:57 When it does not find a certification, it simply appends the hyphen at the end of the name but I would like it to only add the hyphen when there is a certification found.
e.g.

Code: Select all

{" - " + certification}
:arrow: viewtopic.php?t=1895