1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 02:14:32 +01:00

Yash commit Sonuma

This commit is contained in:
Dante 2020-03-08 19:20:26 -07:00
parent bee6451fe8
commit a678b247db
2 changed files with 21 additions and 0 deletions

View File

@ -1032,6 +1032,7 @@ from .southpark import (
SouthParkEsIE,
SouthParkNlIE
)
from .sonuma import sonumaIE
from .spankbang import (
SpankBangIE,
SpankBangPlaylistIE,

View File

@ -0,0 +1,20 @@
# coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
class sonumaIE(InfoExtractor):
_VALID_URL=r'(?:https?://)?(?:www\.)?sonuma\.be/archive/[a-z-0-9]*'
def _real_extract(self,url):
video_id=self._match_id(url)
webpage = self._download_webpage("https://www.sonuma.be/archive/"+video_id)
title = self._html_search_regex(r'<h1>(.+?)</h1>', webpage, 'title')
return{
'id':video_id,
'title':title,
'description': self._og_search_description(webpage),
}