Skip to content

Commit

Permalink
Fix trying to access list of playlists for logged in account that has…
Browse files Browse the repository at this point in the history
… no Youtube channel #803
  • Loading branch information
MoojMidge committed Jun 18, 2024
1 parent 4b55d98 commit ad8075d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/lib/youtube_plugin/youtube/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ def on_root(self, context, re_match):
if logged_in and settings.get_bool('youtube.folder.liked_videos.show', True):
resource_manager = self.get_resource_manager(context)
playlists = resource_manager.get_related_playlists(channel_id='mine')
if 'likes' in playlists:
if playlists and 'likes' in playlists:
liked_videos_item = DirectoryItem(
localize('video.liked'),
create_uri(('channel', 'mine', 'playlist', playlists['likes'])),
Expand Down

0 comments on commit ad8075d

Please sign in to comment.