From a678b247db95f21a439f7abc54e56deba3167f85 Mon Sep 17 00:00:00 2001 From: Dante Date: Sun, 8 Mar 2020 19:20:26 -0700 Subject: [PATCH 01/18] 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 From 47c434ba41ecbdca8067b7aab5e2d8fbbd3d9d98 Mon Sep 17 00:00:00 2001 From: Dante Date: Sun, 8 Mar 2020 20:12:34 -0700 Subject: [PATCH 02/18] yash version 2 --- youtube_dl/extractor/sonuma.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/youtube_dl/extractor/sonuma.py b/youtube_dl/extractor/sonuma.py index eea3a4cb7..91decd56c 100644 --- a/youtube_dl/extractor/sonuma.py +++ b/youtube_dl/extractor/sonuma.py @@ -5,16 +5,17 @@ from .common import InfoExtractor class sonumaIE(InfoExtractor): - _VALID_URL=r'(?:https?://)?(?:www\.)?sonuma\.be/archive/[a-z-0-9]*' + _VALID_URL=r'(?:https?://)?(?:www\.)?sonuma\.be/archive/' def _real_extract(self,url): video_id=self._match_id(url) - webpage = self._download_webpage("https://www.sonuma.be/archive/"+video_id) + webpage = self._download_webpage("https://www.sonuma.be/archive/%s/"video_id , video_id) title = self._html_search_regex(r'

(.+?)

', webpage, 'title') - + download_url=self._html_search_regex( + r'https://vod.infomaniak.com/redirect/sonumasa_2_vod/web2-39166/copy-32/d611823b-d693-29b6-e040-010a07647b9b.mp4?sKey=2faa94b1da19002ca8b8abe944a7ecc8',webpage,"title") return{ 'id':video_id, 'title':title, 'description': self._og_search_description(webpage), - } \ No newline at end of file + } From 62b725f4609109eaa28396b01dfcaa566d85634b Mon Sep 17 00:00:00 2001 From: Dante Date: Sun, 8 Mar 2020 20:16:06 -0700 Subject: [PATCH 03/18] yash ver3 --- youtube_dl/extractor/sonuma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/sonuma.py b/youtube_dl/extractor/sonuma.py index 91decd56c..43776f958 100644 --- a/youtube_dl/extractor/sonuma.py +++ b/youtube_dl/extractor/sonuma.py @@ -9,7 +9,7 @@ class sonumaIE(InfoExtractor): def _real_extract(self,url): video_id=self._match_id(url) - webpage = self._download_webpage("https://www.sonuma.be/archive/%s/"video_id , video_id) + webpage = self._download_webpage("https://www.sonuma.be/archive/%s/"% video_id, video_id) title = self._html_search_regex(r'

(.+?)

', webpage, 'title') download_url=self._html_search_regex( From 46d03da3dd467502dd4034f9dd0bcc51ffe6b6b3 Mon Sep 17 00:00:00 2001 From: Dante Date: Sat, 28 Mar 2020 18:47:16 -0700 Subject: [PATCH 04/18] Sonuma and acidcow --- youtube_dl/extractor/acidcow.py | 37 ++++++++++++++++++++++++++++++ youtube_dl/extractor/extractors.py | 1 + youtube_dl/extractor/sonuma.py | 6 +++-- 3 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 youtube_dl/extractor/acidcow.py diff --git a/youtube_dl/extractor/acidcow.py b/youtube_dl/extractor/acidcow.py new file mode 100644 index 000000000..b023d747f --- /dev/null +++ b/youtube_dl/extractor/acidcow.py @@ -0,0 +1,37 @@ +from __future__ import unicode_literals + +from .common import InfoExtractor + + +class acidcowIE(InfoExtractor): + """ + InfoExtractor for acid.cow + This class should be used to handle videos. Another class (TODO) will be + used to implement playlists or other content. + """ + # _VALID_URL = r'https?://app.matter.online/tracks/((?P\d+)-(?P\S+))/?' + _VALID_URL = r'https?://acidcow.com/video/([0-9]+-(?P<title>\s+))/?' + _TESTS = { + # TODO: Implement + + } + + def _real_extract(self, url): + video_id = self._match_id(url) + webpage = self._download_webpage( + r'https://cdn.acidcow.com/pics/%s/video/(\S+)' % video_id, video_id + ) + + title = self._html_search_regex(r'<title>(.+?)', webpage, 'title') + download_url = self._html_search_regex( + r'