Skip to content

Commit

Permalink
Don't add video to playlist when shared
Browse files Browse the repository at this point in the history
When a video is shared with this addon, it can be
done by calling `Playlist.Add` or `Player.Open`.
If it is done via `Playlist.Add`, the item is already
in a playlist, so we don't have to do it ourselves.
If it is done via `Player.Open`, the user probably
doesn't want to create a playlist at all.

Resolves #66
  • Loading branch information
jaylinski committed Apr 26, 2024
1 parent b82b295 commit c425943
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions resources/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ def run():
xbmcgui.NOTIFICATION_ERROR
)

playlist = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
resolve_list_item(handle, collection[0][1], password, fetch_subtitles)
playlist.add(url=collection[0][0], listitem=collection[0][1])
else:
xbmc.log(addon_id + ": Invalid play param", xbmc.LOGERROR)

Expand Down

0 comments on commit c425943

Please sign in to comment.