1
0
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:
Kaspar Vollenweider 2020-05-10 19:31:05 +02:00
parent b002bc433a
commit ea64b77df8
No known key found for this signature in database
GPG Key ID: 9039A456BC9C0F78

View File

@ -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')