| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/clients/client2/web30/web/backup/resources/ |
Upload File : |
import{s as c}from"./service-DfnCLkIR.js";import{_ as l,G as m,r as f,o as r,c as h,w as d,a as _,b as a,t as u,e as o}from"./index-UxwdVxub.js";const p={name:"Jellyfin",mixins:[c],props:{item:Object},components:{Generic:m},data:()=>({stats:null,error:!1}),computed:{streams:function(){if(!this.stats)return"";let t=0;for(let e of this.stats)"NowPlayingItem"in e&&t++;return t}},created(){this.fetchStatus()},methods:{fetchStatus:async function(){const t={Authorization:`bearer ${this.item.apikey}`};try{const e=await this.fetch("/proxy/getSessions",{headers:t});this.error=!1,this.stats=e}catch(e){this.error=!0,console.error(e)}}}},y={class:"notifs"},b=["title"],g={key:1,class:"notif error fa-solid fa-triangle-exclamation",title:"Unable to fetch current status"};function k(t,e,i,x,v,s){const n=f("Generic");return r(),h(n,{item:i.item},{indicator:d(()=>[_("div",y,[s.streams>0?(r(),a("strong",{key:0,class:"notif playing",title:`${s.streams} active stream${s.streams>1?"s":""}`},u(s.streams),9,b)):o("",!0),t.error?(r(),a("i",g)):o("",!0)])]),_:1},8,["item"])}const G=l(p,[["render",k],["__scopeId","data-v-e1a27b0d"]]);export{G as default};