[soundcloud/generic] Add support for playlists
[youtube-dl] / youtube_dl / extractor / common.py
index ef02b68966e88d8d1cbc2f9d628e5a79fe8ce3c3..10b0cbe695a68b6a3c3928a6c89125020a2fff3d 100644 (file)
@@ -548,6 +548,13 @@ class InfoExtractor(object):
             )
         formats.sort(key=_formats_key)
 
+    def http_scheme(self):
+        """ Either "https:" or "https:", depending on the user's preferences """
+        return (
+            'http:'
+            if self._downloader.params.get('prefer_insecure', False)
+            else 'https:')
+
 
 class SearchInfoExtractor(InfoExtractor):
     """
@@ -591,3 +598,4 @@ class SearchInfoExtractor(InfoExtractor):
     @property
     def SEARCH_KEY(self):
         return self._SEARCH_KEY
+