Search found 99 matches

by ChefGregS
22 Mar 2018, 09:38
Forum: Episode / Movie Naming Scheme
Topic: if genres undefined then...
Replies: 13
Views: 7757

Re: if genres undefined then...

He answered you...did you not see it?

any{genres}{'No Genres'}

simply change No Genres to whatever you want..

any{genres}{'qwerty'}
by ChefGregS
22 Mar 2018, 03:35
Forum: Feature Requests and Bug Reports
Topic: Pulling TIME information from file or DB
Replies: 1
Views: 1665

Pulling TIME information from file or DB

I have noticed that the length of a movie / tv show is pulled from the database used to get the information. Shouldn't Filebot pull it from the FILE if available? I am asking because I take many of my mini-series and re-encode them to be better, smaller, etc... I have one I just did that has 6 episo...
by ChefGregS
22 Mar 2018, 03:11
Forum: Feature Requests and Bug Reports
Topic: And the PLEXmovie DB be added??
Replies: 6
Views: 4450

Re: And the PLEXmovie DB be added??

And the subject should have read

"CAN the PLEX movie DB be added??"
by ChefGregS
22 Mar 2018, 03:08
Forum: Feature Requests and Bug Reports
Topic: And the PLEXmovie DB be added??
Replies: 6
Views: 4450

Re: And the PLEXmovie DB be added??

Key word here is TV https://www.themoviedb.org/tv/5885-the-colour-of-magic http://www.imdb.com/title/tt1079959/ maybe Filebot can use the internal DB to go... hmmm this is probably what you are looking for, but it's listed under TV not Movie ? Query Movie => [the colour of magic, the colour of magi...
by ChefGregS
21 Mar 2018, 18:57
Forum: Feature Requests and Bug Reports
Topic: And the PLEXmovie DB be added??
Replies: 6
Views: 4450

And the PLEXmovie DB be added??

I have found that many movies that simply will NOT hit on either of the stock db's (omdb / tmdb) are found quite easily in PLEX using the PLEX movie db option. I name the file manually using information I find on various sites...in the format that I have set up for Filebot...and then I do a manual M...
by ChefGregS
21 Mar 2018, 18:46
Forum: Feature Requests and Bug Reports
Topic: Use moviedb and omdb simultaneously
Replies: 2
Views: 2053

Re: Use moviedb and omdb simultaneously

That would be a nice feature!!! To have a choice of which parts of each DB to use would be nice. There are MANY times I will use OMDB because quite simply, on many movies, especially OLDER movies..they have them, have CORRECT information, and for whatever reason..have way more COMPLETE information.
by ChefGregS
21 Mar 2018, 18:22
Forum: Episode / Movie Naming Scheme
Topic: {expression} help
Replies: 33
Views: 15720

Re: Learn how {expressions} work and useful Helper Functions

Not sure if this is what you wanted...but here is a shot of several movies all with nothing in the vf field and one with the field filled. Also a shot of the file data from one of those movies with nothing in that VF field in the bindings. It also has the end part of my code where it should be liste...
by ChefGregS
20 Mar 2018, 21:00
Forum: Episode / Movie Naming Scheme
Topic: {expression} help
Replies: 33
Views: 15720

Re: Learn how {expressions} work and useful Helper Functions

Ok...found a question that does fit in this category. :) I have several files that for whatever reason do NOT have 'vf' defined. However, they do have 'hpi' defined. I would use this except from what I gather from all I looked at it is the ACTUAL size not rounded (or however they figure it.) In my c...
by ChefGregS
19 Mar 2018, 20:40
Forum: Episode / Movie Naming Scheme
Topic: {expression} help
Replies: 33
Views: 15720

Re: Learn how {expressions} work and useful Helper Functions

1) Dropping a donation (20 Euros) because you absolutely deserve it for all your help!! 2) I actually figured out the problem I was having by studying all your replies...and poof..I saw the problem. This leads me to another question, however, since it has nothing really to do with expressions or fun...
by ChefGregS
18 Mar 2018, 12:28
Forum: Episode / Movie Naming Scheme
Topic: {expression} help
Replies: 33
Views: 15720

Re: Learn how {expressions} work and useful Helper Functions

Great.. thanks. I’ll have another one for you later when I get home from church.. :)

Strange behavior popped up last night on my end code yet only affecting a few files but I want to understand it..
by ChefGregS
18 Mar 2018, 11:36
Forum: Episode / Movie Naming Scheme
Topic: {expression} help
Replies: 33
Views: 15720

Re: Learn how {expressions} work and useful Helper Functions

Hey rednoah.... I am getting the irritating "Binding "pi" undefined. I don't understand why it's an error because when OTHER bindings are undefined it doesn't always give an error. I have read some stuff and testing some fixes but nothing seems to get rid of the error. My recent attem...
by ChefGregS
16 Mar 2018, 02:56
Forum: Episode / Movie Naming Scheme
Topic: {expression} help
Replies: 33
Views: 15720

Re: Learn how {expressions} work and useful Helper Functions

Code: Select all

{ any{csv('/path/to/names.csv').get(certification)}{"Unkown Certification: $certification"}{"No Certification"} }
This code worked perfectly when inserted into my code.. (just a heads up...the correct spelling is Unknown.) :)
by ChefGregS
16 Mar 2018, 02:35
Forum: Episode / Movie Naming Scheme
Topic: {expression} help
Replies: 33
Views: 15720

Re: Learn how {expressions} work and useful Helper Functions

Ok... when I use the format by itself, It sees the file fine. I get this result:

Code: Select all

{Not Rated=NR, APPROVED=NR, N A=NR, N R=NR, =NR}
BTW: I have MANY movies that return undefined certification.. MOSTLY TV movies
by ChefGregS
15 Mar 2018, 23:40
Forum: Episode / Movie Naming Scheme
Topic: {expression} help
Replies: 33
Views: 15720

Re: Learn how {expressions} work and useful Helper Functions

As I look at this one...I understand what it is doing... any{csv('/path/to/names.csv').get(certification)}{"Unkown Certification: $certification"} Where I am confused is that as it seems to me (and you verified) that this will do what I need it to do, it simply isn't. So, as I am testing, ...
by ChefGregS
15 Mar 2018, 03:13
Forum: Episode / Movie Naming Scheme
Topic: {expression} help
Replies: 33
Views: 15720

Re: Learn how {expressions} work and useful Helper Functions

For whatever reason....THIS particular code is just not sinking in.. I am totally lost on this one.. Probably over thinking it...but just not getting it. UGH! I'm missing something when I am trying to use it, I am sure...just not sure what it is I'm missing.
by ChefGregS
14 Mar 2018, 20:16
Forum: Episode / Movie Naming Scheme
Topic: {expression} help
Replies: 33
Views: 15720

Re: Learn how {expressions} work and useful Helper Functions

4. Mappings from a CSV file {csv('/path/to/names.csv').get(n) ?: n} e.g. /path/to/names.csv Deep Space 9;DS9 How I Met Your Mother;HIMYM This is the complete example. What exactly is unclear? I am doing it exactly as shown but it is doing something very strange. Here is a screenshot: http://www.sgp...
by ChefGregS
14 Mar 2018, 18:28
Forum: Episode / Movie Naming Scheme
Topic: {expression} help
Replies: 33
Views: 15720

Re: Learn how {expressions} work and useful Helper Functions

If you have a lot of replacement / lookup logic, then you can use external CSV files for those mappings, akin to Example 4 here: https://www.filebot.net/forums/viewtopic.php?f=5&t=182 I like this idea. Where can I get more information on how to set up the csv file as well as correctly inserting...
by ChefGregS
14 Mar 2018, 04:41
Forum: Episode / Movie Naming Scheme
Topic: [HELP] Missing information leaving blank spaces in filename.
Replies: 13
Views: 9345

Re: [HELP] Missing information leaving blank spaces in filename.

Do you wanna know why that works? [0,1,2,3] is array syntax, so you return an Array / List object, and the default String representation kinda looks like the code. And if the code fails, no List object, and so no [...] in the output. ;) Yeah...that one actually made sense to me. Took me back to whe...
by ChefGregS
14 Mar 2018, 04:38
Forum: Episode / Movie Naming Scheme
Topic: {expression} help
Replies: 33
Views: 15720

Re: Learn how {expressions} work and useful Helper Functions

Try this: any{certification}{'Not Rated'}.replace('Not Rated', 'NR') any{certification}{'Not Rated'} gives you either the certification, if defined, or "Not Rated", and then replace does what replace does. ;) Ok.. let me expand on this one (sorry, with over 5000 files to rename again I ke...
by ChefGregS
14 Mar 2018, 03:34
Forum: Episode / Movie Naming Scheme
Topic: [HELP] Missing information leaving blank spaces in filename.
Replies: 13
Views: 9345

Re: [HELP] Missing information leaving blank spaces in filename.

Tuned into this thread a bit late, but I have some advice. For the group binding, another fix is to just move the brackets inside and it'll only use them if group is defined. Old way: [{n.findMatch(group) ? null : group}] New way: {[n.findMatch(group) ? null : group]} I am also trying to get rid of...
by ChefGregS
14 Mar 2018, 01:56
Forum: Episode / Movie Naming Scheme
Topic: {expression} help
Replies: 33
Views: 15720

Re: Learn how {expressions} work and useful Helper Functions

Ok...here is one: What I want to do: If certification is blank OR is Not Rated then set it as NR else leave it as it is (PG, R, G, etc...) I currently use this: {self.certification ?: 'NR'} which gives me NR if certification is blank. I have tried several of the if/then/or ways to get it to also be ...
by ChefGregS
13 Mar 2018, 19:01
Forum: Episode / Movie Naming Scheme
Topic: {expression} help
Replies: 33
Views: 15720

Re: Learn how {expressions} work and useful Helper Functions

rednoah wrote: 13 Mar 2018, 17:44 Sorry, my bad, typo.

Code: Select all

== ... equals
=~ ... matches
e.g.

Code: Select all

{vf == /2160p/ ? 'Movies 4K' : vf =~ /1080p|720p/ ? 'Movies HD' : 'Movies'}
Yup, thanks..that did the trick.. Nice to know, though, that apparently the logic can just go on and on if need be. :)
by ChefGregS
13 Mar 2018, 17:41
Forum: Episode / Movie Naming Scheme
Topic: {expression} help
Replies: 33
Views: 15720

Re: Learn how {expressions} work and useful Helper Functions

Hey, just a heads up, this didn't work: {vf == /2160p/ ? 'Movies 4K' : vf == /1080p|720p/ ? 'Movies HD' : 'Movies'} But, I simply did this: {vf == /2160p/ ? 'Movies 4K' : vf == /720p/ ? 'Movies HD' : vf == /1080p/ ? 'Movies HD' : 'Movies'} and it works beautifully! I'm guessing the | is the same as ...
by ChefGregS
13 Mar 2018, 04:55
Forum: Episode / Movie Naming Scheme
Topic: {expression} help
Replies: 33
Views: 15720

Re: Learn how {expressions} work and useful Helper Functions

Ahh..thanks as always.. That makes sense with the <> info.. And yes, I know the issue with 720 movies.. irritates the heck out of me and some I end up re-encoding myself to fix those issues. I keep forgetting that I can have more than one file folder associated with a Library. I didn't want to add a...
by ChefGregS
13 Mar 2018, 02:17
Forum: Episode / Movie Naming Scheme
Topic: {expression} help
Replies: 33
Views: 15720

Re: Learn how {expressions} work and useful Helper Functions

I've been studying the various threads with expressions and other people's code and learning a lot. The code you gave me for my folder issue makes total sense and I understand what each part does. So while using this: {vf == /2160p/ ? 'Movies 4K' : 'Movies'} What if I wish to check multiple resoluti...