0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-19 05:29:59 +00:00

[ie/tubitv] Strip extra whitespace from titles ()

Closes 
Authored by: allendema
This commit is contained in:
Allen 2024-10-22 05:54:41 +02:00 committed by GitHub
parent b8635c1d47
commit e68b4c19af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,6 +6,7 @@
ExtractorError,
int_or_none,
js_to_json,
strip_or_none,
traverse_obj,
url_or_none,
urlencode_postdata,
@ -132,12 +133,12 @@ def _real_extract(self, url):
return {
'id': video_id,
'title': title,
'title': strip_or_none(title),
'formats': formats,
'subtitles': subtitles,
'season_number': int_or_none(season_number),
'episode_number': int_or_none(episode_number),
'episode': episode_title,
'episode': strip_or_none(episode_title),
**traverse_obj(video_data, {
'description': ('description', {str}),
'duration': ('duration', {int_or_none}),