1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-27 02:44:33 +01:00

- fixed escape of dot

- changed regex
This commit is contained in:
carsten demming 2018-02-23 20:52:41 +01:00
parent 91ccc88362
commit 72d7391d95

View File

@ -9,7 +9,7 @@ from ..utils import (
class VidelloIE(InfoExtractor): class VidelloIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?embed.vidello\.com/[0-9]/(?P<id>[a-zA-Z0-9]+)/player.html' _VALID_URL = r'https?://(?:www\.)?embed\.vidello\.com/[0-9]/(?P<id>[a-zA-Z0-9]+)/player.html'
_TEST = { _TEST = {
'url': 'https://embed.vidello.com/2/t1umm637xb1ylgw4/player.html', 'url': 'https://embed.vidello.com/2/t1umm637xb1ylgw4/player.html',
'md5': '7a4d76ac74ef7724af4c6c3ecb5e0042', 'md5': '7a4d76ac74ef7724af4c6c3ecb5e0042',
@ -26,7 +26,7 @@ class VidelloIE(InfoExtractor):
webpage = self._download_webpage(url, video_id) webpage = self._download_webpage(url, video_id)
vidello_settings = self._parse_json(self._search_regex( vidello_settings = self._parse_json(self._search_regex(
r'settings\s*=\s*({.+});', webpage, 'vidello settings'), video_id) r'settings=({.+});', webpage, 'vidello settings'), video_id)
video_url = "" video_url = ""
video_sources = vidello_settings['player']['clip']['sources'] video_sources = vidello_settings['player']['clip']['sources']