aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/common.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-05-05 03:12:41 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-05-05 03:15:17 +0200
commit20991253334c069efac6986bb51cc28058809026 (patch)
treeee97223f3e9fea467dfd38ffc1ddc6a5a14ff51e /youtube_dl/extractor/common.py
parentb48f147d5a36b16e421b9b91fcc72b62e695c948 (diff)
downloadyoutube-dl-20991253334c069efac6986bb51cc28058809026.tar.xz
[soundcloud/generic] Add support for playlists
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r--youtube_dl/extractor/common.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index ef02b6896..10b0cbe69 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -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
+