mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 02:14:32 +01:00
acidcow_ver_pull
This commit is contained in:
parent
76c8706c31
commit
5b0d100376
@ -9,12 +9,7 @@ class acidcowIE(InfoExtractor):
|
|||||||
This class should be used to handle videos. Another class (TODO) will be
|
This class should be used to handle videos. Another class (TODO) will be
|
||||||
used to implement playlists or other content.
|
used to implement playlists or other content.
|
||||||
"""
|
"""
|
||||||
# _VALID_URL = r'https?://app.matter.online/tracks/((?P<id>\d+)-(?P<title>\S+))/?'
|
|
||||||
# VALID_URL = r'https?://acidcow.com/video/([0-9]+-(?P<title>\S+))/?'
|
|
||||||
# # r'https://cdn.acidcow.com/pics/%s/video/(\S+)' % video_id, video_id
|
|
||||||
# r'<video src="https://cdn.acidcow.com/pics/([0-9]+/(?P<title>\S+))"/>',
|
|
||||||
|
|
||||||
# _VALID_URL = r'https?://acidcow\.com/video/[0-9]+\S+'
|
|
||||||
_VALID_URL = r'https?://acidcow\.com/video/(?P<id>\d+)-\S+'
|
_VALID_URL = r'https?://acidcow\.com/video/(?P<id>\d+)-\S+'
|
||||||
|
|
||||||
_TESTS = {
|
_TESTS = {
|
||||||
@ -24,24 +19,13 @@ class acidcowIE(InfoExtractor):
|
|||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
'''
|
|
||||||
webpage = self._download_webpage(
|
|
||||||
r'https://cdn\.acidcow\.com/pics/[0-9]+/video/\S', video_id
|
|
||||||
)
|
|
||||||
'''
|
|
||||||
webpage = self._download_webpage(
|
webpage = self._download_webpage(
|
||||||
url, video_id
|
url, video_id
|
||||||
)
|
)
|
||||||
|
|
||||||
title = self._html_search_regex(r'<title>(.+?)</title>', webpage, 'title')
|
title = self._html_search_regex(r'<title>(.+?)</title>', webpage, 'title')
|
||||||
'''
|
|
||||||
download_url = self._html_search_regex(
|
|
||||||
|
|
||||||
r'<video src="https://cdn\.acidcow\.com/pics/[0-9]+/video/\S+" .+',
|
|
||||||
|
|
||||||
webpage, "download_url"
|
|
||||||
)
|
|
||||||
'''
|
|
||||||
download_url = self._html_search_regex(
|
download_url = self._html_search_regex(
|
||||||
|
|
||||||
r'(https://cdn\.acidcow\.com/pics/[0-9]+/video/\S+\.mp4)',
|
r'(https://cdn\.acidcow\.com/pics/[0-9]+/video/\S+\.mp4)',
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
# coding: utf-8
|
|
||||||
from __future__ import unicode_literals
|
|
||||||
|
|
||||||
from .common import InfoExtractor
|
|
||||||
|
|
||||||
class sonumaIE(InfoExtractor):
|
|
||||||
|
|
||||||
|
|
||||||
_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/%s/"% video_id, video_id)
|
|
||||||
title = self._html_search_regex(r'<h1>(.+?)</h1>', 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'
|
|
||||||
r'-010a07647b9b.mp4?sKey=2faa94b1da19002ca8b8abe944a7ecc8', webpage, "title")
|
|
||||||
return{
|
|
||||||
'id':video_id,
|
|
||||||
'title':title,
|
|
||||||
'description': self._og_search_description(webpage),
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user