mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2025-02-18 10:07:55 +01:00
Yash commit Sonuma
This commit is contained in:
parent
bee6451fe8
commit
a678b247db
@ -1032,6 +1032,7 @@ from .southpark import (
|
|||||||
SouthParkEsIE,
|
SouthParkEsIE,
|
||||||
SouthParkNlIE
|
SouthParkNlIE
|
||||||
)
|
)
|
||||||
|
from .sonuma import sonumaIE
|
||||||
from .spankbang import (
|
from .spankbang import (
|
||||||
SpankBangIE,
|
SpankBangIE,
|
||||||
SpankBangPlaylistIE,
|
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