SenexCrenshaw / xTeVe

M3U Proxy and EPG aggregator for Plex DVR and Emby Live TV
MIT License
90 stars 10 forks source link

Add Number of Streams from Xteve in API Status request #59

Open iceman73 opened 1 year ago

iceman73 commented 1 year ago

Is your feature request related to a problem? Please describe. Currently the API request to xteve allows to find out the active streams, all streams, and xepg streams, all good information in monitoring and alerting if there is an issue with your provider or xteve filters.

It would be really nice if it also reported number of active streams like in the log.

Currently looks like the following: curl -i -X POST http://xteve.local:34400/api/ -d '{"cmd": "status"}' HTTP/1.1 200 OK Content-Type: application/json Date: Thu, 08 Dec 2022 18:52:06 GMT Content-Length: 324

{ "epg.source": "XEPG", "status": true, "streams.active": 435, "streams.all": 118878, "streams.xepg": 430, "url.dvr": "xteve.local:34400", "url.m3u": "http://xteve.local:34400/m3u/xteve.m3u", "url.xepg": "http://xteve.local:34400/xmltv/xteve.xml", "version.api": "1.1.0", "version.xteve": "2.5.3"

Describe the solution you'd like A clear and concise description of what you want to happen. curl -i -X POST http://xteve.local:34400/api/ -d '{"cmd": "status"}' HTTP/1.1 200 OK Content-Type: application/json Date: Thu, 08 Dec 2022 18:52:06 GMT Content-Length: 324

{ "epg.source": "XEPG", "status": true, "streams.active": 435, "streams.all": 118878, "streams.xepg": 430, "streaming.status":Playlist: Playlist1- Tuner: 1 / 3, "url.dvr": "xteve.local:34400", "url.m3u": "http://xteve.local:34400/m3u/xteve.m3u", "url.xepg": "http://xteve.local:34400/xmltv/xteve.xml", "version.api": "1.1.0", "version.xteve": "2.5.3"

Describe alternatives you've considered none

Additional context Add any other context or screenshots about the feature request here.

Whats in the log when streams are playing

2022-12-08 14:00:56 [xTeVe] Streaming Status: Playlist: Playlist1- Tuner: 1 / 3

SenexCrenshaw commented 1 year ago

I am working on a new version which has a robust api. stay tuned!