Browse Source

[nonktube] Fix extraction (closes #22544)

master
Sergey M․ 5 years ago
parent
commit
72fd4d0c6a
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 9 additions and 4 deletions
  1. 13
      youtube_dl/extractor/nonktube.py

13
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
Loading…
Cancel
Save