NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Docker amd64 v
« Previous 1 2 3 4 5 … 9 Next »
Icon missing

 
  • 0 Vote(s) - 0 Average
Icon missing
rmvanderspek
Offline

Junior Member

The Netherlands
Posts: 7
Threads: 1
Joined: Feb 2023
#1
2023-02-08, 12:59 PM
I am running NextPVR on a  TrueNas Scale. Everything is working fine, but for some channels, I don't have icons.

I know that the icons are stored in media/channels.

In there I can find, for example:

Channel: NPO 2

I see there is a file in media/channels with the name: 'NPO 2.png'

When I inspect the html of this channel in my browser, I can see:
Code:
<div v:if="item.channelIcon == true" class="float-right channel-icon-container"><img src="" class="channel-icon"></div>

While in other channels that do have icons, I see something like:

Code:
<div v:if="item.channelIcon == true" class="float-right channel-icon-container"><img src="service?method=channel.icon&amp;channel_id=9550" class="channel-icon"></div>

What's going wrong? And is there a way to fix this?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,841
Threads: 954
Joined: May 2006
#2
2023-02-08, 01:19 PM (This post was last modified: 2023-02-08, 01:19 PM by mvallevand.)
First try a browser refresh with ctrl-f5 to see if it is a browser cache issue. Then make sure the image name matches with case.

If it still fails runs

http://IP:8866/service?method=channel.list and see if the list shows true for icon and confirm the name there.

Martin
rmvanderspek
Offline

Junior Member

The Netherlands
Posts: 7
Threads: 1
Joined: Feb 2023
#3
2023-02-08, 01:46 PM
Ok, in the channel list, I can see that indeed the field <icon>true</icon> is missing for this channel. Is there any way to add it?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,841
Threads: 954
Joined: May 2006
#4
2023-02-08, 02:28 PM (This post was last modified: 2023-02-08, 02:29 PM by mvallevand.)
That would mean the name doesn't match for some reason. So you need to confirm exact file matches exactly including spaces.

Martin
rmvanderspek
Offline

Junior Member

The Netherlands
Posts: 7
Threads: 1
Joined: Feb 2023
#5
2023-02-08, 04:04 PM (This post was last modified: 2023-02-08, 04:05 PM by rmvanderspek.)
Thank for your help.

I think I have used the right name (including casing). Still same result though.

Code:
<channel>
<id>9557</id>
<name>NL NPO 2</name>
<number>2</number>
<minor>0</minor>
<formatted-number>2</formatted-number>
<type>0x1</type>
<details>[m3u-url]</details>
</channel>


And when I do a grep in the media/channels:
Code:
root@truenas[...irlPool/nextpvr/config/media/channels]# ls -l | grep "NL NPO 2.png"
-rw-r--r-- 1 app_npvr app_npvr   44560 Feb  4 18:08 NL NPO 2.png

I have even renamed the channel to 'test' and copied the icon to test.png, but same difference.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,841
Threads: 954
Joined: May 2006
#6
2023-02-08, 04:17 PM
Do you see the icon with

http://ip:8866/service?method=channel.ic...el_id=9557

Martin
rmvanderspek
Offline

Junior Member

The Netherlands
Posts: 7
Threads: 1
Joined: Feb 2023
#7
2023-02-08, 06:45 PM (This post was last modified: 2023-02-08, 07:07 PM by rmvanderspek.)
Yes, with that url I get the icon.
Could size be an issue? It's a pretty big icon.

I did have a few icons that where wrongly named, in the web page you could see a broken icon. In the case of NPO 2 there is nothing. (Same for NPO 3 by the way.)

I can open the database with sqllite, is there anywhere I can look for some more information to help with debugging?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,841
Threads: 954
Joined: May 2006
#8
2023-02-08, 07:24 PM
Nope, it it web server related, which is why I thought it was the cache. The API seems to be working and I suspect Kodi would get the icon, so this becomes an issue needing sub's expertise.

Martin
rmvanderspek
Offline

Junior Member

The Netherlands
Posts: 7
Threads: 1
Joined: Feb 2023
#9
2023-02-10, 12:41 PM
Ok, it's not a very urgent problem, but it would be nice to get it fixed. Thanks for the help thusfar @mvallevand

When Sub has the time, I hope he can also tell where data is stored that is not stored in the database. It would help me to understand some of the issues I'm having a little bit better :-).
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,841
Threads: 954
Joined: May 2006
#10
2023-02-10, 12:56 PM
It would just be file system filename match against /config/media/channels It is not permissions since it is true, so it would have to be something internal? Is the file a real png or misnamed?

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Missing from 7.0.0.241105 pkscout 8 480 2024-11-05, 10:00 PM
Last Post: pkscout
  What Time Does the "Delete Missing Recording" Maintenance Run? pkscout 12 3,501 2020-09-20, 05:32 PM
Last Post: pkscout

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode