mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 16:06:49 +00:00
Use suggested util
This commit is contained in:
parent
ad6ee6fdd2
commit
bf91db4846
@ -5,7 +5,7 @@ import json
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..utils import ExtractorError
|
from ..utils import ExtractorError, join_nonempty
|
||||||
|
|
||||||
|
|
||||||
class NPOIE(InfoExtractor):
|
class NPOIE(InfoExtractor):
|
||||||
@ -241,7 +241,7 @@ class SchoolTVIE(NPOIE):
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'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'),
|
'description': metadata.get('description') or metadata.get('short_description'),
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user