Replies: 3 comments 1 reply
-
So this is what the to do this in a dynamic collection you need to edit the template and pass in the proper name_mappings See the Franchise PMM Default for a complicated example of how it works but basically you need something like this templates:
collection:
optional:
- name_mapping
tmdb_collection_details: <<value>>
minimum_items: 2
name_mapping: <<name_mapping>>
dynamic_collections:
TMDb Collections:
type: tmdb_collection
template: collection
template_variables:
name_mapping:
1565: 28 Days-Weeks Later
508334: Angels in the
115838: Escape From
386534: Has Fallen
87359: Mission Impossible
133352: Resident Evil Biohazard
115575: Star Trek Alternate Reality
115570: Star Trek The Next Generation
151: Star Trek The Original Series
10: Star Wars Skywalker Saga |
Beta Was this translation helpful? Give feedback.
-
I have tried what you suggested, but in doing so the script now does not match any collection directories except for those listed in the name_mapping statement and reverts all of them back to the URL instead. I was trying to avoid having to write out name mappings for every single collection dynamically created when items are added to the library. |
Beta Was this translation helpful? Give feedback.
-
I thought it might be something like that. That worked nicely. Now that you've pointed me towards the franchise config, I've taken that and amended it to include some customisations to collections in my personal library (such as adding in the solo and rogue one to the star wars collection, Prey to the Predators collection and Men in black international to the Men in Black collection etc). That has allowed me to fix up my collections across multiple plex servers now. Thank you. saving me a lot of time and effort. :) |
Beta Was this translation helpful? Give feedback.
-
Version Number
1.18.3
What branch are you on?
master
Describe the Bug
When placing a poster in the assets folder for TMDB Collections to grab during processing the script fails back to using the URL poster instead of the file poster. It seems that the Collection folder cannot be found because Collection Name (and therefore the collection folder in the Asset folder) contains a special character.
For example:
Mission: Impossible Collection
Family Guy Trilogy Collection: Laugh It Up, Fuzzball!
This problem does not present itself for Collections that do not contain special characters.
Relevant Collection/Overlay/Playlist Definition
Logs
https://gist.github.com/jennec/501566a515eb8c0799cd6abcc891c389
Beta Was this translation helpful? Give feedback.
All reactions