Browse Source

[arte.tv:+7] Add one another one pattern for json vp url

totalwebcasting
Sergey M․ 10 years ago
parent
commit
c6ec6b2e8b
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/arte.py

+ 2
- 1
youtube_dl/extractor/arte.py View File

@ -78,7 +78,8 @@ class ArteTVPlus7IE(InfoExtractor):
def _extract_from_webpage(self, webpage, video_id, lang): def _extract_from_webpage(self, webpage, video_id, lang):
json_url = self._html_search_regex( json_url = self._html_search_regex(
r'arte_vp_url="(.*?)"', webpage, 'json vp url')
[r'arte_vp_url="(.*?)"', r'data-url="([^"]+)"'],
webpage, 'json vp url')
return self._extract_from_json_url(json_url, video_id, lang) return self._extract_from_json_url(json_url, video_id, lang)
def _extract_from_json_url(self, json_url, video_id, lang): def _extract_from_json_url(self, json_url, video_id, lang):


Loading…
Cancel
Save