[downloader/external] add can_download mathod for checking downloader availibilty...
[youtube-dl] / youtube_dl / downloader / external.py
index daedf66de0016076a579ce15d53ca71b39cfceb6..fe2a0198c27348746b5341853638ef4c094d2781 100644 (file)
@@ -59,6 +59,10 @@ class ExternalFD(FileDownloader):
     def supports(cls, info_dict):
         return info_dict['protocol'] in ('http', 'https', 'ftp', 'ftps')
 
+    @classmethod
+    def can_download(cls, info_dict):
+        return cls.available() and cls.supports(info_dict)
+
     def _option(self, command_option, param):
         return cli_option(self.params, command_option, param)