Jump to content
2 votes
Guests cannot vote

Use Keywords In Movie Filename To Auto Select Custom Sequences

  • Views: 2,772
  • Submitted:

I know we can select custom sequences by genre, but would it be possible for a future release of PreShow Experience to include the ability to add a keyword to a sequence that PSE would identify in a movie's filename and then auto select the associated sequence? For example, for a movie like Elf (Will Ferrell) we could name it Elf.Christmas.mkv and PreShow Experience would see the ".Christmas." keyword in the filename and select the Christmas sequence (which a future release could allow you to also specify Christmas trivia and Christmas music). This would allow very easy customization to ensure the sequence of your choice is always selected for each title you choose. If no keyword is present, PSE would simply use a default sequence of your choice.

I could see myself using this for all kinds of films. For example:

".Halloween." (The more family friendly films)

".Horror." (Not for kids)

".StarWars." (Speaks for itself)

".SciFi." (For generic science fiction movies)

".Kids." (Films geared toward a younger audience)

".DCEU." (Films in the DC Extended Universe)

".ThrowBack." (For your favorite classics / nostalgic films)

The possibilities could be endless. 😁

Edited by MidnightWatcher

User Feedback

Recommended Comments

I'm not sure I'd want to have to go through my entire library and rename all my movie files when the tag is likely already in your .nfo file, and if it's not, it can just be added.

Edited by OTA
Link to comment
Share on other sites

  • PreShow Supporter

You wouldnt have to if you chose not to and can continue based on genre. I'd probably update a few dozen filenames with keywords, mostly Christmas films and kids films, but I'd also have trailer intros & home theater intros created using a Star Wars theme, a UFO theme, a Transformers theme and a couple more.

Edited by MidnightWatcher
  • Like 1
Link to comment
Share on other sites

you can do this using tags in kodi. i am using this to accomplish your goal right now. i am using it to trigger sequences for boutique bumpers (Shout / Scream Factory now - i plan on making ones for Vinegar Syndrome and others soon)

I would like this implementation if it could be operated like the audio bumpers.

based on the genre, in sequence, have it play a certain bumper that matches that item.

instead of DTS, Atmos, etc, you could have Christmas, Horror, etc.
maybe a movie.title.PSE_foldername format where it parses the foldername and gets random content from that folder. 

it would need some kind of PSE indicator as Christmas is in a lot of titles. this would prevent unintended triggering of a bumper.

Edited by garzilla
  • Like 1
Link to comment
Share on other sites

  • PreShow Supporter

I'd recommend the PSE indicator to require the usage of "." before and after the keyword, so not just "Christmas" but ".Christmas."

Link to comment
Share on other sites

re: bracketing keywords with periods, there's a long tradition for scene releases to put dots between each word of a title as well as between other parts of the file name that convey info about year, resolution, etc.  I suspect many may have adopted the same naming style for perfectly legal rips of media they own.  I'd prefer to see something very specific such as PSE_christmas, PSE_notforkids, etc, to avoid confusion.

Link to comment
Share on other sites

Any thought to using Tags, PSE should be able to access these and we don't have crazy file names.  Just a thought

  • Like 1
Link to comment
Share on other sites

  • PreShow Supporter
5 hours ago, hslansky said:

Any thought to using Tags, PSE should be able to access these and we don't have crazy file names.  Just a thought

I think you and garzilla are right about just using tags. I'll have to give that a shot.

  • Like 1
Link to comment
Share on other sites

  • PreShow Supporter
On 3/8/2023 at 3:34 AM, garzilla said:

Let me know if you have any questions on setting it up

Is there a way to prioritize what PSE checks first (eg. Tags first, then Genre) before selecting what sequence to use? I tried a quick test using "StarWars" as a tag (updated the NFO accordingly and rescanned back into the library) to select a Star Wars sequence but PSE appeared to select the sequence based on genre.

Link to comment
Share on other sites

IIRC the search is weighted ... so might need two conditions matching 

Like genre: sci-fi and tag: StarWars

This sequence matches 2 conditions vs a sequence that only has one condition. 

The sequence with conditions like the one below would play instead on a sequence setting only horror.

20230315_193206.jpg

Link to comment
Share on other sites

  • PreShow Supporter

Yeah, I added a "Star Wars" genre as well as a "Star Wars" tag but it still used the default sequence. Might be a bug somewhere in 0.1.2 that needs addressing?

Edited by MidnightWatcher
Link to comment
Share on other sites

  • PreShow Supporter

@MidnightWatcher If you don't mind shoot me over some screenshots in a DM on Discord or here with what exactly you have setup and I'll see if I can figure out why it is doing what it is so we can go from there. 

Link to comment
Share on other sites

  • PreShow Supporter
5 hours ago, DexDeadly said:

@MidnightWatcher If you don't mind shoot me over some screenshots in a DM on Discord or here with what exactly you have setup and I'll see if I can figure out why it is doing what it is so we can go from there. 

Here's the conditions menu for my default sequence and then the "Star Wars" sequence. My thinking was to have the default sequence flag for all genres identified in the conditions, except for those that I use for my "Scary" sequence (Thriller/Horror) and the "Star Wars" sequence. The "Scary" sequence I had no issues with (I removed the Thriller and Horror genres from the default sequence), but the "Star Wars" sequence wouldn't get selected with the conditions identified in the second screenshot.

20230317_233523.thumb.jpg.35fb22edeee11a8557c8d73326df42a8.jpg

20230317_233547.thumb.jpg.972b66777c3bde956b759c71bf37d5bc.jpg

What got it eventually "working" was to remove all the Genres from the NFO files for the Star Wars movies that were still included in the default sequence and just leave "Star Wars" as the genre (they initially included "Action" and "Science Fiction" genres, so that may have forced PSE to trigger the default sequence, despite the StarWars tag). That way, the Star Wars films no longer meet any of the conditions set for my default sequence. I'm sure there's an easier way to get this done that I may be missing. Perhaps we need a category option that states "Any Except ..." ?

Edited by MidnightWatcher
Link to comment
Share on other sites

  • Administrator

Modifying this has been on my to-do list for a long time.  My goal is to make it so that a user can edit their own order.  But for now tags have been moved up the priority list so that the other genres don't have to be edited out.

Here is the previous priority order

  • type
  • ratings
  • year
  • studio
  • director
  • actor
  • genre
  • tags
  • dates

And here is the updated priority order

  • type
  • ratings
  • tags
  • year
  • studio
  • director
  • actor
  • genre
  • dates

This will be in the next update.

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...