aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/nationalgeographic.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-07-18 06:33:50 +0600
committerSergey M․ <dstftw@gmail.com>2015-07-18 06:33:50 +0600
commitf29ac588ddb5b36ebfe38e3a809a70cf0cb543a6 (patch)
treec01284ddfc0f0e70ef388c7a95d43801adbea9ef /youtube_dl/extractor/nationalgeographic.py
parent06966677343c4bbb51e8da3f0ed4d4985bdf54f2 (diff)
[nationalgeographics] Fix extraction (Closes #6262)
Diffstat (limited to 'youtube_dl/extractor/nationalgeographic.py')
-rw-r--r--youtube_dl/extractor/nationalgeographic.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/extractor/nationalgeographic.py b/youtube_dl/extractor/nationalgeographic.py
index c18640c5a..f793b72f5 100644
--- a/youtube_dl/extractor/nationalgeographic.py
+++ b/youtube_dl/extractor/nationalgeographic.py
@@ -25,8 +25,11 @@ class NationalGeographicIE(InfoExtractor):
name = url_basename(url)
webpage = self._download_webpage(url, name)
- feed_url = self._search_regex(r'data-feed-url="([^"]+)"', webpage, 'feed url')
- guid = self._search_regex(r'data-video-guid="([^"]+)"', webpage, 'guid')
+ feed_url = self._search_regex(
+ r'data-feed-url="([^"]+)"', webpage, 'feed url')
+ guid = self._search_regex(
+ r'id="(?:videoPlayer|player-container)"[^>]+data-guid="([^"]+)"',
+ webpage, 'guid')
feed = self._download_xml('%s?byGuid=%s' % (feed_url, guid), name)
content = feed.find('.//{http://search.yahoo.com/mrss/}content')