URI:
       Fix jellyfin_active_streams_count_direct/jellyfin_active_streams_count_transcode condition - jellyfin-exporter - 🐟 quick & dirty jellyfin prometheus exporter. wip
  HTML git clone https://git.drkhsh.at/jellyfin-exporter.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit a19cd98a28bf20ea9abb8ca45ca35a518265bed4
   DIR parent 36a42822e6b503c4e7a495d065bfbdfb1aa1ddb1
  HTML Author: Laurent Marchaud <laurent@marchaud.com>
       Date:   Fri, 27 Dec 2024 19:01:57 +0100
       
       Fix jellyfin_active_streams_count_direct/jellyfin_active_streams_count_transcode condition
       
       Signed-off-by: Laurent Marchaud <laurent@marchaud.com>
       
       Diffstat:
         M jellyfin_exporter.py                |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/jellyfin_exporter.py b/jellyfin_exporter.py
       @@ -94,8 +94,8 @@ class JellyfinCollector(object):
                            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: