aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArgn0 <Argn0@users.noreply.github.com>2017-06-24 20:59:15 +0200
committerSergey M <dstftw@gmail.com>2017-06-25 01:59:15 +0700
commit5744cf6c03e6f89914d44be7c5d77fca3b121bef (patch)
tree899a3e8e30fd9e0d7bf74528f9ce39d2713d92cf
parent9c48b5a193de754403f4a1ced78f6cf6b3893676 (diff)
downloadyoutube-dl-5744cf6c03e6f89914d44be7c5d77fca3b121bef.tar.xz
[ign] Add another video id pattern (closes #13328)
-rw-r--r--youtube_dl/extractor/ign.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/youtube_dl/extractor/ign.py b/youtube_dl/extractor/ign.py
index c45c68c1d..c1367cf51 100644
--- a/youtube_dl/extractor/ign.py
+++ b/youtube_dl/extractor/ign.py
@@ -89,6 +89,11 @@ class IGNIE(InfoExtractor):
'url': 'http://me.ign.com/ar/angry-birds-2/106533/video/lrd-ldyy-lwl-lfylm-angry-birds',
'only_matching': True,
},
+ {
+ # videoId pattern
+ 'url': 'http://www.ign.com/articles/2017/06/08/new-ducktales-short-donalds-birthday-doesnt-go-as-planned',
+ 'only_matching': True,
+ },
]
def _find_video_id(self, webpage):
@@ -98,6 +103,8 @@ class IGNIE(InfoExtractor):
r'data-video-id="(.+?)"',
r'<object id="vid_(.+?)"',
r'<meta name="og:image" content=".*/(.+?)-(.+?)/.+.jpg"',
+ r'videoId&quot;\s*:\s*&quot;(.+?)&quot;',
+ r'videoId["\']\s*:\s*["\']([^"\']+?)["\']',
]
return self._search_regex(res_id, webpage, 'video id', default=None)