1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-29 19:47:54 +01:00

acidcow_ver_1.3

This commit is contained in:
Dante 2020-03-30 20:55:00 -07:00
parent 1e3504703d
commit 5b1094e719

View File

@ -25,13 +25,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/[0-9]+/video/\S', 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]+/video/\S+" .+', r'<video src="https://cdn\.acidcow\.com/pics/[0-9]+/video/\S+" .+',
webpage, "download_url" webpage, "download_url"
) )