Skip to content

Commit

Permalink
Make transcode termination failure non-fatal. (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
iwalton3 committed Jun 11, 2022
1 parent 4be2572 commit bfa67ac
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions jellyfin_mpv_shim/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,12 @@ def get_transcode_bitrate(self):

def terminate_transcode(self):
if self.is_transcode:
self.client.jellyfin.close_transcode(
self.client.config.data["app.device_id"]
)
try:
self.client.jellyfin.close_transcode(
self.client.config.data["app.device_id"]
)
except:
log.warning("Terminating transcode failed.", exc_info=1)

def _get_url_from_source(self):
# Only use Direct Paths if:
Expand Down

0 comments on commit bfa67ac

Please sign in to comment.