Skip to content

Commit

Permalink
Merge pull request #1 from Aluxima/fix-transcode-direct
Browse files Browse the repository at this point in the history
Fix jellyfin_active_streams_count_direct/jellyfin_active_streams_coun…
  • Loading branch information
drkhsh authored Dec 28, 2024
2 parents 36a4282 + a19cd98 commit dce4470
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jellyfin_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def collect(self):
streams_count += 1

now_playing = user['NowPlayingItem']
if 'TranscodingInfo' in now_playing:
tc = now_playing['TranscodingInfo']
if 'TranscodingInfo' in user:
tc = user['TranscodingInfo']
if tc['IsVideoDirect'] == True:
streams_direct_count += 1
else:
Expand Down

0 comments on commit dce4470

Please sign in to comment.