Skip to content

Commit

Permalink
[nonktube] Fix extraction (closes #22544)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw authored and meunierd committed Feb 13, 2020
1 parent 855c3d1 commit 6c29cab
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions youtube_dl/extractor/nonktube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6c29cab

Please sign in to comment.