Skip to content

Commit

Permalink
[tver] improve title extraction(closes #28418)
Browse files Browse the repository at this point in the history
  • Loading branch information
remitamine committed Mar 12, 2021
1 parent 9c644a6 commit 43d986a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion youtube_dl/extractor/tver.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
int_or_none,
remove_start,
smuggle_url,
strip_or_none,
try_get,
)

Expand All @@ -25,6 +26,10 @@ class TVerIE(InfoExtractor):
}, {
'url': 'https://tver.jp/episode/79622438',
'only_matching': True,
}, {
# subtitle = ' '
'url': 'https://tver.jp/corner/f0068870',
'only_matching': True,
}]
_TOKEN = None
BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/%s/default_default/index.html?videoId=%s'
Expand All @@ -47,8 +52,12 @@ def _real_extract(self, url):
}

if service == 'cx':
title = main['title']
subtitle = strip_or_none(main.get('subtitle'))
if subtitle:
title += ' - ' + subtitle
info.update({
'title': main.get('subtitle') or main['title'],
'title': title,
'url': 'https://i.fod.fujitv.co.jp/plus7/web/%s/%s.html' % (p_id[:4], p_id),
'ie_key': 'FujiTVFODPlus7',
})
Expand Down

0 comments on commit 43d986a

Please sign in to comment.