From e08554c7d0c38f0668dbb09adf73bf2ea041b959 Mon Sep 17 00:00:00 2001 From: MoojMidge <56883549+MoojMidge@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:23:48 +1100 Subject: [PATCH] Fix not identifying own playlists in personal channel --- .../youtube_plugin/youtube/helper/utils.py | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/resources/lib/youtube_plugin/youtube/helper/utils.py b/resources/lib/youtube_plugin/youtube/helper/utils.py index b0977a6d2..2d3f7314d 100644 --- a/resources/lib/youtube_plugin/youtube/helper/utils.py +++ b/resources/lib/youtube_plugin/youtube/helper/utils.py @@ -485,18 +485,11 @@ def update_playlist_items(provider, context, playlist_id_dict, separator, menu_items.bookmark_add( context, playlist_item - ) if not in_bookmarks_list and channel_id != 'mine' else None, + ) if not in_bookmarks_list and not in_my_playlists else None, ] if logged_in: - if channel_id != 'mine': - # subscribe to the channel via the playlist item - context_menu.append( - menu_items.subscribe_to_channel( - context, channel_id, channel_name - ) - ) - else: + if in_my_playlists: context_menu.extend(( # remove my playlist menu_items.delete_playlist( @@ -523,8 +516,15 @@ def update_playlist_items(provider, context, playlist_id_dict, context, playlist_id, title ), )) + else: + # subscribe to the channel via the playlist item + context_menu.append( + menu_items.subscribe_to_channel( + context, channel_id, channel_name + ) + ) - if not in_bookmarks_list and channel_id != 'mine': + if not in_bookmarks_list and not in_my_playlists: context_menu.append( # bookmark channel of the playlist menu_items.bookmark_add_channel(