1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 07:56:49 +00:00

Use suggested util

This commit is contained in:
Bart Broere 2024-09-21 20:04:50 +00:00
parent ad6ee6fdd2
commit bf91db4846

View File

@ -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,
}