From ad5a504263f85ca7b8b34e092dad589e9280b3b1 Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Fri, 15 Oct 2021 16:15:29 +0200 Subject: [PATCH] extractors/collection/youtube: Normalize playlist titles as well --- server/entertainment_decider/extractors/collection/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/entertainment_decider/extractors/collection/youtube.py b/server/entertainment_decider/extractors/collection/youtube.py index a938dfb..4653cb2 100644 --- a/server/entertainment_decider/extractors/collection/youtube.py +++ b/server/entertainment_decider/extractors/collection/youtube.py @@ -84,7 +84,7 @@ class YouTubeCollectionExtractor(CollectionExtractor[Dict]): def _update_object_raw(self, object: MediaCollection, data: Dict): info = data["info"] is_channel = self.__is_channel_id(info["id"]) - object.title = f"[channel] [{self.name}] {info['channel']['name']}" if is_channel else f"{info['title']} ({info['channel']['name']})" + object.title = f"[channel] [{self.name}] {info['channel']['name']}" if is_channel else f"[playlist] {info['channel']['name']}: {info['title']}" object.add_uris((info["link"],)) video_list = data["videos"] if object.watch_in_order_auto: