catalinii / minisatip

minisatip is an SATIP server for linux using local DVB-S2, DVB-C, DVB-T or ATSC cards
https://minisatip.org
327 stars 80 forks source link

Channel names missing in web interface #1000

Closed 9000h closed 1 year ago

9000h commented 1 year ago

https://github.com/catalinii/minisatip/blob/08c374bab421211df913a061c2fd35e7980eae54/src/pmt.c#L2255 should it be not strlcatf(dest, max_size, pos, "%s,", pmt->name); but it shows then all channels on the freq

catalinii commented 1 year ago

Fixed in master

9000h commented 1 year ago

@catalinii thanks for looking in to, channel names in the status page are now correct for encrypted channels but there are no channel names shown on FTA channels

Jalle19 commented 1 year ago

I second this, I'm getting no channel names at all with v1.2.34. @catalinii

catalinii commented 1 year ago

This should be fixed in the master

Jalle19 commented 1 year ago

Screenshot from 2022-10-20 14-52-44

I still have no channel names. This is on an FTA channel.

9000h commented 1 year ago

did you also use the new status.html? Screenshot from 2022-10-20 16-19-49

Jalle19 commented 1 year ago

Hmm, no 😄 I'll report back

Jalle19 commented 1 year ago

Still the same issue even after updating the html directory contents

Jalle19 commented 1 year ago

Not sure if this is related:

pmt.c: In function ‘pmt_pid_add’:
pmt.c:2221:11: warning: unused variable ‘pmt’ [-Wunused-variable]
 2221 |     SPMT *pmt = NULL;
      |           ^~~

I tried the latest master locally too and it has the same issue, so any problems with my production setup can be ruled out.

9000h commented 1 year ago

hmm, I run it on Intel hardware maybe happened on different CPU type

Jalle19 commented 1 year ago

Actually I'm on Intel too 🤷 I'll start bisecting my way back to the last working version.

9000h commented 1 year ago

hmm, I do have no CI in my system atm

Jalle19 commented 1 year ago
aacfffe44346f614baa132b89b3aa2ddfb3aac99 is the first bad commit
commit aacfffe44346f614baa132b89b3aa2ddfb3aac99
Author: Catalin Toda <catalinii@yahoo.com>
Date:   Tue Oct 4 17:09:03 2022 -0700

    Add fe= to the Web UI URL only if requested by the client #966

 html/status.html | 117 +++++++++++++++---------
 src/adapter.c    |   5 +-
 src/adapter.h    |   5 +
 src/ca.c         |  18 +++-
 src/ddci.c       |   3 +
 src/dvb.c        |  13 +--
 src/dvbapi.c     |  21 ++---
 src/pmt.c        | 271 +++++++++++++++++++++++++++++++++----------------------
 src/pmt.h        |   5 +-
 src/tables.c     |  57 +-----------
 src/tables.h     |   6 --
 src/utils.h      |   6 +-
 12 files changed, 287 insertions(+), 240 deletions(-)
catalinii commented 1 year ago

@Jalle19 can u check the latest master?

Jalle19 commented 1 year ago

Yes, now it finally works! :pray: