mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-13 16:57:28 +00:00
[ninegag] Fix extraction
This commit is contained in:
parent
459af43494
commit
1aac03797e
@ -47,7 +47,7 @@ class NineGagIE(InfoExtractor):
|
||||
webpage = self._download_webpage(url, display_id)
|
||||
|
||||
post_view = json.loads(self._html_search_regex(
|
||||
r'var postView = new app\.PostView\({\s*post:\s*({.+?}),', webpage, 'post view'))
|
||||
r'var postView = new app\.PostView\({\s*post:\s*({.+?}),\s*posts:\s*prefetchedCurrentPost', webpage, 'post view'))
|
||||
|
||||
youtube_id = post_view['videoExternalId']
|
||||
title = post_view['title']
|
||||
|
Loading…
Reference in New Issue
Block a user