[tagesschau] Fix article media ids
authorSergey M․ <dstftw@gmail.com>
Sat, 30 Apr 2016 22:42:05 +0000 (04:42 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 30 Apr 2016 22:42:05 +0000 (04:42 +0600)
youtube_dl/extractor/tagesschau.py

index ccc2d476d5d4373f162c28c854be306fd0210135..6b71c8f81ad592b13994742de6323542433a5322 100644 (file)
@@ -181,10 +181,10 @@ class TagesschauIE(InfoExtractor):
                 entries = []
                 for num, (entry_title, media_kind, download_text) in enumerate(re.findall(
                         r'(?s)<p[^>]+class="infotext"[^>]*>.*?<strong>(.+?)</strong>.*?</p>.*?%s' % DOWNLOAD_REGEX,
-                        webpage)):
+                        webpage), 1):
                     entries.append({
-                        'id': display_id,
-                        'title': '%s-%d' % (entry_title, num),
+                        'id': '%s-%d' % (display_id, num),
+                        'title': '%s' % entry_title,
                         'formats': self._extract_formats(download_text, media_kind),
                     })
                 return self.playlist_result(entries, display_id, title)