Skip to content

Commit

Permalink
Use suggested util
Browse files Browse the repository at this point in the history
  • Loading branch information
bartbroere committed Sep 21, 2024
1 parent ad6ee6f commit bf91db4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions youtube_dl/extractor/npo.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import re

from .common import InfoExtractor
from ..utils import ExtractorError
from ..utils import ExtractorError, join_nonempty


class NPOIE(InfoExtractor):
Expand Down Expand Up @@ -241,7 +241,7 @@ def _real_extract(self, url):

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,
}
Expand Down

0 comments on commit bf91db4

Please sign in to comment.