[20] small fixes

pull/811/head
meisnate12 3 years ago
parent c290a08ea4
commit b4165ac9ad

@ -15,7 +15,7 @@ jobs:
- name: Send Discord Commit Notification - name: Send Discord Commit Notification
uses: meisnate12/discord-notifications@master uses: meisnate12/discord-notifications@master
with: with:
webhook_id: ${{ secrets.BUILD_WEBHOOK_TOKEN }} webhook_id: ${{ secrets.BUILD_WEBHOOK_ID }}
webhook_token: ${{ secrets.BUILD_WEBHOOK_TOKEN }} webhook_token: ${{ secrets.BUILD_WEBHOOK_TOKEN }}
title: Plex Meta Manager Nightly Push title: Plex Meta Manager Nightly Push
commits: "true" commits: "true"

@ -1 +1 @@
1.16.2-develop19 1.16.2-develop20

@ -1583,8 +1583,11 @@ class CollectionBuilder:
if "limit" in filter_alias: if "limit" in filter_alias:
if plex_filter[filter_alias["limit"]] is None: if plex_filter[filter_alias["limit"]] is None:
raise Failed(f"{self.Type} Error: limit attribute is blank") raise Failed(f"{self.Type} Error: limit attribute is blank")
if not isinstance(plex_filter[filter_alias["limit"]], int) or plex_filter[filter_alias["limit"]] < 1: elif str(plex_filter[filter_alias["limit"]]).lower() == "all":
filter_details += "Limit: all\n"
elif not isinstance(plex_filter[filter_alias["limit"]], int) or plex_filter[filter_alias["limit"]] < 1:
raise Failed(f"{self.Type} Error: limit attribute must be an integer greater then 0") raise Failed(f"{self.Type} Error: limit attribute must be an integer greater then 0")
else:
limit = plex_filter[filter_alias["limit"]] limit = plex_filter[filter_alias["limit"]]
filter_details += f"Limit: {limit}\n" filter_details += f"Limit: {limit}\n"

@ -464,7 +464,10 @@ def parse(error, attribute, data, datatype=None, methods=None, parent=None, defa
final_dict = {} final_dict = {}
for dict_key, dict_data in value.items(): for dict_key, dict_data in value.items():
if isinstance(dict_data, dict) and dict_data: if isinstance(dict_data, dict) and dict_data:
final_dict[dict_key] = dict_data new_data = {}
for dict_data_key, dict_data_data in dict_data.items():
new_data[str(dict_data_key)] = dict_data_data
final_dict[dict_key] = new_data
else: else:
raise Failed(f"{error} Warning: {display} {dict_key} is not a dictionary") raise Failed(f"{error} Warning: {display} {dict_key} is not a dictionary")
return final_dict return final_dict

Loading…
Cancel
Save