]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[arte] Always look for the JSON URL (Fixes #1002)
authorPhilipp Hagemeister <phihag@phihag.de>
Sun, 7 Jul 2013 23:28:19 +0000 (01:28 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Sun, 7 Jul 2013 23:28:19 +0000 (01:28 +0200)
youtube_dl/extractor/arte.py

index f5267249051e6d0e516a7b2561de8ebf62823f12..b7a2a8d48395f2ba662c6e818115f74bb0525664 100644 (file)
@@ -77,12 +77,8 @@ class ArteTvIE(InfoExtractor):
 
     def _extract_emission(self, url, video_id, lang):
         """Extract from www.arte.tv/guide"""
-        if video_id.replace('-','').isdigit():
-            json_url = 'http://org-www.arte.tv/papi/tvguide/videos/stream/player/F/%s_PLUS7-F/ALL/ALL.json' % video_id
-        else:
-            # We don't know the real id of the video, we have to search in the webpage
-            webpage = self._download_webpage(url, video_id)
-            json_url = self._html_search_regex(r'arte_vp_url="(.*?)"', webpage, 'json url')
+        webpage = self._download_webpage(url, video_id)
+        json_url = self._html_search_regex(r'arte_vp_url="(.*?)"', webpage, 'json url')
 
         json_info = self._download_webpage(json_url, video_id, 'Downloading info json')
         self.report_extraction(video_id)