From 48f020cb9acf2909340e05d3df6635e8b0b0e195 Mon Sep 17 00:00:00 2001 From: Tobias Bell Date: Tue, 30 Aug 2022 12:58:39 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: dirkf --- youtube_dl/extractor/w24at.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/w24at.py b/youtube_dl/extractor/w24at.py index 9f743c6c3..0b42ae446 100644 --- a/youtube_dl/extractor/w24at.py +++ b/youtube_dl/extractor/w24at.py @@ -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), }