[downloader/ffmpeg] Fix bug in initializing `FFmpegPostProcessor`

When `FFmpegFD` initializes the PP, it passes `self` as the `downloader`
But it does not have a `_postprocessor_hooks` attribute

Closes #1211
pull/1226/head
pukkandan 2021-10-10 02:23:42 +05:30
rodzic a170527e1f
commit aa9a92fdbb
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0F00D95A001F4698
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -90,9 +90,7 @@ class PostProcessor(metaclass=PostProcessorMetaClass):
def set_downloader(self, downloader):
"""Sets the downloader for this PP."""
self._downloader = downloader
if not downloader:
return
for ph in downloader._postprocessor_hooks:
for ph in getattr(downloader, '_postprocessor_hooks', []):
self.add_progress_hook(ph)
@staticmethod