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 2 3 4 5 … 34 Next »
deleting channels

 
  • 0 Vote(s) - 0 Average
deleting channels
Linox
Offline

Junior Member

USA
Posts: 5
Threads: 1
Joined: Nov 2024
#1
2024-11-29, 10:02 PM
Longtime reader, first time poster...

I'm Running Debian 12 server with NextPVR v7.0.0.241105.

My setup is with an IPTV provider in which I download the M3U and guide from them and store them in the /home/nextpvr folder. 
The EPG downloads 4 times a day and that process works great.

My M3U I would like to update once a week, mainly to update the channels for NFL games.

I've tried running this command in every way possible. With and without sudo, with one or both source_id and channel_id, or neither. I've tried specifiying a single channel_id.
In all case, none of the channels are removed.

/opt/dotnet/dotnet /opt/nextpvr/system/NScriptHelper.dll -pin:1234 -server:127.0.0.1:8866 -service:method=setting.channel.delete&source_id=26&channel_id=0

I do see the delete command in the logs, but there are no other errors or any indication that any deletes have taken place.

Removing 1 or all channels through the web interface works as expected.

Looking for any advice you may have.

Thanks!
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#2
2024-11-29, 10:16 PM
How do you figure out the correct channel_id, it won't be a display number?

Martin
Linox
Offline

Junior Member

USA
Posts: 5
Threads: 1
Joined: Nov 2024
#3
2024-11-29, 11:42 PM (This post was last modified: 2024-11-29, 11:49 PM by Linox.)
I ran a query on the channel table - select * from channel; That was the last channel returned by the query, so it was the easiest to go after.

13996|US| NCAAF 84|1949|XMLTV|<epg>
  <source>XMLTV</source>
  <file>/home/nextpvr/guide.xml</file>
  <mapping_id></mapping_id>
  <mapping_name>✦●✦| BEIN INTER |✦●✦</mapping_name>
</epg>

I've tried 13996 and 1949.

I found another thread here, I believe sub had replied indicating channel_id=0 would remove all channels, which is really what I've spent the most time trying to do. 


Thank you for your support.
Linox
Offline

Junior Member

USA
Posts: 5
Threads: 1
Joined: Nov 2024
#4
2024-11-30, 12:00 AM
Post #11 from this thread was sub's reply that channel_id=0 will delete all channels: https://forums.nextpvr.com/showthread.ph...nel.delete
That thread is a windows thread, but hoping the same thing can be accomplished in Linux.

I've also looked at this thread, which is exactly what I'd like to do, but the delete isn't cooperating.
https://forums.nextpvr.com/showthread.ph...nel.delete
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#5
2024-11-30, 01:03 AM (This post was last modified: 2024-11-30, 01:09 AM by mvallevand.)
My point was mainly how will your script know the channel OID's to delete?

Are you using the source_id for the capture_source oid?

Martin
Linox
Offline

Junior Member

USA
Posts: 5
Threads: 1
Joined: Nov 2024
#6
2024-11-30, 02:45 AM
The source_id comes from http://localhost:8866/services/service?m...ormat=json.

I have 2 listed. 26 and 30. The 26 ID has 975 channels. The 30 ID has 0 channels. If I delete that one out of devices it always comes back.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#7
2024-11-30, 08:21 PM
You might need <PinLoginAllowSettings>true</PinLoginAllowSettings> in config.xml

Might also need to quote the "-service:method=setting.channel.delete&source_id=26&channel_id=0" part of the command line, otherwise the embedded ampersands might cause problem for your shell.
Linox
Offline

Junior Member

USA
Posts: 5
Threads: 1
Joined: Nov 2024
#8
2024-12-01, 12:27 PM
The quotes did the trick. All Channels successfully deleted from the source_id!

Thank you Martin and Sub for your time. It's much appreciated!
« 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 212 2025-05-03, 04:37 PM
Last Post: Steu851
  NextPVR can't open RAI (Italian main TV channels) links f2fg 17 2,894 2025-03-29, 10:15 AM
Last Post: alice_anto
  Server crash changing channels VCR58 7 501 2025-03-27, 03:17 PM
Last Post: VCR58
  complete scanning of channels not possible evil666 84 3,378 2024-12-21, 05:58 PM
Last Post: mvallevand
  no epg in many channels alda 20 1,316 2024-11-29, 03:14 AM
Last Post: sub
  Scanning Channels Failure how 13 945 2024-09-21, 11:44 PM
Last Post: how
  Lots of channels no TV and No EPG (Freesat over SAT>IP) Morrisimo 175 19,671 2024-02-21, 11:13 AM
Last Post: PaulMc
  One tuner gets fewer channels, will it get used first? WagMan 3 620 2023-12-09, 11:15 PM
Last Post: mvallevand
  NScriptHelper.dll amend and delete channels tucka20 1 626 2023-10-30, 01:57 AM
Last Post: siradlib
Photo Scan only picking up channels on 1 multiplex sy3misn 3 736 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