NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 6 7 8 9 10 … 100 Next »
Automate Update Channels on Specific IPTV Device or Group of Devices

 
  • 0 Vote(s) - 0 Average
Automate Update Channels on Specific IPTV Device or Group of Devices
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#11
2024-11-11, 07:09 PM
I'm not entirely sure you can do it the way you're suggesting here, but the approximate commands are:

method=setting.channel.delete&source_id=x&channel_id=0 (channel_id 0 indicates all channels on source_id x)

method=channel.groups.remove&id=groupname

method=system.epg.update

I don't have a full list of the commands give you. There is probably 100+ commands, and not really in the mood for documenting them.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#12
2024-11-11, 07:13 PM
NScriptHelper is effectively calling NextPVR's api. A lot of these apis are really intended to called as a sequence of steps so might not work quite the way you expect. For example method=system.epg.update will probably return nearly immediately, but have kicked off the EPG in the background. It won't wait for completion.
taylormia
Offline

Junior Member

United States
Posts: 39
Threads: 5
Joined: Apr 2022
#13
2024-11-11, 07:31 PM
Thanks for this. I will leave the EPG update as the last step and insert wait commands between each of the others. I understand about the list of commands.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#14
2024-11-11, 07:38 PM
In the browser F12 will show you how the API calls works. the parameters sometimes are not trivial. None of this of course will be supported here but play around if you are able.

Martin
taylormia
Offline

Junior Member

United States
Posts: 39
Threads: 5
Joined: Apr 2022
#15
2024-11-11, 09:14 PM
(2024-11-11, 07:09 PM)sub Wrote: I'm not entirely sure you can do it the way you're suggesting here, but the approximate commands are:

method=setting.channel.delete&source_id=x&channel_id=0 (channel_id 0 indicates all channels on source_id x)

method=channel.groups.remove&id=groupname

method=system.epg.update

I don't have a full list of the commands give you. There is probably 100+ commands, and not really in the mood for documenting them.

Which log can I look at to see the results of these commands/API calls ?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#16
2024-11-11, 09:17 PM
From memory, NScriptHelper should output a bit of json to let you know the outcome of each call. There would no simple way to check the logs for the results. The messages would be nrecord.log though.
taylormia
Offline

Junior Member

United States
Posts: 39
Threads: 5
Joined: Apr 2022
#17
2024-11-11, 10:09 PM
Can the group name be in quotes as shown below since there is a space in the name? 
Code:
NScriptHelper.exe -service:method=method=channel.groups.remove&id="IPTV Channels"

Does the output of each API call have timestamps? I plan on piping the output to a log file.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#18
2024-11-11, 10:18 PM
Sub explained this is not documented and not really for general use because he doesn't have time which means you pretty much have to do with trial and error like I and others have done.

If you really want more control access the API by python or other scripting language. I've posted some example to get users started.

Martin
taylormia
Offline

Junior Member

United States
Posts: 39
Threads: 5
Joined: Apr 2022
#19
2024-11-11, 10:22 PM
OK. Thanks. I will look for your posts.
taylormia
Offline

Junior Member

United States
Posts: 39
Threads: 5
Joined: Apr 2022
#20
2024-11-11, 10:57 PM
When I run this command:
NScriptHelper.exe -service:method=setting.channel.delete&source_id=51&channel_id=0

I get:
Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
File name: 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
'source_id' is not recognized as an internal or external command,
operable program or batch file.
'channel_id' is not recognized as an internal or external command,
operable program or batch file.

Do I need a specific version of .NET installed or is it something else?
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): « Previous 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with encrypted channels achim_m 0 60 2025-05-03, 03:34 PM
Last Post: achim_m
  Channel 7 TV channels do not load into my list cmacd 0 60 2025-05-03, 02:31 AM
Last Post: cmacd
  EPG not found for some channels via DVB-T2 (version 7) Kotoka 79 3,875 2025-04-26, 09:09 PM
Last Post: mvallevand
  Since v7: EPG mostly "no listings", and channels change during recordings :'( rightbryce 37 2,562 2025-04-20, 12:41 AM
Last Post: rightbryce
  Schedulesdirect will not update.. shortputt 8 406 2025-04-11, 07:39 PM
Last Post: BrettB
  IPTV how to johnm0101 22 1,134 2025-03-27, 06:13 PM
Last Post: jimil
  How many IPTV streams should i be able to record at the same time? sharkbite 6 397 2025-03-27, 01:26 AM
Last Post: sharkbite
  EPG not found for some channels - DVB/ATSC (NextPVR version 7) Nimoder 22 1,091 2025-03-12, 10:18 PM
Last Post: sub
  Recording IPTV lemmy999 8 486 2025-03-02, 06:13 PM
Last Post: lemmy999
  PIN or password protect group(s)? Druhl 1 166 2025-02-27, 04:16 PM
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