From 1e9969f4f517eab4077f0b03eee9ef3afa493486 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Tue, 19 Apr 2022 02:57:20 +0530 Subject: bugfix for a44ca5a470e09b5170fc9c3a46733f050fadbfae, 19a0394044bfad36cd665450271b8eb048a41c02, 77f9033095cd8e1092a80db67f2b577cf13f95a8 Closes #3472 --- yt_dlp/postprocessor/metadataparser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'yt_dlp/postprocessor/metadataparser.py') diff --git a/yt_dlp/postprocessor/metadataparser.py b/yt_dlp/postprocessor/metadataparser.py index 98885bd19..51b927b91 100644 --- a/yt_dlp/postprocessor/metadataparser.py +++ b/yt_dlp/postprocessor/metadataparser.py @@ -6,12 +6,12 @@ from ..utils import Namespace class MetadataParserPP(PostProcessor): def __init__(self, downloader, actions): - super().__init__(self, downloader) + super().__init__(downloader) self._actions = [] for f in actions: action, *args = f assert action in self.Actions - self._actions.append(action(*args)) + self._actions.append(action(self, *args)) @classmethod def validate_action(cls, action, *data): @@ -21,7 +21,7 @@ class MetadataParserPP(PostProcessor): """ if action not in cls.Actions: raise ValueError(f'{action!r} is not a valid action') - getattr(cls, action.value)(cls, *data) # So this can raise error to validate + action(cls, *data) # So this can raise error to validate @staticmethod def field_to_template(tmpl): -- cgit v1.2.3