Search found 18 matches

by AleXSR700
28 May 2022, 20:10
Forum: Help and Support
Topic: How to use if - else if - else properly?
Replies: 8
Views: 1866

Re: How to use if - else if - else properly?

I am sorry, I found the culprit after trying to only return a simple "ELSE" without additional code.
I had added another field and it seemingly threw an error. You warned me about this and I tried to follow the instructions but seems I had a syntax error.

Working now *.*
by AleXSR700
28 May 2022, 19:04
Forum: Windows
Topic: Possible to use IMDB for movies? What do I do if info.productionCompanies doesn't work?
Replies: 7
Views: 2617

Re: Possible to use IMDB for movies? What do I do if info.productionCompanies doesn't work?

Thank you!

Yes, I am hoping to solve the Dolby Vision case using

Code: Select all

({ hdr == 'Dolby Vision' ? {hdr} : { hdr + bitdepth + '_' }}
But I do not have a Dolby Vision file to test it with, so I will have to wait and see if it works :)
by AleXSR700
28 May 2022, 18:50
Forum: Help and Support
Topic: How to use if - else if - else properly?
Replies: 8
Views: 1866

Re: How to use if - else if - else properly?

It looks fine to me as well. But it is being ignored. Every single "else if" is working. The "else" is not.
Any other way of achieving this since "else" is not working?
by AleXSR700
28 May 2022, 18:49
Forum: Help and Support
Topic: Is it possible to automatically detect Marvel movies and put them in their own folder?
Replies: 20
Views: 5687

Re: Is it possible to automatically detect Marvel movies and put them in their own folder?

I cannot post pictures on this forum without an external filehost.

I am in the window "Movie Bindings" and then press the yellow folder icon next to "Media File".
by AleXSR700
28 May 2022, 17:37
Forum: Windows
Topic: Possible to use IMDB for movies? What do I do if info.productionCompanies doesn't work?
Replies: 7
Views: 2617

Re: Possible to use IMDB for movies? What do I do if info.productionCompanies doesn't work?

Okay, so I am able to do it using DC Films as production company. Keywords still does not work. :( Also, small bonus question. I am trying to add a "_" after the bitdepth, but if I write it directly after bitdepth it does not work anymore and if I put any symbol infront of the "_"...
by AleXSR700
28 May 2022, 17:15
Forum: Help and Support
Topic: Is it possible to automatically detect Marvel movies and put them in their own folder?
Replies: 20
Views: 5687

Re: Is it possible to automatically detect Marvel movies and put them in their own folder?

I know it should behave like that, but it does not. Nothing opens. I cannot chose anything :(
by AleXSR700
28 May 2022, 17:09
Forum: Help and Support
Topic: How to use if - else if - else properly?
Replies: 8
Views: 1866

Re: How to use if - else if - else properly?

Okay, that seems to work for everything except the "else" statement. The else statement is simply being ignored and the filename is then only audiolanguages etc.

Is the else statement for some reason not supported? All else if work fine. Just the final else is not working.
by AleXSR700
28 May 2022, 16:37
Forum: Help and Support
Topic: Is it possible to automatically detect Marvel movies and put them in their own folder?
Replies: 20
Views: 5687

Re: Is it possible to automatically detect Marvel movies and put them in their own folder?

A sample is set. It is the same as yours. Avatar. But I cannot change it. When I try setting a new sample and then click the folder icon in the last screen you posted, nothing happens. I will try with the prototyping. I hope it supports the if else if else statement. Although I don't see how that wo...
by AleXSR700
28 May 2022, 15:35
Forum: Help and Support
Topic: Is it possible to automatically detect Marvel movies and put them in their own folder?
Replies: 20
Views: 5687

Re: Is it possible to automatically detect Marvel movies and put them in their own folder?

I used to use that, but since I cannot change the sample (nothing happens when I push the folder icon to open a new media file), I simply write the code and then test it.
by AleXSR700
28 May 2022, 15:31
Forum: Help and Support
Topic: How to use if - else if - else properly?
Replies: 8
Views: 1866

Re: How to use if - else if - else properly?

You exmaple would not work because now the year is missing from normal movies.

I would always want the year as part of the title. But when it is a series of movies, the year should come first (thereby sorting the movies) whereas it should come after the title if it is a standalone movie.
by AleXSR700
28 May 2022, 15:18
Forum: Help and Support
Topic: Is it possible to automatically detect Marvel movies and put them in their own folder?
Replies: 20
Views: 5687

Re: Is it possible to automatically detect Marvel movies and put them in their own folder?

I am not sure which screen that is :(
I just put the code I created above into the preset and then run the preset on a file. And then the folder is not adjusted. So either it is not finding the keyword or is ignoring the search for a keyword.
by AleXSR700
28 May 2022, 15:05
Forum: Help and Support
Topic: How to use if - else if - else properly?
Replies: 8
Views: 1866

How to use if - else if - else properly?

Hello everyone, could someone help me figure out how to use if and else if/else properly with filebot? I would like to have different formatting depending on the studio. But it seems I cannot just return the full expression. I would like to have the year first, if the movie is part of a movie series...
by AleXSR700
28 May 2022, 14:49
Forum: Help and Support
Topic: Is it possible to automatically detect Marvel movies and put them in their own folder?
Replies: 20
Views: 5687

Re: Is it possible to automatically detect Marvel movies and put them in their own folder?

I tried it with Birds of Prey https://www.themoviedb.org/movie/495764-birds-of-prey-and-the-fantabulous-emancipation-of-one-harley-quinn Birds Of Prey (And The Fantabulous Emancipation Of One Harley Quinn) (2020) I also tried it with Zack Snyder's Justice League. Same problem when using the code I p...
by AleXSR700
28 May 2022, 14:45
Forum: Windows
Topic: Possible to use IMDB for movies? What do I do if info.productionCompanies doesn't work?
Replies: 7
Views: 2617

Re: Possible to use IMDB for movies? What do I do if info.productionCompanies doesn't work?

Thank you for your reply. I do not even see the Production Companies on TheMovieDB. I just see that filebot does not find the information.
Example is Suicide Squad: Birds of Prey. "DC Entertainment" does not work as filter.
by AleXSR700
28 May 2022, 13:17
Forum: Help and Support
Topic: Is it possible to automatically detect Marvel movies and put them in their own folder?
Replies: 20
Views: 5687

Re: Is it possible to automatically detect Marvel movies and put them in their own folder?

I got it almost working by using old school if then else if instead of the above short-hand. { if ('Marvel Studios' in info.productionCompanies) { return "./Marvel" } else if ('DC Entertainment' in info.productionCompanies) { return "./DC Comics" } else if ('dc extended universe'...
by AleXSR700
28 May 2022, 13:09
Forum: Windows
Topic: Possible to use IMDB for movies? What do I do if info.productionCompanies doesn't work?
Replies: 7
Views: 2617

Possible to use IMDB for movies? What do I do if info.productionCompanies doesn't work?

Hello everyone, I have been using FileBot 4.8.5 for years although I have not used in in months (Netflix and Prime have taken over mostly). Now I was doing some cleaning and wanted to use filebot to also sort my movies. Unfortunately TheMovieDB does not seem to have the same level of information (e....
by AleXSR700
27 May 2022, 22:57
Forum: Help and Support
Topic: Is it possible to automatically detect Marvel movies and put them in their own folder?
Replies: 20
Views: 5687

Re: Is it possible to automatically detect Marvel movies and put them in their own folder?

I tried a Marvel movie and it works. Then I tried a movie that matches Lucasfilms and one that matches none of the cases and I get ./script1$_run_closure1$_closure2@584bdd47/The Matrix..... So the path is a strange expression. The preset editor says nothing. It seems only the Marvel part (so the fir...
by AleXSR700
27 May 2022, 21:47
Forum: Help and Support
Topic: Is it possible to automatically detect Marvel movies and put them in their own folder?
Replies: 20
Views: 5687

Re: Is it possible to automatically detect Marvel movies and put them in their own folder?

Hello everyone, I found this helpful thread and was wondering if this can be used to add multiple filters. I thought I could simply integrate them, but this does not seem to work. Could someone help me get this working? {'Marvel Studios' in info.productionCompanies ? 'Marvel Movies' : {'DC Entertain...