mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 15:04:21 +00:00
replace lists with dicts
This commit is contained in:
parent
8ee749b003
commit
a7e99cb4fd
2 changed files with 7 additions and 5 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.15.1-develop41
|
||||
1.15.1-develop42
|
||||
|
|
|
@ -308,17 +308,19 @@ class MetadataFile(DataFile):
|
|||
except NotFound:
|
||||
logger.error(f"TMDb Error: Actor {role['name']} Not Found")
|
||||
elif auto_type == "trakt_user_lists":
|
||||
auto_list = []
|
||||
auto_list = {}
|
||||
for option in util.parse("Config", "data", dynamic, parent=map_name, methods=methods, datatype="list"):
|
||||
auto_list.extend(self.config.Trakt.get_user_lists(option))
|
||||
for k, v in self.config.Trakt.get_user_lists(option):
|
||||
auto_list[k] = v
|
||||
elif auto_type == "trakt_liked_lists":
|
||||
auto_list = self.config.Trakt.get_liked_lists()
|
||||
elif auto_type == "tmdb_popular_people":
|
||||
auto_list = self.config.TMDb.get_popular_people(util.parse("Config", "data", dynamic, parent=map_name, methods=methods, datatype="int", minimum=1))
|
||||
elif auto_type == "trakt_people_list":
|
||||
auto_list = []
|
||||
auto_list = {}
|
||||
for option in util.parse("Config", "data", dynamic, parent=map_name, methods=methods, datatype="list"):
|
||||
auto_list.extend(self.config.Trakt.get_people(option))
|
||||
for k, v in self.config.Trakt.get_people(option).items():
|
||||
auto_list[k] = v
|
||||
else:
|
||||
raise Failed(f"Config Error: {map_name} type attribute {dynamic[methods['type']]} invalid")
|
||||
title_format = default_title_format
|
||||
|
|
Loading…
Reference in a new issue