[tagesschau] Fix article media ids

master
Sergey M․ 2016-05-01 04:42:05 +06:00
parent 1a2b377cc2
commit 2844b09336
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with 3 additions and 3 deletions

View File

@ -181,10 +181,10 @@ class TagesschauIE(InfoExtractor):
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)