From 2ad5716d153a623d50f1a0e611a284795ccfd0ca Mon Sep 17 00:00:00 2001 From: Dante Date: Sun, 29 Mar 2020 21:54:05 -0700 Subject: [PATCH] acidcow_ver_1.1 --- youtube_dl/extractor/acidcow.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/acidcow.py b/youtube_dl/extractor/acidcow.py index d6b87f0c8..be3a1b100 100644 --- a/youtube_dl/extractor/acidcow.py +++ b/youtube_dl/extractor/acidcow.py @@ -10,7 +10,11 @@ class acidcowIE(InfoExtractor): 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+))/?' + # 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 = { # TODO: Implement @@ -19,12 +23,13 @@ class acidcowIE(InfoExtractor): 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 + r'https?://cdn\.acidcow\.com/pics/[0-9]+/video/\S', video_id ) title = self._html_search_regex(r'<title>(.+?)', webpage, 'title') download_url = self._html_search_regex( - r'