[youtube] Download DASH manifest by default (Closes #3887)
authorPhilipp Hagemeister <phihag@phihag.de>
Sun, 12 Oct 2014 22:03:08 +0000 (00:03 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Sun, 12 Oct 2014 22:03:08 +0000 (00:03 +0200)
youtube_dl/extractor/youtube.py
youtube_dl/options.py

index 9041cfa8770897851d06026942517a103df2a639..98d7fb5fceb103b76a7a61c9896c48fbebec290b 100644 (file)
@@ -938,7 +938,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
             raise ExtractorError('no conn, hlsvp or url_encoded_fmt_stream_map information found in video info')
 
         # Look for the DASH manifest
-        if (self._downloader.params.get('youtube_include_dash_manifest', False)):
+        if self._downloader.params.get('youtube_include_dash_manifest', True):
             try:
                 # The DASH manifest used needs to be the one from the original video_webpage.
                 # The one found in get_video_info seems to be using different signatures.
index a06850e1c606a417aa6d0ffb3083f608a30a5983..649361bde3a9eee3bd1222393b069ffb8ac0976d 100644 (file)
@@ -225,10 +225,6 @@ def parseOpts(overrideArguments=None):
         '--include-ads',
         dest='include_ads', action='store_true',
         help='Download advertisements as well (experimental)')
-    selection.add_option(
-        '--youtube-include-dash-manifest',
-        action='store_true', dest='youtube_include_dash_manifest', default=False,
-        help='Try to download the DASH manifest on YouTube videos (experimental)')
 
     authentication = optparse.OptionGroup(parser, 'Authentication Options')
     authentication.add_option(
@@ -273,6 +269,14 @@ def parseOpts(overrideArguments=None):
         '-F', '--list-formats',
         action='store_true', dest='listformats',
         help='list all available formats')
+    video_format.add_option(
+        '--youtube-include-dash-manifest',
+        action='store_true', dest='youtube_include_dash_manifest', default=True,
+        help=optparse.SUPPRESS_HELP)
+    video_format.add_option(
+        '--youtube-skip-dash-manifest',
+        action='store_false', dest='youtube_include_dash_manifest',
+        help='Do not download the DASH manifest on YouTube videos')
 
     subtitles = optparse.OptionGroup(parser, 'Subtitle Options')
     subtitles.add_option(