Skip to content

Commit

Permalink
Merge pull request #4 from zeroquinc/dev
Browse files Browse the repository at this point in the history
Update RPC episode function to include optional letterboxd URL parameter
  • Loading branch information
zeroquinc authored Jan 14, 2024
2 parents ba356ea + 289cd88 commit eb9bb52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def update_rpc_movie(info, length, start_time, end_time, image_url, imdb_url, tm
update_rpc(info, start_time, end_time, image_url, imdb_url, tmdb_url, trakt_url, letterboxd_url, 'movie', is_playing)

# Function to update the RP for an episode
def update_rpc_episode(info, length, start_time, end_time, image_url, imdb_url, tmdb_url, trakt_url):
def update_rpc_episode(info, length, start_time, end_time, image_url, imdb_url, tmdb_url, trakt_url, letterboxd_url=None):
is_playing = length['speed'] != 0
update_rpc(info, start_time, end_time, image_url, imdb_url, tmdb_url, trakt_url, None, 'episode', is_playing)

Expand Down

0 comments on commit eb9bb52

Please sign in to comment.