Revert "Try better metadata replacement part 3"

This reverts commit 96deefc0e83283edfc9cd2fe6244d4aacba9bdcf.
diff --git a/theme/plugins/asfgenid.py b/theme/plugins/asfgenid.py
index 8f8e033..f1921b4 100644
--- a/theme/plugins/asfgenid.py
+++ b/theme/plugins/asfgenid.py
@@ -185,17 +185,18 @@
             parts = this_data.split('.')
             try:
                 mytype = key
-                myref = metadata
+                myref = "metadata"
                 for part in parts:
                     if isinstance(myref, dict):
-                        myref = myref[part]
+                        myref = f'{myref}["{part}"]'
                     elif isinstance(myref, list):
                         myref = f'{myref}[{part}]'
                     else:
                         myref = f'{myref}.{part}'
                     print(myref)
+                format_string = '{{{0}}}'.format(myref)
                 print(format_string)
-                new_string = myref
+                new_string = format_string.format(**metadata)
                 print(f'{{{{{m.group(1)}}}}} -> {new_string}')
             except Exception:
                 # the data expression was not found