mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-29 01:44:42 +01:00
[tagesschau] Fix article media ids
This commit is contained in:
parent
1a2b377cc2
commit
2844b09336
@ -181,10 +181,10 @@ def _real_extract(self, url):
|
|||||||
entries = []
|
entries = []
|
||||||
for num, (entry_title, media_kind, download_text) in enumerate(re.findall(
|
for num, (entry_title, media_kind, download_text) in enumerate(re.findall(
|
||||||
r'(?s)<p[^>]+class="infotext"[^>]*>.*?<strong>(.+?)</strong>.*?</p>.*?%s' % DOWNLOAD_REGEX,
|
r'(?s)<p[^>]+class="infotext"[^>]*>.*?<strong>(.+?)</strong>.*?</p>.*?%s' % DOWNLOAD_REGEX,
|
||||||
webpage)):
|
webpage), 1):
|
||||||
entries.append({
|
entries.append({
|
||||||
'id': display_id,
|
'id': '%s-%d' % (display_id, num),
|
||||||
'title': '%s-%d' % (entry_title, num),
|
'title': '%s' % entry_title,
|
||||||
'formats': self._extract_formats(download_text, media_kind),
|
'formats': self._extract_formats(download_text, media_kind),
|
||||||
})
|
})
|
||||||
return self.playlist_result(entries, display_id, title)
|
return self.playlist_result(entries, display_id, title)
|
||||||
|
Loading…
Reference in New Issue
Block a user