mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[95] set test
This commit is contained in:
parent
7163acd05f
commit
17bebed143
5 changed files with 185 additions and 5 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.18.3-develop94
|
||||
1.18.3-develop95
|
||||
|
|
103
defaults/metadata/mcu.yml
Normal file
103
defaults/metadata/mcu.yml
Normal file
|
@ -0,0 +1,103 @@
|
|||
external_templates:
|
||||
pmm: templates
|
||||
template_variables:
|
||||
set: mcu
|
||||
|
||||
metadata:
|
||||
"Captain America: The First Avenger (2011)":
|
||||
template: {name: mcu, id: 1771}
|
||||
"Marvel One-Shot: Agent Carter (2013)":
|
||||
template: {name: mcu, id: 211387}
|
||||
"Captain Marvel (2019)":
|
||||
template: {name: mcu, id: 299537}
|
||||
"Iron Man (2008)":
|
||||
template: {name: mcu, id: 1726}
|
||||
"Iron Man 2 (2010)":
|
||||
template: {name: mcu, id: 10138}
|
||||
"The Incredible Hulk (2008)":
|
||||
template: {name: mcu, id: 1724}
|
||||
"Marvel One-Shot: A Funny Thing Happened on the Way to Thor's Hammer (2011)":
|
||||
template: {name: mcu, id: 76535}
|
||||
"Thor (2011)":
|
||||
template: {name: mcu, id: 10195}
|
||||
"Marvel One-Shot: The Consultant (2011)":
|
||||
template: {name: mcu, id: 76122}
|
||||
The Avengers (2012)":
|
||||
template: {name: mcu, id: 24428}
|
||||
"Marvel One-Shot: Item 47 (2012)":
|
||||
template: {name: mcu, id: 119569}
|
||||
"Iron Man 3 (2013)":
|
||||
template: {name: mcu, id: 68721}
|
||||
"Marvel One-Shot: All Hail the King (2014)":
|
||||
template: {name: mcu, id: 253980}
|
||||
"Thor: The Dark World (2013)":
|
||||
template: {name: mcu, id: 76338}
|
||||
"Captain America: The Winter Soldier (2014)":
|
||||
template: {name: mcu, id: 100402}
|
||||
"Guardians of the Galaxy (2014)":
|
||||
template: {name: mcu, id: 118340}
|
||||
"Guardians of the Galaxy Vol. 2 (2017)":
|
||||
template: {name: mcu, id: 283995}
|
||||
"Avengers: Age of Ultron (2015)":
|
||||
template: {name: mcu, id: 99861}
|
||||
"Ant-Man (2015)":
|
||||
template: {name: mcu, id: 102899}
|
||||
"Captain America: Civil War (2016)":
|
||||
template: {name: mcu, id: 271110}
|
||||
"Black Panther (2018)":
|
||||
template: {name: mcu, id: 284054}
|
||||
"Black Widow (2021)":
|
||||
template: {name: mcu, id: 497698}
|
||||
"Spider-Man: Homecoming (2017)":
|
||||
template: {name: mcu, id: 315635}
|
||||
"Doctor Strange (2016)":
|
||||
template: {name: mcu, id: 284052}
|
||||
"Thor: Ragnarok (2017)":
|
||||
template: {name: mcu, id: 284053}
|
||||
"Ant-Man and the Wasp (2018)":
|
||||
template: {name: mcu, id: 363088}
|
||||
"Avengers: Infinity War (2018)":
|
||||
template: {name: mcu, id: 299536}
|
||||
"Avengers: Endgame (2019)":
|
||||
template: {name: mcu, id: 299534}
|
||||
"Spider-Man: Far From Home (2019)":
|
||||
template: {name: mcu, id: 429617}
|
||||
"Spider-Man: No Way Home (2021)":
|
||||
template: {name: mcu, id: 634649}
|
||||
"Spider-Man: No Way Home (The More Fun Stuff Version) (2021)":
|
||||
template: {name: mcu, id: 634649}
|
||||
edition_contains: Fun Stuff
|
||||
"Shang-Chi and the Legend of the Ten Rings (2021)":
|
||||
template: {name: mcu, id: 566525}
|
||||
"Eternals (2021)":
|
||||
template: {name: mcu, id: 524434}
|
||||
"Doctor Strange in the Multiverse of Madness (2022)":
|
||||
template: {name: mcu, id: 453395}
|
||||
"Thor: Love and Thunder (2022)":
|
||||
template: {name: mcu, id: 616037}
|
||||
"Black Panther: Wakanda Forever (2022)":
|
||||
template: {name: mcu, id: 505642}
|
||||
"The Marvels (2023)":
|
||||
template: {name: mcu, id: 609681}
|
||||
"The Guardians of the Galaxy Holiday Special (2022)":
|
||||
template: {name: mcu, id: 774752}
|
||||
"Ant-Man and the Wasp: Quantumania (2023)":
|
||||
template: {name: mcu, id: 640146}
|
||||
"Guardians of the Galaxy Volume 3 (2023)":
|
||||
template: {name: mcu, id: 447365}
|
||||
"One Shot: Peter's To-Do List"
|
||||
template: {name: mcu, id: 758025}
|
||||
"One Shot: Team Darryl"
|
||||
template: {name: mcu, id: 505945}
|
||||
"One Shot: Team Thor"
|
||||
template: {name: mcu, id: 413279}
|
||||
"One Shot: Team Thor Part 2"
|
||||
template: {name: mcu, id: 441829}
|
||||
"Fantastic Four (2025)":
|
||||
template: {name: mcu, id: 617126}
|
||||
"Blade (2024)":
|
||||
template: {name: mcu, id: 617127}
|
||||
"Deadpool 3 (2024)":
|
||||
template: {name: mcu, id: 533535}
|
||||
"Captain America: New World Order (2024)":
|
||||
template: {name: mcu, id: 822119}
|
24
defaults/metadata/templates.yml
Normal file
24
defaults/metadata/templates.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
templates:
|
||||
|
||||
images:
|
||||
optional:
|
||||
- file
|
||||
- url
|
||||
- git
|
||||
- repo
|
||||
- style
|
||||
conditionals:
|
||||
pmm:
|
||||
conditions:
|
||||
- file.exists: false
|
||||
url.exists: false
|
||||
git.exists: false
|
||||
repo.exists: false
|
||||
value: sets/<<set>>/<<style>>
|
||||
mapping_id: <<id>>
|
||||
image_set:
|
||||
pmm: <<pmm>>
|
||||
file: <<file>>
|
||||
url: <<url>>
|
||||
git: <<git>>
|
||||
repo: <<repo>>
|
49
defaults/sets/mcu/RedHeadJedi.yml
Normal file
49
defaults/sets/mcu/RedHeadJedi.yml
Normal file
|
@ -0,0 +1,49 @@
|
|||
############################################
|
||||
# #
|
||||
# Marvel Cinematic Universe #
|
||||
# Image Credit to RedHeadJedi #
|
||||
# https://theposterdb.com/set/4475 #
|
||||
# #
|
||||
############################################
|
||||
|
||||
## Source List: https://trakt.tv/users/donxy/lists/marvel-cinematic-universe?display=movie&sort=rank,asc
|
||||
|
||||
set:
|
||||
"Captain America: The First Avenger (2011)": {poster_tpdb: 9778}
|
||||
"Captain Marvel (2019)": {poster_tpdb: 796}
|
||||
"Iron Man (2008)": {poster_tpdb: 9773}
|
||||
"Iron Man 2 (2010)": {poster_tpdb: 9776}
|
||||
"The Incredible Hulk (2008)": {poster_tpdb: 9775}
|
||||
"Thor (2011)": {poster_tpdb: 9777}
|
||||
"The Avengers (2012)": {poster_tpdb: 9779}
|
||||
"Iron Man 3 (2013)": {poster_tpdb: 9780}
|
||||
"Thor: The Dark World (2013)": {poster_tpdb: 9781}
|
||||
"Captain America: The Winter Soldier (2014)": {poster_tpdb: 9783}
|
||||
"Guardians of the Galaxy (2014)": {poster_tpdb: 9784}
|
||||
"Guardians of the Galaxy Vol. 2 (2017)": {poster_tpdb: 9789}
|
||||
"Avengers: Age of Ultron (2015)": {poster_tpdb: 9785}
|
||||
"Ant-Man (2015)": {poster_tpdb: 9786}
|
||||
"Captain America: Civil War (2016)": {poster_tpdb: 9787}
|
||||
"Black Panther (2018)": {poster_tpdb: 9792}
|
||||
"Black Widow (2021)": {poster_tpdb: 54982}
|
||||
"Spider-Man: Homecoming (2017)": {poster_tpdb: 9790}
|
||||
"Doctor Strange (2016)": {poster_tpdb: 9788}
|
||||
"Thor: Ragnarok (2017)": {poster_tpdb: 9791}
|
||||
"Ant-Man and the Wasp (2018)": {poster_tpdb: 9795}
|
||||
"Avengers: Infinity War (2018)": {poster_tpdb: 9794}
|
||||
"Avengers: Endgame (2019)": {poster_tpdb: 9797}
|
||||
"Spider-Man: Far From Home (2019)": {poster_tpdb: 9798}
|
||||
"Spider-Man: No Way Home (2021)": {poster_tpdb: 188475}
|
||||
"Shang-Chi and the Legend of the Ten Rings (2021)": {poster_tpdb: 170437}
|
||||
"Eternals (2021)": {poster_tpdb: 153775}
|
||||
"Doctor Strange in the Multiverse of Madness (2022)": {poster_tpdb: 234599}
|
||||
"Thor: Love and Thunder (2022)": {poster_tpdb: 248629}
|
||||
"Black Panther: Wakanda Forever (2022)": {poster_tpdb: 286152}
|
||||
"The Guardians of the Galaxy Holiday Special (2022)": {poster_tpdb: 286156}
|
||||
"Ant-Man and the Wasp: Quantumania (2023)": {poster_tpdb: 320500}
|
||||
"Werewolf by Night (2022)": {poster_tpdb: 273729}
|
||||
"Marvel One-Shot: Agent Carter (2013)": {poster_tpdb: 157171}
|
||||
"Marvel One-Shot: A Funny Thing Happened on the Way to Thor's Hammer (2011)": {poster_tpdb: 208135}
|
||||
"Marvel One-Shot: The Consultant (2011)": {poster_tpdb: 157169}
|
||||
"Marvel One-Shot: Item 47 (2012)": {poster_tpdb: 157170}
|
||||
"Marvel One-Shot: All Hail the King (2014)": {poster_tpdb: 208136}
|
|
@ -96,7 +96,7 @@ class DataFile:
|
|||
else:
|
||||
return data
|
||||
|
||||
def load_file(self, file_type, file_path, overlay=False, translation=False):
|
||||
def load_file(self, file_type, file_path, overlay=False, metadata=False, translation=False):
|
||||
if translation:
|
||||
if file_path.endswith(".yml"):
|
||||
file_path = file_path[:-4]
|
||||
|
@ -117,15 +117,19 @@ class DataFile:
|
|||
yaml = YAML(input_data=response.content, check_empty=True)
|
||||
else:
|
||||
if file_type == "PMM Default":
|
||||
if not overlay and file_path.startswith(("movie/", "chart/", "award/")):
|
||||
if not overlay and not metadata and file_path.startswith(("movie/", "chart/", "award/")):
|
||||
file_path = file_path[6:]
|
||||
elif not overlay and file_path.startswith(("show/", "both/")):
|
||||
elif not overlay and not metadata and file_path.startswith(("show/", "both/")):
|
||||
file_path = file_path[5:]
|
||||
elif overlay and file_path.startswith("overlays/"):
|
||||
elif overlay and not metadata and file_path.startswith("overlays/"):
|
||||
file_path = file_path[9:]
|
||||
elif metadata and not overlay and file_path.startswith("metadata/"):
|
||||
file_path = file_path[9:]
|
||||
defaults_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "defaults")
|
||||
if overlay:
|
||||
defaults_path = os.path.join(defaults_path, "overlays")
|
||||
elif metadata:
|
||||
defaults_path = os.path.join(defaults_path, "metadata")
|
||||
if os.path.exists(os.path.join(defaults_path, file_path)):
|
||||
file_path = os.path.join(defaults_path, file_path)
|
||||
elif self.library:
|
||||
|
|
Loading…
Reference in a new issue