mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-10 06:57:17 +08:00
acidcow_ver_1.1
This commit is contained in:
parent
70d05cf062
commit
2ad5716d15
@ -10,7 +10,11 @@ class acidcowIE(InfoExtractor):
|
|||||||
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?://app.matter.online/tracks/((?P<id>\d+)-(?P<title>\S+))/?'
|
||||||
_VALID_URL = r'https?://acidcow.com/video/([0-9]+-(?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+'
|
||||||
_TESTS = {
|
_TESTS = {
|
||||||
# TODO: Implement
|
# TODO: Implement
|
||||||
|
|
||||||
@ -19,12 +23,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(
|
webpage = self._download_webpage(
|
||||||
r'https://cdn.acidcow.com/pics/%s/video/(\S+)' % video_id, video_id
|
r'https?://cdn\.acidcow\.com/pics/[0-9]+/video/\S', 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(
|
download_url = self._html_search_regex(
|
||||||
r'<video src="https://cdn.acidcow.com/pics/([0-9]+/(?P<title>\s+))"/>',
|
|
||||||
|
r'<video src="https?://cdn\.acidcow\.com/pics/[0-9]+/video/\S+" .+',
|
||||||
|
|
||||||
webpage, "download_url"
|
webpage, "download_url"
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user