flubshi / pvr.waipu

Waipu.tv PVR Plugin for Kodi
21 stars 12 forks source link

o2 waipu not working ERROR: missing param streamUrl #181

Closed axbg86159 closed 2 years ago

axbg86159 commented 2 years ago

Hi, there's no streaming anymore when trying to connect to o2waiputv since the 4. of march 2022. Maybe an api-change?

ERROR: missing param streamUrl AddOnLog: pvr.waipu: HTTP response code: 400.

System: Debian Bullseye amd64 with deb-multimedia.org repository Kodi: kodi 5:19.1-dmo3 amd64 kodi-inputstream-adaptive: 1:2.6.23-dmo1

Thx a lot for your good work!

Debug information:

2022-03-06 09:05:21.334 T:36493 DEBUG : easy_acquire - Created session to https://device-capabilities.waipu.tv 2022-03-06 09:05:21.594 T:36493 DEBUG : AddOnLog: pvr.waipu: HTTP response code: 201. 2022-03-06 09:05:21.594 T:36493 DEBUG : AddOnLog: pvr.waipu: Location: . 2022-03-06 09:05:21.594 T:36493 DEBUG : AddOnLog: pvr.waipu: [X-Device-Token] response: {"token":"eyJhb-- here has been a token --6JLc1oH5wMeh6AWC3ufw","expiresAt":"2022-03-06T09:05:21+0000","expiresIn":3600} 2022-03-06 09:05:21.594 T:36493 DEBUG : AddOnLog: pvr.waipu: [X-Device-Token] discovered token: eyJhb-- -- here has been a token--6JLc1oH5wMeh6AWC3ufw 2022-03-06 09:05:21.594 T:36493 DEBUG : AddOnLog: pvr.waipu: [X-Device-Token] expires: 1646557521; 2022-03-06 09:05:21.594 T:36493 DEBUG : AddOnLog: pvr.waipu: [GetStreamURL] Post data: {"stream": { "station": "ZDF", "protocol": "dash", "requestMuxInstrumentation": false}} 2022-03-06 09:05:21.594 T:36493 DEBUG : AddOnLog: pvr.waipu: Http-Request: POST https://stream-url-provider.waipu.tv/api/stream-url. 2022-03-06 09:05:21.595 T:36493 DEBUG : AddOnLog: pvr.waipu: Add cookies for host: stream-url-provider.waipu.tv. 2022-03-06 09:05:21.614 T:36493 DEBUG : CurlFile::ParseAndCorrectUrl() adding custom header option 'Authorization: ***' 2022-03-06 09:05:21.614 T:36493 DEBUG : CurlFile::ParseAndCorrectUrl() adding custom header option 'Content-Type: application/vnd.streamurlprovider.stream-url-request-v1+json' 2022-03-06 09:05:21.614 T:36493 DEBUG : CurlFile::ParseAndCorrectUrl() adding custom header option 'X-Device-Token: eyJhbGciOiJIUzUxMiJ- here was the token -3ufw' 2022-03-06 09:05:21.614 T:36493 DEBUG : CurlFile::Open(0x55bedb8e3710) https://stream-url-provider.waipu.tv/api/stream-url 2022-03-06 09:05:21.615 T:36493 DEBUG : easy_acquire - Created session to https://stream-url-provider.waipu.tv 2022-03-06 09:05:21.906 T:36493 DEBUG : AddOnLog: pvr.waipu: HTTP response code: 400. 2022-03-06 09:05:21.906 T:36493 DEBUG : AddOnLog: pvr.waipu: Location: . 2022-03-06 09:05:21.906 T:36493 ERROR : AddOnLog: pvr.waipu: [GetStreamURL] ERROR: missing param streamUrl 2022-03-06 09:05:21.906 T:36493 DEBUG : AddOnLog: pvr.waipu: Stream URL -> 2022-03-06 09:05:21.907 T:36493 ERROR : GetChannelStreamProperties: Add-on 'waipu.tv PVR add-on:connected' returned an error: the command failed 2022-03-06 09:05:21.937 T:36493 DEBUG : CPlayerCoreFactory::GetPlayers(pvr://channels/tv/Alle%20Kan%c3%a4le/pvr.waipu_100324.pvr) 2022-03-06 09:05:21.937 T:36493 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: system rules 2022-03-06 09:05:21.937 T:36493 DEBUG : CPlayerSelectionRule::GetPlayers: matches rule: system rules 2022-03-06 09:05:21.937 T:36493 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: mms/udp 2022-03-06 09:05:21.937 T:36493 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout 2022-03-06 09:05:21.937 T:36493 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: rtmp 2022-03-06 09:05:21.937 T:36493 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: rtsp 2022-03-06 09:05:21.938 T:36493 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: streams 2022-03-06 09:05:21.938 T:36493 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: dvd 2022-03-06 09:05:21.938 T:36493 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: discimage 2022-03-06 09:05:21.938 T:36493 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf 2022-03-06 09:05:21.938 T:36493 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: nsv 2022-03-06 09:05:21.938 T:36493 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: radio 2022-03-06 09:05:21.938 T:36493 DEBUG : CPlayerCoreFactory::GetPlayers: matched 0 rules with players 2022-03-06 09:05:21.938 T:36493 DEBUG : CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (VideoPlayer) 2022-03-06 09:05:21.938 T:36493 DEBUG : CPlayerCoreFactory::GetPlayers: for video=1, audio=0 2022-03-06 09:05:21.938 T:36493 DEBUG : CPlayerCoreFactory::GetPlayers: for video=1, audio=1 2022-03-06 09:05:21.938 T:36493 DEBUG : CPlayerCoreFactory::GetPlayers: added 1 players 2022-03-06 09:05:21.954 T:36493 DEBUG : Radio UECP (RDS) Processor - new CDVDRadioRDSData 2022-03-06 09:05:21.955 T:36493 INFO : VideoPlayer::OpenFile: pvr://channels/tv/Alle%20Kan%c3%a4le/pvr.waipu_100324.pvr 2022-03-06 09:05:21.955 T:37826 DEBUG : Thread VideoPlayer start, auto delete: false 2022-03-06 09:05:21.956 T:36493 DEBUG : OnPlayBackStarted: CApplication::OnPlayBackStarted 2022-03-06 09:05:21.958 T:37826 INFO : Creating InputStream 2022-03-06 09:05:21.959 T:37826 DEBUG : operator(): Opening live stream for channel 'ZDF' 2022-03-06 09:05:21.959 T:37826 ERROR : CVideoPlayer::OpenInputStream - error opening [pvr://channels/tv/Alle%20Kan%c3%a4le/pvr.waipu_100324.pvr] 2022-03-06 09:05:21.959 T:37826 INFO : CVideoPlayer::OnExit() 2022-03-06 09:05:21.960 T:37826 DEBUG : CInputStreamPVRChannel - ClosePVRStream - closed channel stream pvr://channels/tv/Alle%20Kan%c3%a4le/pvr.waipu_100324.pvr 2022-03-06 09:05:21.960 T:37826 DEBUG : Thread VideoPlayer 140131721783040 terminating 2022-03-06 09:05:21.965 T:37823 DEBUG : Loading settings for pvr://channels/tv/Alle%20Kan%c3%a4le/pvr.waipu_100324.pvr 2022-03-06 09:05:21.967 T:37827 DEBUG : Thread JobWorker start, auto delete: true 2022-03-06 09:05:21.977 T:37827 DEBUG : OnPlayBackStopped: CApplication::OnPlayBackStopped

omogrol commented 2 years ago

Hallo, i have an very similar error output. The waipu/o2 PVR runs with Kodi Matrix and OSMC on a RaspberryPi4. Till a few days ago, i had used the Addon of waipu/2 and there were no issues with it. From one Day to another i got the message on screen that there are generally problems with playback of the streams. Later i have installed waipu.tv PVR Client: Version 19.0.2 InputStream Helper: Version 0.5.8-matrix.1 InputStream Adaptive: Version 19.0.1 and i am getting also error like this:

From kodi.log

... 2022-03-06 13:09:28.282 T:501 INFO : Loading skin file: MyPVRChannels.xml, load type: KEEP_IN_MEMORY 2022-03-06 13:09:31.118 T:501 ERROR : AddOnLog: pvr.waipu: [GetStreamURL] ERROR: missing param streamUrl 022-03-06 13:09:31.118 T:501 ERROR : GetChannelStreamProperties: Add-on 'waipu.tv PVR add-on:connected' returned an error: the command failed 2022-03-06 13:09:31.135 T:501 INFO : VideoPlayer::OpenFile: pvr://channels/tv/Alle%20Kan%c3%a4le/pvr.waipu_73559.pvr 2022-03-06 13:09:31.136 T:683 INFO : Creating InputStream 2022-03-06 13:09:31.137 T:683 ERROR : CVideoPlayer::OpenInputStream - error opening [pvr://channels/tv/Alle%20Kan%c3%a4le/pvr.waipu_73559.pvr] 2022-03-06 13:09:31.137 T:683 INFO : CVideoPlayer::OnExit() ...

Thanks

flubshi commented 2 years ago

I guess it is somehow related to O2 login, since normal waipu accounts seem to work. Unfortunately, I have no O2 TV account available to test/debug.

flubshi commented 2 years ago

Which version of pvr.waipu are you using?

axbg86159 commented 2 years ago

Login is working when I use a browser. So I used firefox developer tools for a har-dump of the network traffic.

Would that help you? Should I send the har-file to you?

Debian bullseye pvr-waipu version:

https://packages.debian.org/bullseye/kodi-pvr-waipu

But I also tried pvr.waipu from kodinerds-repro. That didn't work either

omogrol commented 2 years ago

I think my login to pvr.waipu is OK, i get the Program guide, list of Tv stations an so on.

flubshi commented 2 years ago

https://packages.debian.org/bullseye/kodi-pvr-waipu

But I also tried pvr.waipu from kodinerds-repro. That didn't work either

@axbg86159 the version 2.6.1 in debian repo is outdated and not supported. The kodinerds repo does not provide pvr.waipu.

Please make sure you have installed the latest version of the pvr plugin and provide a full debug log if the error still occurs.

@omogrol Version 19.0.2 is also outdated. Please use either 19.1.1 or 20.3.0.

omogrol commented 2 years ago

Do i have to remove the older Version at first?

flubshi commented 2 years ago

I think it is not necessary to remove the old version. Just update the PVR addon and restart Kodi.

omogrol commented 2 years ago

How can i do that?

Kumortas commented 2 years ago

It seems that the most recent version which is available through the kodi interface is 19.0.2. I am facing the same problem and I found no way to update the plugin to 19.1.1. Would be interested in any advice, too.

flubshi commented 2 years ago

@Kumortas binary add-ons are shipped by the distribution, not by Kodi. Please ask the maintainer of your distribution for updating the addon to the latest version.

mkriegl commented 2 years ago

I installed a Raspi4 with LibreElec 10.0.3 with current image kodi 19.4 and waipu 19.1.1. I still get the error on o2tv. Everything started with a Kodi for Debian with old distribution 2.6.1 on an Intel NUC8 one week ago.

axbg86159 commented 2 years ago

I updated the addon to 19.1.1 and upload a log. Inside the log file there is something about a 'malformed access token". Maybe that might be the error?

2022-03-12 12:37:47.808 T:1795 DEBUG : AddOnLog: pvr.waipu: HTTP response code: 400. 2022-03-12 12:37:47.808 T:1795 DEBUG : AddOnLog: pvr.waipu: Location: . 2022-03-12 12:37:47.808 T:1795 ERROR : AddOnLog: pvr.waipu: [Http-GET-Request] error. status: 400, body: {"type":"stream-url-provider/access-token-malformed","title":"Access Token Malformed","status":400,"detail":"Your access token is malformed"} 2022-03-12 12:37:47.808 T:1795 ERROR : AddOnLog: pvr.waipu: [GetStreamURL] ERROR: error while parsing json 2022-03-12 12:37:47.808 T:1795 DEBUG : AddOnLog: pvr.waipu: Stream URL -> 2022-03-12 12:37:47.808 T:1795 ERROR : GetChannelStreamProperties: Add-on 'waipu.tv PVR add-on:' returned an error: the command failed 2022-03-12 12:37:47.859 T:1795 DEBUG : CPlayerCoreFactory::GetPlayers(pvr://channels/tv/All%20channels/pvr.waipu_92146.pvr

kodi.log

flubshi commented 2 years ago

Please check if pvr.waipu Nexus version 20.4.0 fixes your issue. If it works as expected, I will backport changes to Kodi Matrix version of pvr.waipu.

axbg86159 commented 2 years ago

I tested it with librelec nightlybuild Nexus. It's ok, o2 waipu plays live tv again. Good work!

axbg86159 commented 2 years ago

I compiled your matrix backport, everything is fine.

Thank you!

flubshi commented 2 years ago

I compiled your matrix backport, everything is fine.

Thank you!

Thanks for testing- especially for testing the matrix backport.