2021-12-12, 01:18 AM
is there a good free python IDE for windows I can download?
2021-12-12, 01:18 AM
is there a good free python IDE for windows I can download?
2021-12-12, 01:37 AM
Fwiw I use Visual Studio Code. There are lots of choices. Google or DuckDuckGo will give you better answers then I can
Martin
2021-12-12, 07:50 PM
ok so,
lots of research has paid off and you are right Python is the key but here is my problem, why does the stream play in VLC and not NPVR? I'm guessing ffmpeg has something to do with transcoding it??? how do i get the stream to play?? I keep getting "failed to start requested stream"
2021-12-12, 08:00 PM
sorry, forgot to ask.
I was able to get channels imported via a m3u8 file for a iptv device but now I need to update the tokens can a python application be called as an extra or where and how would I use this file I would need this file to run every time a new channel is selected
2021-12-12, 08:03 PM
Are you playing the m3u8 file in VLC? If so you would use a different type of extra then sub showed you. The output type and the channel line would be output="m3u8" and the channel line in the xml and the python script should be only writing the URL to stdout, ie print ("https://......m3u8")
Martin
2021-12-12, 08:05 PM
(2021-12-12, 08:00 PM)buntay20 Wrote: I was able to get channels imported via a m3u8 file for a iptv device but now I need to update the tokensYes, that's why you'd use a extra. ie, it's not just a simple url that can be imported as an IPTV device - it's got tokens and other crap that needs to change each time. So you'd use extra, and NextPVR would call whatever command you want, and you'd find the tokens and current url etc, and could either return the transport stream, or a m3u8 (with the updated tokens etc). If you're going to be returning an m3u8 url, your extra would be in this format: Code: <extras> In this case, test.bat would just write a url to stdout, which NextPVR would read, and it'd take care of the rest
2021-12-12, 08:33 PM
Quote:Are you playing the m3u8 file in VLC? https://h5.ustvgo.la/ABC/myStream/playli...XRlcz0yNDA= link has no line breaks this plays fine in VLC as is but not NVPR.
2021-12-12, 08:35 PM
If you want to post the logs, I'll see if anything stands out
2021-12-12, 08:37 PM
Quote:"https://h5.ustvgo.la/ABC/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9MTIvMTIvMjAyMSA4OjIxOjI3IFBNJmhhc2hfdmFsdWU9TDVMdERxNnE1ZGI0Tk40aWRKakZ6Zz09JnZhbGlkbWludXRlcz0yNDA="minus quotation marks |
|