From 8ae0fff1d761058b9920a897717e1730fb10a427 Mon Sep 17 00:00:00 2001 From: derrod Date: Sat, 9 May 2020 11:04:57 +0200 Subject: [PATCH] [models] Support __setitem__ in CustomFields --- legendary/models/manifest.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/legendary/models/manifest.py b/legendary/models/manifest.py index d0809f9..30a9f02 100644 --- a/legendary/models/manifest.py +++ b/legendary/models/manifest.py @@ -637,6 +637,9 @@ class CustomFields: # this could probably be replaced with just a dict def __getitem__(self, item): return self._dict.get(item, None) + def __setitem__(self, key, value): + self._dict[key] = value + def __str__(self): return str(self._dict)