Yesterday, I have updated Kodi/OSMC (got a dialog box on my UI), however, after that update OSMC is not playing any video (live using PVR addon or Movie). These were working before the update. This is the log output when choosing a live PVR channel:
21:14:10.499 T:1958551552 NOTICE: Previous line repeats 1 times.
21:14:10.499 T:1958551552 NOTICE: VideoPlayer: Opening: pvr://channels/tv/All channels/pvr.iptvsimple_1863605739.pvr`
21:14:10.499 T:1958551552 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
21:14:10.500 T:1401754608 NOTICE: Creating InputStream
21:14:10.773 T:1401754608 ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 401
21:14:10.774 T:1401754608 ERROR: CCurlFile::Open failed with code 401 for http://***THE-URI***.ts
21:14:10.891 T:1401754608 ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 401
21:14:10.891 T:1401754608 ERROR: CCurlFile::Open failed with code 401 for http:/***THE-URI***.ts
21:14:10.891 T:1401754608 ERROR: Open - failed to open source <http://***THE-URI***.ts>
21:14:10.892 T:1401754608 ERROR: CDVDInputStreamPVRManager::Open - error opening [http://***THE-URI***.ts]
21:14:10.892 T:1401754608 ERROR: CVideoPlayer::OpenInputStream - error opening [pvr://channels/tv/All channels/pvr.iptvsimple_1863605739.pvr]
21:14:10.892 T:1401754608 NOTICE: CVideoPlayer::OnExit()
21:14:10.925 T:1958551552 ERROR: PlayMedia could not play media: pvr://channels/tv/All channels/pvr.iptvsimple_1863605739.pvr
21:14:10.933 T:1958551552 NOTICE: CVideoPlayer::CloseFile()
21:14:10.933 T:1958551552 NOTICE: VideoPlayer: waiting for threads to exit
21:14:10.933 T:1958551552 NOTICE: VideoPlayer: finished waiting
21:14:10.933 T:1958551552 NOTICE: CVideoPlayer::CloseFile()
21:14:10.933 T:1958551552 NOTICE: VideoPlayer: waiting for threads to exit
21:14:10.933 T:1958551552 NOTICE: VideoPlayer: finished waiting
(Please not I changed the actual URI to THE-URI)
The live stream works on my laptop (using VLC), and it is not giving a 401 error, however, not working on OSMC. Movies are having a similar error (they are also URL).
You seemed to have missed my question as to whether the pi is still connected to the internet
Yes sorry, missed that part. The PI is connected and it is a wired connection.
Also are you able to ping your network source?
I pinged the network source and all packets transmitted were received. I also performed a wget on one of the live tv sources and it worked as a live TV stream should work.
If you try and play a movie from a local source, sd card or usb stick; does it play?
I don’t have movies right now, but I can try to get one, at least download a youtube video and check with that. Speaking about youtube videos, I did install the youtube add on OSMC, just out of curiosity, and it did play videos.
The link provides details of logs required.
Thanks! Will take a look of the logs required after work.
I managed to find out the root of the problem! Basically the network source was having a problem with the User-Agent. Maybe a future request would be (probably to Kodi not OSMC) that they would allow users to change the User-Agent from some setting. Currently, as far as I could understand, this is only hard-coded in the code.
I have one side question: Is it possible to run some python scripts on OSMC at startup, before the media center loads?