From a678b247db95f21a439f7abc54e56deba3167f85 Mon Sep 17 00:00:00 2001 From: Dante Date: Sun, 8 Mar 2020 19:20:26 -0700 Subject: [PATCH] Yash commit Sonuma --- youtube_dl/extractor/extractors.py | 1 + youtube_dl/extractor/sonuma.py | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 youtube_dl/extractor/sonuma.py diff --git a/youtube_dl/extractor/extractors.py b/youtube_dl/extractor/extractors.py index 64d1fa251..105a0864b 100644 --- a/youtube_dl/extractor/extractors.py +++ b/youtube_dl/extractor/extractors.py @@ -1032,6 +1032,7 @@ from .southpark import ( SouthParkEsIE, SouthParkNlIE ) +from .sonuma import sonumaIE from .spankbang import ( SpankBangIE, SpankBangPlaylistIE, diff --git a/youtube_dl/extractor/sonuma.py b/youtube_dl/extractor/sonuma.py new file mode 100644 index 000000000..eea3a4cb7 --- /dev/null +++ b/youtube_dl/extractor/sonuma.py @@ -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'

(.+?)

', webpage, 'title') + + + return{ + 'id':video_id, + 'title':title, + 'description': self._og_search_description(webpage), + } \ No newline at end of file