1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-25 05:12:50 +08:00

[Wenoo] Add new extractor (Closes #10087)

This commit is contained in:
Déstin Reed 2016-08-26 23:21:28 +02:00
parent d181cff685
commit bc0f68bee4
2 changed files with 34 additions and 0 deletions

View File

@ -1053,6 +1053,7 @@ from .webofstories import (
from .weiqitv import WeiqiTVIE
from .wimp import WimpIE
from .wistia import WistiaIE
from .wenoo import WenooIE
from .worldstarhiphop import WorldStarHipHopIE
from .wrzuta import (
WrzutaIE,

View File

@ -0,0 +1,33 @@
from __future__ import unicode_literals
from .common import InfoExtractor
class WenooIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?wenoo\.net/video/(?P<id>[a-z0-9]+)'
_TEST = {
'url': 'http://wenoo.net/video/1f1d1d434f90869367a',
'md5': 'f41e3b237bc6612554dfa86779a536fd',
'info_dict': {
'id': '1f1d1d434f90869367a',
'ext': 'mp4',
'title': '[Reupload] Avatar Korra\'s retarded day - 500 Subscriber Milestone video -HD 720p-',
'description': 'md5:98eabca037057bf4ad529d4fdc3f067b',
'thumbnail': 're:^http://.*\.jpg$',
}
}
def _real_extract(self, url):
video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)
formats = self._parse_html5_media_entries(url,
webpage, video_id)[0]['formats']
return {
'id': video_id,
'title': self._og_search_title(webpage),
'formats': formats,
'description': self._og_search_description(webpage),
'thumbnail': self._og_search_thumbnail(webpage),
}