mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-13 00:07:13 +00:00
[13] second mal fix
This commit is contained in:
parent
92ea349d11
commit
e7d30b5d3b
2 changed files with 4 additions and 4 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
1.17.0-develop12
|
1.17.0-develop13
|
||||||
|
|
|
@ -1182,17 +1182,17 @@ class CollectionBuilder:
|
||||||
genre_list = util.parse(self.Type, "genre", dict_data, datatype="commalist", methods=dict_methods, parent=method_name)
|
genre_list = util.parse(self.Type, "genre", dict_data, datatype="commalist", methods=dict_methods, parent=method_name)
|
||||||
final_genres = [str(self.config.MyAnimeList.genres[g]) for g in genre_list if g in self.config.MyAnimeList.genres]
|
final_genres = [str(self.config.MyAnimeList.genres[g]) for g in genre_list if g in self.config.MyAnimeList.genres]
|
||||||
final_attributes["genres"] = ",".join(final_genres)
|
final_attributes["genres"] = ",".join(final_genres)
|
||||||
final_text += f"\nGenre: {' or '.join([self.config.MyAnimeList.genres[g] for g in final_genres])}"
|
final_text += f"\nGenre: {' or '.join([str(self.config.MyAnimeList.genres[g]) for g in final_genres])}"
|
||||||
if "genre.not" in dict_methods:
|
if "genre.not" in dict_methods:
|
||||||
genre_list = util.parse(self.Type, "genre.not", dict_data, datatype="commalist", methods=dict_methods, parent=method_name)
|
genre_list = util.parse(self.Type, "genre.not", dict_data, datatype="commalist", methods=dict_methods, parent=method_name)
|
||||||
final_genres = [str(self.config.MyAnimeList.genres[g]) for g in genre_list if g in self.config.MyAnimeList.genres]
|
final_genres = [str(self.config.MyAnimeList.genres[g]) for g in genre_list if g in self.config.MyAnimeList.genres]
|
||||||
final_attributes["genres_exclude"] = ",".join(final_genres)
|
final_attributes["genres_exclude"] = ",".join(final_genres)
|
||||||
final_text += f"\nNot Genre: {' or '.join([self.config.MyAnimeList.genres[g] for g in final_genres])}"
|
final_text += f"\nNot Genre: {' or '.join([str(self.config.MyAnimeList.genres[g]) for g in final_genres])}"
|
||||||
if "studio" in dict_methods:
|
if "studio" in dict_methods:
|
||||||
studio_list = util.parse(self.Type, "studio", dict_data, datatype="commalist", methods=dict_methods, parent=method_name)
|
studio_list = util.parse(self.Type, "studio", dict_data, datatype="commalist", methods=dict_methods, parent=method_name)
|
||||||
final_studios = [str(self.config.MyAnimeList.studios[s]) for s in studio_list if s in self.config.MyAnimeList.studios]
|
final_studios = [str(self.config.MyAnimeList.studios[s]) for s in studio_list if s in self.config.MyAnimeList.studios]
|
||||||
final_attributes["producers"] = ",".join(final_studios)
|
final_attributes["producers"] = ",".join(final_studios)
|
||||||
final_text += f"\nStudio: {' or '.join([self.config.MyAnimeList.studios[s] for s in final_studios])}"
|
final_text += f"\nStudio: {' or '.join([str(self.config.MyAnimeList.studios[s]) for s in final_studios])}"
|
||||||
if "content_rating" in dict_methods:
|
if "content_rating" in dict_methods:
|
||||||
final_attributes["rating"] = util.parse(self.Type, "content_rating", dict_data, methods=dict_methods, parent=method_name, options=mal.search_ratings)
|
final_attributes["rating"] = util.parse(self.Type, "content_rating", dict_data, methods=dict_methods, parent=method_name, options=mal.search_ratings)
|
||||||
final_text += f"\nContent Rating: {final_attributes['rating']}"
|
final_text += f"\nContent Rating: {final_attributes['rating']}"
|
||||||
|
|
Loading…
Reference in a new issue