PVR and Movies not working after update

Hi All,

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).

Would you know why this might be happening?

Best Regards,
Jeremy

Hi,

Have you tried restarting the PI, since the issue occurred.

Is the pi online since the update? Is it a wired or wifi connection?

PVR - Have checked the configuration or resetting? Or try disabling and re-enabling the PVR client.

Movies - Played locally or a network source?

If none of the above helps, full debugging logs are required.

Tom.

Hi Tom,

Thanks for your reply. I will put my answers inline as I think it is easier.

Have you tried restarting the PI, since the issue occurred

Yes I rebooted the PI a number of times. I also switched it off if that helps

PVR - Have checked the configuration or resetting? Or try disabling and re-enabling the PVR client.

Done already. I have resetted everything to default, disabled and enabled the PVR client - no effect.

Movies - Played locally or a network source?

Network Source.

If none of the above helps, full debugging logs are required.

Do you need the one in ~/.kodi/temp/kodi.log ?

Thanks in advance!

Jeremy

Hi,

The link provides details of logs required.

You seemed to have missed my question as to whether the pi is still connected to the internet?

Also are you able to ping your network source?

If you try and play a movie from a local source, sd card or usb stick; does it play?

Thanks Tom.

@jerdeb: Seems this question/answer has been forgotten. As it could be a source of the problem would first check that

Hi Tom,

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.

Best Regards,
Jeremy

Hi all,

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?

Best,
Jeremy

You may want to check this thread

1 Like

Thanks @fzinken! Much appreciated :slight_smile: