mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-14 11:17:14 +08:00
[zdf] complete title for multi episode program
The title of this program was not complete: url: https://www.zdf.de/dokumentation/zdfinfo-doku/china-der-entfesselte-riese-praesident-auf-lebenszeit--100.html title extracted: "China: Präsident auf Lebenszeit " actual title: "China - Der entfesselte Riese (1/3): Präsident auf Lebenszeit " Besides that the title was not stript of its white space on the end.
This commit is contained in:
parent
b002bc433a
commit
ea64b77df8
@ -110,9 +110,8 @@ class ZDFIE(ZDFBaseIE):
|
||||
formats.append(f)
|
||||
|
||||
def _extract_entry(self, url, player, content, video_id):
|
||||
title = content.get('title') or content['teaserHeadline']
|
||||
|
||||
t = content['mainVideoContent']['http://zdf.de/rels/target']
|
||||
title = (t.get('title') or content.get('title') or content['teaserHeadline']).strip()
|
||||
|
||||
ptmd_path = t.get('http://zdf.de/rels/streams/ptmd')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user