diff options
author | Allen <64094914+allendema@users.noreply.github.com> | 2024-10-22 05:54:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-22 03:54:41 +0000 |
commit | e68b4c19af122876561a41f2dd8093fae7b417c7 (patch) | |
tree | 29e0bfff7c8425d12d6b45eb66632d75b70ff9d6 | |
parent | b8635c1d4779da195e71aa281f73aaad702c935e (diff) |
[ie/tubitv] Strip extra whitespace from titles (#10795)
Closes #10794
Authored by: allendema
-rw-r--r-- | yt_dlp/extractor/tubitv.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/yt_dlp/extractor/tubitv.py b/yt_dlp/extractor/tubitv.py index 85eb3a211..694a92fcd 100644 --- a/yt_dlp/extractor/tubitv.py +++ b/yt_dlp/extractor/tubitv.py @@ -6,6 +6,7 @@ from ..utils import ( ExtractorError, int_or_none, js_to_json, + strip_or_none, traverse_obj, url_or_none, urlencode_postdata, @@ -132,12 +133,12 @@ class TubiTvIE(InfoExtractor): 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}), |