From 7f23f02da7b3d07243d83497f4ecbee3c2346af8 Mon Sep 17 00:00:00 2001 From: Sacha Arnoud Date: Mon, 20 Sep 2021 14:36:49 +0000 Subject: [PATCH] review commetns --- youtube_dl/YoutubeDL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index c6d906f13..dc4005a18 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -1879,7 +1879,7 @@ class YoutubeDL(object): except (OSError, IOError): self.report_error('Cannot write subtitles file ' + sub_filename) return - elif sub_info.get('downloader') is not None: + elif callable(sub_info.get('downloader')): sub_info.get('downloader')(self, encodeFilename(sub_filename)) else: try: