Browse Source

[ninegag] Fix extraction

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

+ 1
- 1
youtube_dl/extractor/ninegag.py View File

@ -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…
Cancel
Save