aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/downloader/http.py
diff options
context:
space:
mode:
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