Guys,
Here is exactly what it is trying to do when I run the command line I posted above. It never leaves the local server, all traffic is over the loopback adapter. There are 3 request/responses:
6 0.349113594 127.0.0.1 → 127.0.0.1 HTTP 189 GET /service?method=session.initiate&ver=1.0&device=scripthelper HTTP/1.1
8 0.350777311 127.0.0.1 → 127.0.0.1 HTTP/XML 350 HTTP/1.1 200 OK
Response to this GET is:
<rsp stat="ok">
<sid>64eac11ded8e4666b4d270c27144bbda</sid>
<salt>c29b50e8-5de5-46d6-8b8b-495064bda229</salt>
</rsp>
16 0.368299903 127.0.0.1 → 127.0.0.1 HTTP 232 GET /service?method=session.login&sid=43795b08a9444eff843c99de7c48b7a6&md5=3A8AFC95332D4A8021F85838027910E6 HTTP/1.1
18 0.370179093 127.0.0.1 → 127.0.0.1 HTTP/XML 478 HTTP/1.1 200 OK
Response to this GET is:
<rsp stat="ok">
<sid>43795b08a9444eff843c99de7c48b7a6</sid>
<donator>true</donator>
<allow_settings>true</allow_settings>
<allow_watch>true</allow_watch>
<allow_schedule>true</allow_schedule>
<allow_delete>true</allow_delete>
</rsp>
This is where it goes sideways...
26 0.375573440 127.0.0.1 → 127.0.0.1 HTTP 202 GET /services/service?setting.m3u.update&sid=43795b08a9444eff843c99de7c48b7a6 HTTP/1.1
28 0.375985152 127.0.0.1 → 127.0.0.1 HTTP 165 HTTP/1.1 404 Not Found
Response to this GET is a 404 error and the script exits.
It seems to login OK and has what appears to be a session ID but the "setting.m3u.update" parameter of the service URI doesn't appear to exist?
So then I noticed a subtle difference in the requests... so I tried this on the server using curl:
http://127.0.0.1:8866/services/service?m...de7c48b7a6
Response:
<rsp stat="ok"> </rsp>
Then I tried on the command line, and there's no error!
/opt/dotnet/dotnet /opt/nextpvr/system/NScriptHelper.dll -methodetting.m3u.update
So it appears instead of "service" the syntax requires "method". I don't have the source code but can you confirm that this is correct?
And after all that, I just took a look in the NPVR DB3 file and now see it has somehow retained an old URL from before I changed my password! When I changed my password I deleted the IPTV device and set it up from scratch again. It worked fine after this but are the old URLs cached somewhere? I'm sure sure where it grabbed it from. I'll delete and setup again then try once more.
Thanks
K
Here is exactly what it is trying to do when I run the command line I posted above. It never leaves the local server, all traffic is over the loopback adapter. There are 3 request/responses:
6 0.349113594 127.0.0.1 → 127.0.0.1 HTTP 189 GET /service?method=session.initiate&ver=1.0&device=scripthelper HTTP/1.1
8 0.350777311 127.0.0.1 → 127.0.0.1 HTTP/XML 350 HTTP/1.1 200 OK
Response to this GET is:
<rsp stat="ok">
<sid>64eac11ded8e4666b4d270c27144bbda</sid>
<salt>c29b50e8-5de5-46d6-8b8b-495064bda229</salt>
</rsp>
16 0.368299903 127.0.0.1 → 127.0.0.1 HTTP 232 GET /service?method=session.login&sid=43795b08a9444eff843c99de7c48b7a6&md5=3A8AFC95332D4A8021F85838027910E6 HTTP/1.1
18 0.370179093 127.0.0.1 → 127.0.0.1 HTTP/XML 478 HTTP/1.1 200 OK
Response to this GET is:
<rsp stat="ok">
<sid>43795b08a9444eff843c99de7c48b7a6</sid>
<donator>true</donator>
<allow_settings>true</allow_settings>
<allow_watch>true</allow_watch>
<allow_schedule>true</allow_schedule>
<allow_delete>true</allow_delete>
</rsp>
This is where it goes sideways...
26 0.375573440 127.0.0.1 → 127.0.0.1 HTTP 202 GET /services/service?setting.m3u.update&sid=43795b08a9444eff843c99de7c48b7a6 HTTP/1.1
28 0.375985152 127.0.0.1 → 127.0.0.1 HTTP 165 HTTP/1.1 404 Not Found
Response to this GET is a 404 error and the script exits.
It seems to login OK and has what appears to be a session ID but the "setting.m3u.update" parameter of the service URI doesn't appear to exist?
So then I noticed a subtle difference in the requests... so I tried this on the server using curl:
http://127.0.0.1:8866/services/service?m...de7c48b7a6
Response:
<rsp stat="ok"> </rsp>
Then I tried on the command line, and there's no error!
/opt/dotnet/dotnet /opt/nextpvr/system/NScriptHelper.dll -methodetting.m3u.update
So it appears instead of "service" the syntax requires "method". I don't have the source code but can you confirm that this is correct?
And after all that, I just took a look in the NPVR DB3 file and now see it has somehow retained an old URL from before I changed my password! When I changed my password I deleted the IPTV device and set it up from scratch again. It worked fine after this but are the old URLs cached somewhere? I'm sure sure where it grabbed it from. I'll delete and setup again then try once more.
Thanks
K