diff options
| author | Sergey M․ <dstftw@gmail.com> | 2019-09-29 21:57:08 +0700 | 
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2019-09-29 21:57:08 +0700 | 
| commit | 72fd4d0c6a926b4755dfb02a39c76766b0589213 (patch) | |
| tree | 5f3a5d45bd6262efe3bb0b14715a9f2b1b6fc5f1 | |
| parent | f4b865c6136547a5af814526b65c08c89dbe3a14 (diff) | |
[nonktube] Fix extraction (closes #22544)
| -rw-r--r-- | youtube_dl/extractor/nonktube.py | 13 | 
1 files changed, 9 insertions, 4 deletions
diff --git a/youtube_dl/extractor/nonktube.py b/youtube_dl/extractor/nonktube.py index 63e58aae2..ca1424e06 100644 --- a/youtube_dl/extractor/nonktube.py +++ b/youtube_dl/extractor/nonktube.py @@ -25,9 +25,14 @@ class NonkTubeIE(NuevoBaseIE):      def _real_extract(self, url):          video_id = self._match_id(url) -        info = self._extract_nuevo( -            'https://www.nonktube.com/media/nuevo/econfig.php?key=%s' -            % video_id, video_id) +        webpage = self._download_webpage(url, video_id) -        info['age_limit'] = 18 +        title = self._og_search_title(webpage) +        info = self._parse_html5_media_entries(url, webpage, video_id)[0] + +        info.update({ +            'id': video_id, +            'title': title, +            'age_limit': 18, +        })          return info  | 
