NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 5 6 7 8 9 … 34 Next »
NScriptHelper.dll amend and delete channels

 
  • 0 Vote(s) - 0 Average
NScriptHelper.dll amend and delete channels
tucka20
Offline

Junior Member

UK
Posts: 4
Threads: 2
Joined: Sep 2023
#1
2023-09-14, 09:53 AM
Hi all,

I have the following running as a cronjob every 6 hours to refresh channels in an IPTV list. This works great for adding channels from the m3u file, but it doesn't edit the existing channels. I was hoping there was a way to have the script amend channel numbers and delete missing channels per the m3u?

/opt/dotnet/dotnet /opt/nextpvr/system/NScriptHelper.dll -service:method=setting.m3u.update


Thanks
siradlib
Offline

Junior Member

Deutschland
Posts: 1
Threads: 0
Joined: Oct 2023
#2
2023-10-30, 01:57 AM (This post was last modified: 2023-10-30, 02:05 AM by siradlib.)
Hello,

just a very "raw" approach which I haven´t tested yet, but it seems to work for me:

0. as a prerequisite: Don´t forget to set
Code:
<PinLoginAllowSettings>true</PinLoginAllowSettings>

first in the file /var/opt/nextpvr/config.xml and restart NextPVR afterwards (you only need to do this once)

1. if you would like to update some IPTV information, edit URLs (or whatever you need to edit) in your m3u file (IPTV list) accordingly

2. delete all channels, without this you have "ghost" channels appearing in NextPVR. This also should delete channels from NextPVR which aren´t present in the m3u file anymore.
Code:
sudo /opt/dotnet/dotnet /opt/nextpvr/system/NScriptHelper.dll -pin:1234 -server:127.0.0.1:8866 -service:method=setting.channel.delete


3. re-read m3u file (IPTV list)
Code:
sudo /opt/dotnet/dotnet /opt/nextpvr/system/NScriptHelper.dll -pin:1234 -server:127.0.0.1:8866 -service:method=setting.m3u.update

Changes are reflected immediately, no reload/restart of NextPVR is needed
To find out, I made changes in the web interface while running the following on the command line:
Code:
sudo tcpdump -A port 8866|grep GET
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  No DVB-T channels found Steu851 3 473 2025-05-03, 04:37 PM
Last Post: Steu851
  NextPVR can't open RAI (Italian main TV channels) links f2fg 17 3,707 2025-03-29, 10:15 AM
Last Post: alice_anto
  Server crash changing channels VCR58 7 794 2025-03-27, 03:17 PM
Last Post: VCR58
  complete scanning of channels not possible evil666 84 4,749 2024-12-21, 05:58 PM
Last Post: mvallevand
  deleting channels Linox 7 666 2024-12-01, 12:27 PM
Last Post: Linox
  no epg in many channels alda 20 1,820 2024-11-29, 03:14 AM
Last Post: sub
  Scanning Channels Failure how 13 1,366 2024-09-21, 11:44 PM
Last Post: how
  Lots of channels no TV and No EPG (Freesat over SAT>IP) Morrisimo 175 23,684 2024-02-21, 11:13 AM
Last Post: PaulMc
  One tuner gets fewer channels, will it get used first? WagMan 3 741 2023-12-09, 11:15 PM
Last Post: mvallevand
Photo Scan only picking up channels on 1 multiplex sy3misn 3 837 2023-10-02, 09:15 AM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode