mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-01-10 21:40:11 +09:00
[mediathekviewweb] Added pretty playlist name if topic is common for all results
This commit is contained in:
parent
3e3b11c80b
commit
57f070e5ac
@ -187,7 +187,13 @@ class MediathekViewWebSearchIE(SearchInfoExtractor):
|
|||||||
elif meta['resultCount'] == 0:
|
elif meta['resultCount'] == 0:
|
||||||
break
|
break
|
||||||
|
|
||||||
return self.playlist_result(entries, playlist_title=query)
|
common_topic = None
|
||||||
|
if entries:
|
||||||
|
common_topic = entries[0]['series']
|
||||||
|
for entry in entries:
|
||||||
|
common_topic = common_topic if entry['series'] == common_topic else None
|
||||||
|
|
||||||
|
return self.playlist_result(entries, playlist_title=common_topic or query)
|
||||||
|
|
||||||
|
|
||||||
class MediathekViewWebIE(InfoExtractor):
|
class MediathekViewWebIE(InfoExtractor):
|
||||||
|
Loading…
Reference in New Issue
Block a user