-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement knocking for streaming within the EU #77
Comments
Thanks for creating this issue and providing information about the API call! Do we have to call |
The browser sends the request once and the "knock" remains valid for some time, for all streaming servers. From what I can tell, it invalidates after about an hour of inactivity. I'll experiment some more and report my findings. |
Notes for status check:
EU network: {
"isEuMobilityNetwork": true,
"isClosedNetwork": false,
"countryCode": "NL",
"statusText": "This IP Address can't connect to the WAIPU network.",
"ip": "...",
"statusCode": 404,
"internalCode": 404,
"openViaOverflow": {
"isOpen": false,
"openUntilUnixTimestamp": 0
}
} Germany: {
"isEuMobilityNetwork": false,
"isClosedNetwork": true,
"countryCode": "DE",
"statusText": "This IP has access to the WAIPU network.",
"ip": "...",
"statusCode": 200,
"internalCode": 200,
"openViaOverflow": {
"isOpen": false,
"openUntilUnixTimestamp": 0
}
} Maybe For my previous questions: Edit: |
The flow seems to be as follows: which initially returns:
The javascript inspects:
For the knock request, only the status is being considered, 201 being a success:
After that, a status request conveniently gives us information about the validity of the knock:
|
Very helpful information - thanks a lot! |
I implemented eu streaming in plugin.video.waipu.tv first. The pvr plugin will hopefully follow next week. Maybe you could test if it works for you? Depending on which Kodi version you use: Kodi 19 - Matrix: v0.8.3-Matrix |
I tried the Leia version, when trying to enter the addon from Videos, it errors out. Log: Update: On the second try it lets me in, but trying to play LiveTV crashes kodi. I can't ping the servers either. I haven't tried using the addon before the change, so it might be unrelated to the PR.
|
I am sorry - should be fixed now. This time I have tested 😋 Maybe you could test this test version for Kodi 18 -Leia: plugin.video.waipu.tv - v0.3.4 If this works for you I can start implementing this in pvr.waipu :) |
Works! Thank you! |
By default, it is not possible to watch TV with this addon within EU countries other than Germany. On Chrome, the HTTP player on the website performs the following request to unlock access:
This can be easily reproduced by pinging one of the streaming servers, e.g.
e-m1-004-v4.wpstr.tv
. The pings will time out until a correct knock request has been sent. Perhaps send a knock ifstatus.wpstr.tv
returns a country code other than DE?The text was updated successfully, but these errors were encountered: