mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-25 19:52:11 +00:00
Use suggested util
This commit is contained in:
parent
ad6ee6fdd2
commit
bf91db4846
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue