mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-01-27 05:09:55 +00:00
Changed from _html_search_meta to _og_search_ and now m3u8_url extraction is not fatal
This commit is contained in:
parent
9e041f1d5d
commit
9927b7c73b
@ -23,10 +23,10 @@ class SzenikEUIE(InfoExtractor):
|
|||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
title = self._html_search_meta('og:title', webpage)
|
title = self._og_search_title(webpage)
|
||||||
title = title.split(' |')[0]
|
title = title.split(' |')[0]
|
||||||
thumbnail = self._html_search_meta('og:image', webpage)
|
thumbnail = self._og_search_thumbnail(webpage)
|
||||||
description = self._html_search_meta('og:description', webpage, fatal=False)
|
description = self._og_search_description(webpage)
|
||||||
|
|
||||||
# The folder name is obtained from the image thumbnail
|
# The folder name is obtained from the image thumbnail
|
||||||
video_folder = thumbnail.rsplit('/', 1)[1].split('.')[0]
|
video_folder = thumbnail.rsplit('/', 1)[1].split('.')[0]
|
||||||
@ -35,7 +35,7 @@ class SzenikEUIE(InfoExtractor):
|
|||||||
m3u8_url = baseurl + 'index.m3u8'
|
m3u8_url = baseurl + 'index.m3u8'
|
||||||
formats = self._extract_m3u8_formats(
|
formats = self._extract_m3u8_formats(
|
||||||
m3u8_url, video_id, 'mp4', entry_protocol='m3u8_native',
|
m3u8_url, video_id, 'mp4', entry_protocol='m3u8_native',
|
||||||
m3u8_id='hls')
|
m3u8_id='hls', fatal=False)
|
||||||
|
|
||||||
QUALITIES = ('low', 'med', 'high')
|
QUALITIES = ('low', 'med', 'high')
|
||||||
quality = qualities(QUALITIES)
|
quality = qualities(QUALITIES)
|
||||||
|
Loading…
Reference in New Issue
Block a user