[afreecatv] fix extractor, update test case
This commit is contained in:
parent
82b8a903ac
commit
757918c106
@ -111,7 +111,7 @@ class AfreecaTVIE(InfoExtractor):
|
|||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '20160502_39e739bb_174361386_2',
|
'id': '20160502_39e739bb_174361386_2',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': "BJ유트루와 함께하는 '팅커벨 메이크업!' (part 1) (part 2)",
|
'title': "BJ유트루와 함께하는 '팅커벨 메이크업!' (part 2)",
|
||||||
'thumbnail': 're:^https?://(?:video|st)img.afreecatv.com/.*$',
|
'thumbnail': 're:^https?://(?:video|st)img.afreecatv.com/.*$',
|
||||||
'uploader': 'dailyapril',
|
'uploader': 'dailyapril',
|
||||||
'uploader_id': 'dailyapril',
|
'uploader_id': 'dailyapril',
|
||||||
@ -207,11 +207,10 @@ class AfreecaTVIE(InfoExtractor):
|
|||||||
file_url, video_id, 'mp4', entry_protocol='m3u8_native',
|
file_url, video_id, 'mp4', entry_protocol='m3u8_native',
|
||||||
m3u8_id='hls',
|
m3u8_id='hls',
|
||||||
note='Downloading part %d m3u8 information' % file_num)
|
note='Downloading part %d m3u8 information' % file_num)
|
||||||
title = title if one else '%s (part %d)' % (title, file_num)
|
|
||||||
file_info = common_entry.copy()
|
file_info = common_entry.copy()
|
||||||
file_info.update({
|
file_info.update({
|
||||||
'id': format_id,
|
'id': format_id,
|
||||||
'title': title,
|
'title': title if one else '%s (part %d)' % (title, file_num),
|
||||||
'upload_date': upload_date,
|
'upload_date': upload_date,
|
||||||
'duration': file_duration,
|
'duration': file_duration,
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user