[nationalgeographic] restore http formats
authorRemita Amine <remitamine@gmail.com>
Sun, 3 Jul 2016 13:06:24 +0000 (14:06 +0100)
committerRemita Amine <remitamine@gmail.com>
Sun, 3 Jul 2016 13:10:25 +0000 (14:10 +0100)
there was a misunderstanding about the reason of 403 response
the problem happen only when the user use aria2c as a downloader
https://github.com/rg3/youtube-dl/commit/a1f6f5c768a506674928530990b7f95c605eac2c#commitcomment-18107559

youtube_dl/extractor/nationalgeographic.py

index 6eabd2278b68f06b18a5be2f1d89ba46629c7b26..e717abb9fa44fbb70b7cd8d7068e989b662648de 100644 (file)
@@ -79,10 +79,6 @@ class NationalGeographicChannelIE(ThePlatformIE):
                 'upload_date': '20160322',
                 'uploader': 'NEWA-FNG-NGTV',
             },
-            'params': {
-                # m3u8 download
-                'skip_download': True,
-            },
             'add_ie': ['ThePlatform'],
         },
         {
@@ -97,10 +93,6 @@ class NationalGeographicChannelIE(ThePlatformIE):
                 'upload_date': '20160330',
                 'uploader': 'NEWA-FNG-NGTV',
             },
-            'params': {
-                # m3u8 download
-                'skip_download': True,
-            },
             'add_ie': ['ThePlatform'],
         },
     ]
@@ -113,7 +105,7 @@ class NationalGeographicChannelIE(ThePlatformIE):
             webpage, 'release url')
         query = {
             'mbr': 'true',
-            'manifest': 'm3u',
+            'switch': 'http',
         }
         is_auth = self._search_regex(r'video_is_auth\s*=\s*"([^"]+)"', webpage, 'is auth', fatal=False)
         if is_auth == 'auth':