Skip to content

Commit

Permalink
adjust capability delay to 5s
Browse files Browse the repository at this point in the history
  • Loading branch information
smcmnz committed Feb 5, 2024
1 parent 7150903 commit e234fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jellyfin_kodi/jellyfin/ws_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def on_error(self, ws, error):
def on_open(self, ws):
LOG.info("--->[ websocket opened ]")

Check warning on line 73 in jellyfin_kodi/jellyfin/ws_client.py

View check run for this annotation

Codecov / codecov/patch

jellyfin_kodi/jellyfin/ws_client.py#L73

Added line #L73 was not covered by tests
# Avoid a timing issue where the capabilities are not correctly registered
time.sleep(1)
time.sleep(5)

Check warning on line 75 in jellyfin_kodi/jellyfin/ws_client.py

View check run for this annotation

Codecov / codecov/patch

jellyfin_kodi/jellyfin/ws_client.py#L75

Added line #L75 was not covered by tests
if settings('remoteControl.bool'):
self.client.jellyfin.post_capabilities({
'PlayableMediaTypes': "Audio,Video",
Expand Down

0 comments on commit e234fb4

Please sign in to comment.