1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-03 02:43:21 +08:00

[Chunun]changed MD5 checksum in test data

This commit is contained in:
sichuan-pepper 2018-11-09 16:07:30 +09:00
parent ee4da5a39a
commit 2d46eb7600

View File

@ -7,10 +7,10 @@ import re
class ChuunIE(InfoExtractor): class ChuunIE(InfoExtractor):
_VALID_URL = r'https://chuun\.ctv\.co\.jp/player/(?P<video_id>[0-9]+)' _VALID_URL = r'https://chuun\.ctv\.co\.jp/player/(?P<id>\d+)'
_TEST = { _TEST = {
'url': 'https://chuun.ctv.co.jp/player/1', 'url': 'https://chuun.ctv.co.jp/player/1',
'md5': '964452757b7c2ae1dd35e019068a3fae', 'md5': 'c989576b6b492df1eed57b5de290df23',
'info_dict': { 'info_dict': {
'id': '1', 'id': '1',
'ext': 'mp4', 'ext': 'mp4',
@ -22,10 +22,10 @@ class ChuunIE(InfoExtractor):
def _real_extract(self, url): def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url) mobj = re.match(self._VALID_URL, url)
video_id = mobj.group('video_id') video_id = mobj.group('id')
webpage = self._download_webpage(url, video_id) webpage = self._download_webpage(url, video_id)
m3u8_url = re.findall(r"'movieAccessUrl':'(http[^']+)'", webpage)[0] m3u8_url = re.findall(r"'movieAccessUrl':'(http[^']+)'", webpage)[0]
title = self._og_search_title(webpage) or self._html_search_regex(r'<title>(.+)</title>', webpage, 'page_title') title = self._og_search_title(webpage) or self._html_search_regex(r'<title>(.+)</title>', webpage, 'title')
description = self._html_search_meta('description', webpage) description = self._html_search_meta('description', webpage)
thumbnail = self._og_search_thumbnail(webpage)\ thumbnail = self._og_search_thumbnail(webpage)\
or self._html_search_regex(r"'programThumbnailUrlLarge':'(http[^']+)'", webpage, 'large_thumbnail')\ or self._html_search_regex(r"'programThumbnailUrlLarge':'(http[^']+)'", webpage, 'large_thumbnail')\