From bf91db4846df82f474938fbe091055fc82eb8a0d Mon Sep 17 00:00:00 2001 From: Bart Broere Date: Sat, 21 Sep 2024 20:04:50 +0000 Subject: [PATCH] Use suggested util --- youtube_dl/extractor/npo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/npo.py b/youtube_dl/extractor/npo.py index bfa96e6a7..70e297e19 100644 --- a/youtube_dl/extractor/npo.py +++ b/youtube_dl/extractor/npo.py @@ -5,7 +5,7 @@ import json import re from .common import InfoExtractor -from ..utils import ExtractorError +from ..utils import ExtractorError, join_nonempty class NPOIE(InfoExtractor): @@ -241,7 +241,7 @@ class SchoolTVIE(NPOIE): return { 'id': video_id, - 'title': metadata.get('title', '') + ' - ' + metadata.get('subtitle', ''), + 'title': join_nonempty('title', 'subtitle', from_dict=metadata), 'description': metadata.get('description') or metadata.get('short_description'), 'formats': formats, }