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 … 12 13 14 15 16 … 34 Next »
NScriptHelper.dll -service:setting.m3u.update

 
  • 0 Vote(s) - 0 Average
NScriptHelper.dll -service:setting.m3u.update
TheKenR
Offline

Junior Member

Canada
Posts: 39
Threads: 8
Joined: Apr 2022
#1
2022-06-14, 10:07 PM
Hello,

I am in need of a method of refreshing the URLs provided in my IPTV M3U file daily. My provider updates the URLs with new access tokens daily. 

I've read an old post regarding "NScriptHelper.dll -serviceConfusedetting.m3u.update". This sounds like it's what I need but is it still supported? When I execute it on my Ubuntu 20.04 server I get a 404 error. The post I read was old, maybe the syntax or parameters have changed? 

Is there some other method I could call from a script to update the URLs on my channel list in NPVR?

I'm running NVPR 5.2.7.220410 on this Ubuntu server.

ken@ubuntu:/var/opt/nextpvr/scripts$ /opt/dotnet/dotnet /opt/nextpvr/system/NScriptHelper.dll -serviceConfusedetting.m3u.update
[1] Unexpected error with service: System.Net.WebException: The remote server returned an error: (404) Not Found.
  at System.Net.HttpWebRequest.GetResponse()
  at System.Net.WebClient.GetWebResponse(WebRequest request)
  at System.Net.WebClient.DownloadBits(WebRequest request, Stream writeStream)
  at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
  at System.Net.WebClient.DownloadString(Uri address)
  at System.Net.WebClient.DownloadString(String address)
  at NScriptHelper.Program.GetService(String service)
ken@ubuntu:/var/opt/nextpvr/scripts$


Thanks!
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#2
2022-06-14, 10:28 PM (This post was last modified: 2022-06-14, 10:29 PM by mvallevand.)
No and I think this is still valid https://forums.nextpvr.com/showthread.ph...#pid560456 Most people don't want thousand of URL's added.

Perhaps use xteve to proxy this type of m3u file.

Martin
TheKenR
Offline

Junior Member

Canada
Posts: 39
Threads: 8
Joined: Apr 2022
#3
2022-06-14, 11:28 PM
(2022-06-14, 10:28 PM)mvallevand Wrote: No and I think this is still valid https://forums.nextpvr.com/showthread.ph...#pid560456  Most people don't want thousand of URL's added.

Perhaps use xteve to proxy this type of m3u file.

Martin

Hi Martin,

I'm not adding thousands of URLs, just updating the ~400 I subscribe to in the M3U file. Each night these ~400 channels change URLs so I would simply like to have NPVR refresh the URLs from the latest published M3U. That's all.

I just don't know why I've getting a 404 error when I run the command. There's nothing at all in any logs that I can find.

Thanks
Ken
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#4
2022-06-15, 12:52 AM
If you run this instead, does it make a difference?

dotnet NScriptHelper.dll -service:method=setting.m3u.update
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#5
2022-06-15, 01:02 AM (This post was last modified: 2022-06-15, 01:10 AM by mvallevand.)
With that you need

<PinLoginAllowSettings>true</PinLoginAllowSettings>

And it will load every channel in every m3u plus I find updates can wipe out groups or EPG mapping.

I don't think it supports #EXTVLCOPT either after looking at the disaster this made of my test system.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#6
2022-06-15, 01:36 AM
(2022-06-15, 01:02 AM)mvallevand Wrote: With that you need

    <PinLoginAllowSettings>true</PinLoginAllowSettings>
Yes, you do need that in config.xml.

Quote:I don't think it supports #EXTVLCOPT either after looking at the disaster this made of my test system.
What was your source specifying in EXTVLCOPT?

I'm not overly surprised. Behind the scenes, this function is no longer used in NextPVR. The manual 'update m3u' works differently (effectively an import, and merging with any channels already saved)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#7
2022-06-15, 01:41 AM
It was a user agent override

Martin
TheKenR
Offline

Junior Member

Canada
Posts: 39
Threads: 8
Joined: Apr 2022
#8
2022-06-15, 12:01 PM
(2022-06-15, 12:52 AM)sub Wrote: If you run this instead, does it make a difference?

dotnet NScriptHelper.dll -service:method=setting.m3u.update

Hi Sub,

No I need the full paths because I do not have dotnet 3.1 or the NScriptHelper.dll in my path.

This does work in my PostProcessing script. So I'm pretty sure my runtime environment is OK.

/opt/dotnet/dotnet /opt/nextpvr/system/NScriptHelper.dll  -rename "$1" "$outfile"

ken@ubuntu:/var/opt/nextpvr/scripts$ /opt/dotnet/dotnet --info
  It was not possible to find any installed .NET Core SDKs
  Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
      https://aka.ms/dotnet-download

Host (useful for support):
  Version: 3.1.25
  Commit:  9165b88e05

.NET Core SDKs installed:
  No SDKs were found.

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 3.1.23 [/opt/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.25 [/opt/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.23 [/opt/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.25 [/opt/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download
TheKenR
Offline

Junior Member

Canada
Posts: 39
Threads: 8
Joined: Apr 2022
#9
2022-06-15, 12:11 PM
(2022-06-15, 01:02 AM)mvallevand Wrote: With that you need

    <PinLoginAllowSettings>true</PinLoginAllowSettings>

And it will load every channel in every m3u plus I find updates can wipe out groups or EPG mapping.

I don't think it supports #EXTVLCOPT either after looking at the disaster this made of my test system.

Martin

Ok, I stopped nextpvr-server, changed that setting in config.xml and re-started nextpvr-server. Unfortunately the script still gives me a 404 error. My M3U does not have #EXTVLCOPT tags so I should be fine there. I'm going to try to log network traffic to see if I can determine what URL it's attempting to get.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#10
2022-06-15, 12:51 PM
You will need to use /opt/dotnet/dotnet with the deb installer since I separated it from the distro version as I wasn't sure it would be compatible. Sub's instruction was generic.

Send your zipped logs and we can have a look.

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Linux Command Line To Initiate SchedulesDirect EPG Update LinuxDVR 1 148 2025-04-13, 06:35 PM
Last Post: mvallevand
  update of the media database kfmf 9 507 2024-11-17, 12:09 PM
Last Post: mvallevand
  latest update superray2 7 513 2024-11-08, 02:16 PM
Last Post: superray2
  How do I shut the service down? Can I run it on as needed basis instead? snow 3 996 2023-12-25, 04:41 AM
Last Post: mvallevand
  NScriptHelper.dll amend and delete channels tucka20 1 626 2023-10-30, 01:57 AM
Last Post: siradlib
  [split] EPG update issue Obmit 10 1,472 2022-10-07, 10:22 PM
Last Post: Obmit
  Update EPG stops after 6 frequencies!? DrWG 10 2,903 2021-11-14, 10:07 PM
Last Post: mvallevand
  Fixed? - PostProcessing - NScriptHelper.dll rename failed following 5.2.1 upgrade lostboy 9 2,063 2021-10-26, 05:42 PM
Last Post: sub
  VAAPI transcoder setting VCR58 4 2,985 2021-07-10, 10:23 PM
Last Post: VCR58
  Headless Linux install and update for dummies snagglewest 5 10,417 2021-06-12, 01:37 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