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:
parent
bee6451fe8
commit
a678b247db
@ -1032,6 +1032,7 @@ from .southpark import (
|
||||
SouthParkEsIE,
|
||||
SouthParkNlIE
|
||||
)
|
||||
from .sonuma import sonumaIE
|
||||
from .spankbang import (
|
||||
SpankBangIE,
|
||||
SpankBangPlaylistIE,
|
||||
|
20
youtube_dl/extractor/sonuma.py
Normal file
20
youtube_dl/extractor/sonuma.py
Normal 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),
|
||||
}
|
Loading…
Reference in New Issue
Block a user