[131] fix dictionary changed size during iteration

pull/1120/head
meisnate12 2 years ago
parent 91f3177a54
commit 6c0092c73b

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

@ -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"),

@ -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("")

Loading…
Cancel
Save