1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-10 12:07:21 +08:00

24 lines
735 B
Python
Raw Normal View History

2020-03-08 19:20:26 -07:00
# coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
class sonumaIE(InfoExtractor):
2020-03-28 18:47:16 -07:00
2020-03-08 20:12:34 -07:00
_VALID_URL=r'(?:https?://)?(?:www\.)?sonuma\.be/archive/'
2020-03-08 19:20:26 -07:00
2020-03-28 18:47:16 -07:00
def _real_extract(self, url):
2020-03-08 19:20:26 -07:00
video_id=self._match_id(url)
2020-03-08 20:16:06 -07:00
webpage = self._download_webpage("https://www.sonuma.be/archive/%s/"% video_id, video_id)
2020-03-08 19:20:26 -07:00
title = self._html_search_regex(r'<h1>(.+?)</h1>', webpage, 'title')
2020-03-08 20:12:34 -07:00
download_url=self._html_search_regex(
2020-03-28 18:47:16 -07:00
r'https://vod.infomaniak.com/redirect/sonumasa_2_vod/web2-39166/copy-32/d611823b-d693-29b6-e040'
r'-010a07647b9b.mp4?sKey=2faa94b1da19002ca8b8abe944a7ecc8', webpage, "title")
2020-03-08 19:20:26 -07:00
return{
'id':video_id,
'title':title,
'description': self._og_search_description(webpage),
2020-03-08 20:12:34 -07:00
}