1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-16 06:17:27 +00:00

Apply suggestions from code review

Co-authored-by: dirkf <fieldhouse@gmx.net>
This commit is contained in:
Tobias Bell 2022-08-30 12:58:39 +02:00 committed by GitHub
parent 25fcfdf566
commit 48f020cb9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,8 +26,10 @@ class W24atIE(InfoExtractor):
webpage, "video")
return {
'id': video_id,
'title': self._og_search_title(webpage),
'title': re.sub(r'\s+-\sW24\s*$', '', self._og_search_title(webpage)),
'description': self._og_search_description(webpage),
'formats': self._extract_m3u8_formats("https://%s%s" % (media_server, m3u8_path), video_id, 'mp4'),
'extension': 'mp4'
'extension': 'mp4',
'thumbnail': self._og_search_thumbnail(webpage),
'uploader': self._og_search_property('site_name', webpage, fatal=False),
}