NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Kodi / XBMC v
« Previous 1 2 3 4 5 … 43 Next »
Kodi 21.0 Omega/NextPVR 21.1.0 PVR & Live TV Group Manager

 
  • 0 Vote(s) - 0 Average
Kodi 21.0 Omega/NextPVR 21.1.0 PVR & Live TV Group Manager
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#21
2024-08-05, 08:49 PM
There is more going on here, it sounds like the oid is changing not just the channel name.

I created a Kodi only channel group "Test group" and added 3 stations.  I then when into NextPVR and manually renamed two of them and the two names in the group were changed in Kodi without have to do anything.

Martin


Attached Files Thumbnail(s)
       
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#22
2024-08-05, 08:54 PM
(2024-08-05, 08:49 PM)mvallevand Wrote: There is more going on here, it sounds like the oid is changing not just the channel name.
I think he is saying this is happening after doing an 'Update Channels'.

There is no real channel identifiers in m3u files for us to track channels. We've pretty much only only got the name or url to go by, and the url is known to often change. Because of this, NextPVR only really knows if it already a channel if the channel name is the same....so if he changes the name in NextPVR, and updates the channels (and hit's save while it's ticked), NextPVR wont know it's a channel it already has, and a new channel will be created. I might be able to store the original m3u channel name somewhere, so that changing the channel name in NextPVR wont make it loose track of the association.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#23
2024-08-05, 09:06 PM
Right what I am saying is he shouldn't be renaming it in NextPVR and expecting a rescan to update the URL since it can't be ticked as an update.

What I hadn't considered was if the name isn't in the m3u file after a rescan is it automatically deleted?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#24
2024-08-05, 09:09 PM
(2024-08-05, 09:06 PM)mvallevand Wrote: What I hadn't considered was if the name isn't in the m3u file after a rescan is it automatically deleted?
No, it's just left there unchanged in NextPVR. It doesn't automatically delete channels.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#25
2024-08-05, 09:23 PM
As long as he follows the suggestion to only tick changes to add new stations, or accepts that if the URL changes on a renamed (in NextPVR) station he will lose scheduled recordings and groups in NextPVR and Kodi he should be ok then

A future enhancement to the NextPVR IPTV channel_mapping table could be to include the m3u name to allow for renaming the station in NextPVR. Some IPTV names are really ugly. Using just the guideID which may not even be present is not that safe.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#26
2024-08-05, 09:38 PM
I've made a change for next build, so that NextPVR is storing and using the original channel name, so better able to cope with an IPTV channels being renamed then updated.
bouilliabai
Offline

Member

USA
Posts: 63
Threads: 1
Joined: May 2024
#27
2024-08-06, 06:01 PM
Heh, seems I missed a lot of the fun going offline and doing some real work for a change.

First off, a big thanks to you both for a willingness to look into issues users are experiencing. Most of us don't know what we're doing in the first place, and it takes quite a bit of patience to find any value in our mantric mutterings.

Per #2 and #3, regardless of whether the results in Update Channels are Saved or Canceled, some or all ticked or unticked on Save, channels that no longer appear in an m3u for a given IPTV service are, in fact, deleted from the NextPVR channels listing, and in turn, the Kodi channel manager. However, they remain in custom channel groups created in Kodi until manually removed, at which point they are no longer offered. Perhaps this latter behavior has been addressed in the Kodi patch referred to earlier, but which I've yet to find online to check out. I do have some fairly recent nightly updates running, but if that's where the patches are appearing, they must not be recent enough versions.

Similarly, channels with names changed in NextPVR are deleted by Update Channels, whether Saved Or Canceled, and if ticked and Saved, new channels with the channel names given in the m3u are created. Kodi is not resilient to this and sees them as new channels as well, with all customizations lost.

As I understood it, the advice was to Update Channels, then Cancel to update only the URLs. It stands to reason that this would not work for channels renamed in NextPVR since they are deleted by that process. It hadn't occurred to me that scheduled recordings would be affected as well. There are a lot of moving parts to consider here.

In a scenario where the channel number changes in an m3u, #4 describes the outcome. One thing I didn't try is changing the channel number first in NextPVR, then ticking and saving on Update Channels. If channel identifiers aren't stored as indicated above, it's possible that NextPVR would see it as a new channel as well. Channel number changes in NextPVR propagate to Kodi's channel manager, and are reflected in All Channels or any other group mirrored from NextPVR, but in custom groups created in Kodi's group manager, the old channel number remains until the channel is cycled out of its custom group(s), then back in and saved.

Agreed that a basic issue in tracking channels is the inconsistent usage of channel attributes in their definitions. In the Pluto extra, tvg-id is defined by the slug listed on the API. On Matt H's lists, channel-id seems to be the primary identifier, with tvg-id sometimes being a substring of channel-id, and in one case not appearing at all. Spot checking a few of the 3rd party playlists on AP SAT TV shows that only channel names and URLs are defined. The names may be "ugly", but it may be the only viable attribute by which to track channels.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#28
2024-08-06, 06:50 PM
Sub was incorrect earlier since files removed from the m3u will be lost on a save, but the future change to use the display name as the key and not the NextPVR display name will allow you to edit names. If they aren't in the m3u it makes sense to delete them.

I mentioned more than once that you need a consistent provider for your m3u files, and that would include mjh m3u files. Hopefully the display name is more consistent than tvg-id. I already got sub in trouble asking for him to prefer the tvg-name (he had to revert back to display name)

Don't expect any magic bullet expecting the m3u channel numbers to be part of the update process, just the add. It would make no logical sense to do it that way. However changing a channel number in NextPVR doesn't affect the oid or any of the logic in NextPVR or Kodi based on the oid.

The tvg-id on my extras is there because as I noted I don't know how sub updates extras but I avoid updating them in a scan, I just add (and manually delete). You can still rename and renumber in NextPVR without changing an oid.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#29
2024-08-06, 10:00 PM
(2024-08-06, 06:50 PM)mvallevand Wrote: Sub was incorrect earlier since files removed from the m3u will be lost on a save, but the future change to use the display name as the key and not the NextPVR display name will allow you to edit names. If they aren't in the m3u it makes sense to delete them.
Yeah, I was wrong in this one. I forgot I had added logic to remove IPTV channels that were no longer available in the m3u.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3


Possibly Related Threads…
Thread Author Replies Views Last Post
  Kodi Channel not updating aTF6i 2 347 2025-03-09, 12:26 AM
Last Post: aTF6i
  EPG not loading in Kodi? membball84 3 325 2025-02-13, 01:24 AM
Last Post: membball84
  Automated Updates of IPTV Channels in NPVR and Kodi via APIs taylormia 1 720 2025-02-04, 03:13 AM
Last Post: lustfulmacaw
  Kodi 22 (Piers) and library thumbnails mvallevand 8 1,072 2025-01-15, 06:32 PM
Last Post: mvallevand
  Suggestions for the KODI Add-on Escape7 38 8,726 2024-12-20, 05:31 AM
Last Post: sub
  NextPVR and Android 10 charlyms 7 719 2024-11-17, 09:39 PM
Last Post: mvallevand
  Kodi Channel Icons wrong and can't be corrected wapkaplet 11 921 2024-10-23, 02:11 PM
Last Post: mvallevand
  Kodi PVR Client Not Working trongod 8 1,343 2024-09-11, 10:20 PM
Last Post: trongod
  NextPVR Client for CoreELEC ChrisI 3 521 2024-09-07, 10:11 PM
Last Post: mvallevand
  Kodi-V5 WiFi Problem? kerryball 0 355 2024-06-26, 06:49 AM
Last Post: kerryball

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

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

Linear Mode
Threaded Mode