[131] fix dictionary changed size during iteration

This commit is contained in:
meisnate12 2022-10-17 23:30:22 -04:00
parent 91f3177a54
commit 6c0092c73b
3 changed files with 3 additions and 4 deletions

View file

@ -1 +1 @@
1.17.3-develop130
1.17.3-develop131

View file

@ -273,6 +273,7 @@ html_theme_options = {
("Common Sense Age Ratings", "defaults/overlays/commonsense"),
("Direct Play Only", "defaults/overlays/direct_play"),
("Episode Info", "defaults/overlays/episode_info"),
("FlixPatrol Top", "defaults/overlays/flixpatrol"),
("MediaStinger", "defaults/overlays/mediastinger"),
("Ratings", "defaults/overlays/ratings"),
("Resolution/Edition", "defaults/overlays/resolution"),

View file

@ -406,9 +406,7 @@ class DataFile:
for key, value in variables.copy().items():
variables[f"{key}_encoded"] = requests.utils.quote(str(value))
for k in default:
if k in variables:
default.pop(k)
default = {k: v for k, v in default.items() if k not in variables}
optional = [o for o in optional if o not in variables and o not in default]
logger.debug("")