mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 22:35:21 +00:00
[tagesschau] remove duplicates from playlists
This commit is contained in:
parent
ac5b267afe
commit
a53b4004cf
@ -135,7 +135,7 @@ class TagesschauIE(InfoExtractor):
|
|||||||
'id': 'impfungen-coronavirus-usa-101',
|
'id': 'impfungen-coronavirus-usa-101',
|
||||||
'title': 'Kampf gegen das Coronavirus: Impfwunder USA?',
|
'title': 'Kampf gegen das Coronavirus: Impfwunder USA?',
|
||||||
},
|
},
|
||||||
'playlist_count': 3,
|
'playlist_count': 2,
|
||||||
}, {
|
}, {
|
||||||
# article without videos
|
# article without videos
|
||||||
'url': 'https://www.tagesschau.de/wirtschaft/ukraine-russland-kredit-101.html',
|
'url': 'https://www.tagesschau.de/wirtschaft/ukraine-russland-kredit-101.html',
|
||||||
@ -351,8 +351,13 @@ class TagesschauIE(InfoExtractor):
|
|||||||
and not self._downloader.params.get('noplaylist')
|
and not self._downloader.params.get('noplaylist')
|
||||||
and (webpage_type == 'website' or not mobj.group('id'))):
|
and (webpage_type == 'website' or not mobj.group('id'))):
|
||||||
# article or playlist
|
# article or playlist
|
||||||
entries = [self._extract_from_player(s, video_id, title)
|
entries = []
|
||||||
for s in players]
|
seen = set()
|
||||||
|
for player in players:
|
||||||
|
entry = self._extract_from_player(player, video_id, title)
|
||||||
|
if entry['id'] not in seen:
|
||||||
|
entries.append(entry)
|
||||||
|
seen.add(entry['id'])
|
||||||
return self.playlist_result(entries, display_id, title)
|
return self.playlist_result(entries, display_id, title)
|
||||||
else:
|
else:
|
||||||
# single video/audio
|
# single video/audio
|
||||||
|
Loading…
Reference in New Issue
Block a user