Skip to content

Commit

Permalink
Fix not identifying own playlists in personal channel
Browse files Browse the repository at this point in the history
  • Loading branch information
MoojMidge committed Dec 7, 2024
1 parent c5bd1ea commit e08554c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions resources/lib/youtube_plugin/youtube/helper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down

0 comments on commit e08554c

Please sign in to comment.