1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 11:41:52 +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,
}