aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader/http.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-06-03 23:10:18 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-06-03 23:10:18 +0800
commit6800d3372f35e08dcc4d34d06601815bf0cb0a3d (patch)
treef619f599f021410b83367e80517de198f2556185 /youtube_dl/downloader/http.py
parent8f9478412424b87e4fb77be53d239c13932b078a (diff)
[YoutubeDL] Support DASH manifest downloading
Diffstat (limited to 'youtube_dl/downloader/http.py')
-rw-r--r--youtube_dl/downloader/http.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/downloader/http.py b/youtube_dl/downloader/http.py
index b7f144af9..ceacb8522 100644
--- a/youtube_dl/downloader/http.py
+++ b/youtube_dl/downloader/http.py
@@ -6,6 +6,7 @@ import socket
import time
from .common import FileDownloader
+from .dash import DashSegmentsFD
from ..compat import (
compat_urllib_request,
compat_urllib_error,
@@ -19,6 +20,9 @@ from ..utils import (
class HttpFD(FileDownloader):
def real_download(self, filename, info_dict):
+ if info_dict.get('initialization_url') and list(filter(None, info_dict.get('segment_urls', []))):
+ return DashSegmentsFD(self.ydl, self.params).real_download(filename, info_dict)
+
url = info_dict['url']
tmpfilename = self.temp_name(filename)
stream = None