Search found 102 matches
- 23 Mar 2018, 13:11
- Forum: Episode / Movie Naming Scheme
- Topic: if genres undefined then...
- Replies: 13
- Views: 8412
Re: if genres undefined then...
You could do this: any{genres; "Yes Genres"}{"No Genres"} :arrow: This code works due to the Unwind-on-Undefined Behaviour. Checking for null won't work, because the {genres} does not yield a null value when undefined, but throws an exception yielding no value at all. @see https...
- 22 Mar 2018, 21:42
- Forum: Feature Requests and Bug Reports
- Topic: And the PLEXmovie DB be added??
- Replies: 6
- Views: 4609
Re: And the PLEXmovie DB be added??
Not sure if I made myself clear....not saying you misread it..but just so that I clarify for others...the code I used, which is my MOVIE code...I used as a NEW button for TV movies.. having it call the information FROM the 3 TV sites (one button for each.) Thus, I just select it whenever I have this...
- 22 Mar 2018, 21:30
- Forum: Episode / Movie Naming Scheme
- Topic: if genres undefined then...
- Replies: 13
- Views: 8412
Re: if genres undefined then...
I gotcha.... So you are wanting to do a simple if then else statement. If genre is defined ignore it...and if it isn't defined then use xxxxxx folder. M:/{vf == /2160p/ ? 'Movies 4K' : vf =~ /1080p|720p/ ? 'Movies HD' : 'Movies'} That is how I start my code. It verifies the size of the movie (4k, HD...
- 22 Mar 2018, 09:38
- Forum: Episode / Movie Naming Scheme
- Topic: if genres undefined then...
- Replies: 13
- Views: 8412
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'}
any{genres}{'No Genres'}
simply change No Genres to whatever you want..
any{genres}{'qwerty'}
- 22 Mar 2018, 03:35
- Forum: Feature Requests and Bug Reports
- Topic: Pulling TIME information from file or DB
- Replies: 1
- Views: 1712
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...
- 22 Mar 2018, 03:11
- Forum: Feature Requests and Bug Reports
- Topic: And the PLEXmovie DB be added??
- Replies: 6
- Views: 4609
Re: And the PLEXmovie DB be added??
And the subject should have read
"CAN the PLEX movie DB be added??"
"CAN the PLEX movie DB be added??"
- 22 Mar 2018, 03:08
- Forum: Feature Requests and Bug Reports
- Topic: And the PLEXmovie DB be added??
- Replies: 6
- Views: 4609
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...
- 21 Mar 2018, 18:57
- Forum: Feature Requests and Bug Reports
- Topic: And the PLEXmovie DB be added??
- Replies: 6
- Views: 4609
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...
- 21 Mar 2018, 18:46
- Forum: Feature Requests and Bug Reports
- Topic: Use moviedb and omdb simultaneously
- Replies: 2
- Views: 2122
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.
- 21 Mar 2018, 18:22
- Forum: Episode / Movie Naming Scheme
- Topic: {expression} help
- Replies: 33
- Views: 16248
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...
- 20 Mar 2018, 21:00
- Forum: Episode / Movie Naming Scheme
- Topic: {expression} help
- Replies: 33
- Views: 16248
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...
- 19 Mar 2018, 20:40
- Forum: Episode / Movie Naming Scheme
- Topic: {expression} help
- Replies: 33
- Views: 16248
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...
- 18 Mar 2018, 12:28
- Forum: Episode / Movie Naming Scheme
- Topic: {expression} help
- Replies: 33
- Views: 16248
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..
Strange behavior popped up last night on my end code yet only affecting a few files but I want to understand it..
- 18 Mar 2018, 11:36
- Forum: Episode / Movie Naming Scheme
- Topic: {expression} help
- Replies: 33
- Views: 16248
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...
- 16 Mar 2018, 02:56
- Forum: Episode / Movie Naming Scheme
- Topic: {expression} help
- Replies: 33
- Views: 16248
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"} }
- 16 Mar 2018, 02:35
- Forum: Episode / Movie Naming Scheme
- Topic: {expression} help
- Replies: 33
- Views: 16248
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:
BTW: I have MANY movies that return undefined certification.. MOSTLY TV movies
Code: Select all
{Not Rated=NR, APPROVED=NR, N A=NR, N R=NR, =NR}
- 15 Mar 2018, 23:40
- Forum: Episode / Movie Naming Scheme
- Topic: {expression} help
- Replies: 33
- Views: 16248
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, ...
- 15 Mar 2018, 03:13
- Forum: Episode / Movie Naming Scheme
- Topic: {expression} help
- Replies: 33
- Views: 16248
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.
- 14 Mar 2018, 20:16
- Forum: Episode / Movie Naming Scheme
- Topic: {expression} help
- Replies: 33
- Views: 16248
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...
- 14 Mar 2018, 18:28
- Forum: Episode / Movie Naming Scheme
- Topic: {expression} help
- Replies: 33
- Views: 16248
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...
- 14 Mar 2018, 04:41
- Forum: Episode / Movie Naming Scheme
- Topic: [HELP] Missing information leaving blank spaces in filename.
- Replies: 13
- Views: 10052
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...
- 14 Mar 2018, 04:38
- Forum: Episode / Movie Naming Scheme
- Topic: {expression} help
- Replies: 33
- Views: 16248
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...
- 14 Mar 2018, 03:34
- Forum: Episode / Movie Naming Scheme
- Topic: [HELP] Missing information leaving blank spaces in filename.
- Replies: 13
- Views: 10052
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...
- 14 Mar 2018, 01:56
- Forum: Episode / Movie Naming Scheme
- Topic: {expression} help
- Replies: 33
- Views: 16248
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 ...
- 13 Mar 2018, 19:01
- Forum: Episode / Movie Naming Scheme
- Topic: {expression} help
- Replies: 33
- Views: 16248
Re: Learn how {expressions} work and useful Helper Functions
Yup, thanks..that did the trick.. Nice to know, though, that apparently the logic can just go on and on if need be.rednoah wrote: ↑13 Mar 2018, 17:44 Sorry, my bad, typo.
e.g.Code: Select all
== ... equals =~ ... matches
Code: Select all
{vf == /2160p/ ? 'Movies 4K' : vf =~ /1080p|720p/ ? 'Movies HD' : 'Movies'}