youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 5744cf6c03e6f89914d44be7c5d77fca3b121bef
parent 9c48b5a193de754403f4a1ced78f6cf6b3893676
Author: Argn0 <Argn0@users.noreply.github.com>
Date:   Sat, 24 Jun 2017 20:59:15 +0200

[ign] Add another video id pattern (closes #13328)


Diffstat:
Myoutube_dl/extractor/ign.py | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git 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)