I'm having trouble getting the my HDHR to scan channels. The tuners are detected, but no channels appear when I click the "Scan Channels" button.
I noticed this error in red when scrolling back through the Terminal window:
[INDENT][COLOR="#FF0000"][25] Unexpected error in legacy scan: Newtonsoft.Json.JsonReaderException: Error reading JArray from JsonReader. Current JsonReader item is not an array: Null. Path '', line 1, position 4.
at Newtonsoft.Json.Linq.JArray.Load(JsonReader reader, JsonLoadSettings settings)
at Newtonsoft.Json.Linq.JArray.Parse(String json, JsonLoadSettings settings)
at NShared.Recorders.HDHomeRunScanner.LegacyScan(HDHomeRun device, Dictionary`2 parameters, String& reason)[/COLOR][/INDENT]
Is anyone else having this issue? Have I missed a step?
Since upgrading to the latest build i am unable to stream my iptv service from the web client or from kodi. It was working in the previous build. Any help is appreciated
I have a ton of utilities and a client that I am dragging up to v5 compatibility. All of them currently read and/or modify the database directly and I am trying to get away from that using the http calls.
I know you are super busy and I'm trying to bug you as little as possible. Right now I am trying to learn by reproducing the calls that the web client makes.
My question is this: Do I need to login to use calls like: "/services/service?method=channel.list&format=json"? or is logging in irrelevant for applications?
When the web page logs in, it gets a return code of 302.
When I login using the code below, I get a return code of 200. Yet, I can get a channel listing.
So, I am confused at this point. Did I login successfully? Do I need to login at all? Did I get the channel listing because I am already logged in with the web interface in chrome? How do I log out?
Code:
//function doLogin()
//{
// var salt = getParameterByName("salt");
// var username = $("#email").val();
// var password = MD5($("#password").val());
// var combined = MD5(salt + ":" + username + ":" + password);
// window.location.href = 'login.html?hash=' + combined;
//}
public async Task<bool> doLogin()
{
string url = "http://192.168.86.25:8866";
try
{
//login
fHttpResponseMsg = await fHttpClient.GetAsync(url);
fHttpRequestMsg = fHttpResponseMsg.RequestMessage;
string query = fHttpRequestMsg.RequestUri.Query;
var parts = HttpUtility.ParseQueryString(query);
string salt = parts.Get("salt");
string passMD5 = CreateMD5("password").ToLower();
string hash = CreateMD5(string.Format("{0}:{1}:{2}", salt, "admin", passMD5));
hash = hash.ToLower();
string loginRequest = string.Format("{0}/login.html?hash={1}", url, hash);
fHttpResponseMsg = await fHttpClient.GetAsync(loginRequest);
fHttpRequestMsg = fHttpResponseMsg.RequestMessage;
//get channel listing
string serviceRequest = string.Format("{0}/services/service?method=channel.list&format=json", url);
fHttpResponseMsg = await fHttpClient.GetAsync(serviceRequest);
string json = await fHttpResponseMsg.Content.ReadAsStringAsync();
return true;
}
catch
{
return false;
}
}
public static string CreateMD5(string input)
{
// Use input string to calculate MD5 hash. Cut and paste from Stackoverflow
using (System.Security.Cryptography.MD5 md5 = System.Security.Cryptography.MD5.Create())
{
byte[] inputBytes = System.Text.Encoding.UTF8.GetBytes(input);
byte[] hashBytes = md5.ComputeHash(inputBytes);
// Convert the byte array to hexadecimal string
StringBuilder sb = new StringBuilder();
for (int i = 0; i < hashBytes.Length; i++)
{
sb.Append(hashBytes[i].ToString("X2"));
}
return sb.ToString();
}
}
I tried the .deb installer a few times this morning but it's having issues. I started with a clean install of Unbutu 18.04 server in a Freenas VM. I first ran the installer as you noted in the thread. It appeared to install correctly but i was unable to pull up the web page and running the status command give me the below output. A reboot of the VM didn't help so I installed .NET first using these directions. Still no joy.
Next I rolled back to a fresh VM and installed .NET first using these directions and ran the .deb installer again. Still no joy... It appears NPVR is running, but I can't get to the web page with a connection refused. I'm guessing it's something to do with the web server but I got no idea were to start. I'm for all purposes a linux noob, but I am comfortable with the cli,
Any ideas?
Code:
nextpvr@nextpvr:~$ service nextpvr-server status
● nextpvr-server.service - NextPVRServer
Loaded: loaded (/usr/lib/systemd/system/nextpvr-server.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Sun 2019-08-04 11:58:11 EDT; 2min 13s ago
Process: 1478 ExecStart=/opt/nextpvr/shell/server.sh start (code=exited, status=0/SUCCESS)
Aug 04 11:58:09 nextpvr systemd[1]: Starting NextPVRServer...
Aug 04 11:58:09 nextpvr server.sh[1478]: Starting server..
Aug 04 11:58:09 nextpvr server.sh[1478]: Did you mean to run dotnet SDK commands? Please install dotnet SDK from:
Aug 04 11:58:09 nextpvr server.sh[1478]: https://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
Aug 04 11:58:11 nextpvr server.sh[1478]: Done. PID=
Aug 04 11:58:11 nextpvr systemd[1]: Started NextPVRServer.
nextpvr@nextpvr:~$
Hi. I have been using NextPVR for nearly two years now, and am very happy with it. I have NextPVR 4.2.4 installed on a laptop as a 'server', and initially used Kodi on an Android box attached to my TV as the client. Generally it worked very well. About six months ago I replaced the Android box with an Amazon Firestick 4K, and took the opportunity to upgrade my Kodi client from 17.6 to 18.1. That too worked well with NPVR. Then a few days ago, I started to experience problems loading Kodi on the Firestick. When I click on the Kodi icon to launch it, the Leia splash screen appears as normal, then the usual Kodi home screen, and in the top right corner the 'Loading channels from clients' process starts. But, about 25% of the way through that, after just a few seconds, the process momentarily freezes, and then Kodi closes and dumps me back out to the Firestick home screen.
I wondered if there was now a more current version of Kodi, and found there was. So, today I upgraded it from 18.1 to 18.3, but exactly the same thing is still happening. The upgrade hasn't fixed it. I can't get Kodi to stay loaded for more than about 10 seconds until it gets part way through the loading channels from client process. I saw in another forum that there might be a problem in Kodi, where under Settings / PVR & Live TV / General / Channel Manager there could be a channel marked as 'not active', but where the 'Activate guide' flag is not set to 'false'. However, I can't get Kodi to stay loaded for long enough for me to investigate that, and I don't know how to stop the Kodi NPVR add-on from trying to load the guide while I check.
Do you have any ideas how I can troubleshoot this? I know you normally ask for logs, but I don't know how to obtain a log file from a Firestick. Hoping you can help!
(Incidentally, I am not seeing any problems with the NextPVR back-end on my laptop - that is working just fine, the same as it always has.)
Updated to the latest revision today, which pulled a file or 2, but the docker wouldn't start. So I deleted the image file completely and pulled all files, but still no go.
Today sub released a beta version of a Debian based installer for NextPVR v5. This should work on any apt based linux including Ubuntu, Debian, Mint, Raspian and Armbian that use systemd for services.
This installer should do download all the requirements for running NextPVRServer and create a service to control the server. The server runs as user nextpvr as a security issue.
Been playing with IPTV again and found far too many channels imported and having trouble tidying up (fell back to delete database!)
In settings > channels all the 1000's of channels appear and can be flagged both individually and in a block with the normal normal Windows keys.
However, to delete I appear to be only able to hit the dustbin icon and not the delete key. I am deleting from the end (as that is where the garbage channels appear) but the dustbin icon only appear at the top of the first page, so I have to scroll up 70- odd thousand channels . It would be nice to have the dustbin available to all the time and/or the delete key working.
ta