]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/postprocessor/metadataparser.py
[compat, networking] Deprecate old functions (#2861)
[yt-dlp.git] / yt_dlp / postprocessor / metadataparser.py
index f574f23300e0cb7ba822cdc597e197b04614ca61..1d6054294eaaa4d80374950e099c83f191631768 100644 (file)
@@ -1,7 +1,7 @@
 import re
 
 from .common import PostProcessor
-from ..utils import Namespace, filter_dict
+from ..utils import Namespace, filter_dict, function_with_repr
 
 
 class MetadataParserPP(PostProcessor):
@@ -60,6 +60,7 @@ def run(self, info):
             f(info)
         return [], info
 
+    @function_with_repr
     def interpretter(self, inp, out):
         def f(info):
             data_to_parse = self._downloader.evaluate_outtmpl(template, info)
@@ -76,6 +77,7 @@ def f(info):
         out_re = re.compile(self.format_to_regex(out))
         return f
 
+    @function_with_repr
     def replacer(self, field, search, replace):
         def f(info):
             val = info.get(field)