Skip to content
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

Some content from outside Belgium returns 403 Forbidden #39

Closed
dagwieers opened this issue Aug 4, 2020 · 2 comments · Fixed by #40
Closed

Some content from outside Belgium returns 403 Forbidden #39

dagwieers opened this issue Aug 4, 2020 · 2 comments · Fixed by #40
Labels
bug Something isn't working

Comments

@dagwieers
Copy link
Collaborator

When trying to watch some content from e.g. Germany, it attempts to start the stream but quickly returns back to the virtual directory listing. In the logs you can see a 403 (Forbidden) message.

Trying to play the same content from the website returns in a proper error message: Deze video is niet beschikbaar in het buitenland.

The add-on should return a proper message to the user as well.

The Kodi log related to this looks like:

2020-08-04 21:22:10.498 T:140005340377600  NOTICE: VideoPlayer::OpenFile: plugin://plugin.video.viervijfzes/play/page/vijf/video%2Fchateau-meiland%2Fchateau-meiland-s2%2Fchateau-meiland-s2-aflevering-4
2020-08-04 21:22:10.499 T:140002570757888  NOTICE: Creating InputStream
2020-08-04 21:22:10.988 T:140002570757888   ERROR: CCurlFile::FillBuffer - Failed: HTTP returned error 403
2020-08-04 21:22:10.988 T:140002570757888   ERROR: CCurlFile::Open failed with code 403 for https://stream1-vod.cdn1.sbs.prd.telenet-ops.be/geo/CHATEAU_MEILAND/S2/volledigeafleveringen/5162019371110140228683560527396501510142/CHATEAU_MEILAND_2_4_F0266917/CHATEAU_MEILAND_2_4_F0266917.m3u8:
2020-08-04 21:22:10.989 T:140002570757888   ERROR: AddOnLog: InputStream Adaptive: Cannot download https://stream1-vod.cdn1.sbs.prd.telenet-ops.be/geo/CHATEAU_MEILAND/S2/volledigeafleveringen/5162019371110140228683560527396501510142/CHATEAU_MEILAND_2_4_F0266917/CHATEAU_MEILAND_2_4_F0266917.m3u8
2020-08-04 21:22:10.989 T:140002570757888   ERROR: AddOnLog: InputStream Adaptive: Could not open / parse mpdURL (https://stream1-vod.cdn1.sbs.prd.telenet-ops.be/geo/CHATEAU_MEILAND/S2/volledigeafleveringen/5162019371110140228683560527396501510142/CHATEAU_MEILAND_2_4_F0266917/CHATEAU_MEILAND_2_4_F0266917.m3u8)
2020-08-04 21:22:10.989 T:140002570757888   ERROR: CVideoPlayer::OpenInputStream - error opening [plugin://plugin.video.viervijfzes/play/page/vijf/video%2Fchateau-meiland%2Fchateau-meiland-s2%2Fchateau-meiland-s2-aflevering-4]
2020-08-04 21:22:10.989 T:140002570757888  NOTICE: CVideoPlayer::OnExit()
2020-08-04 21:22:11.006 T:140005340377600  NOTICE: CVideoPlayer::CloseFile()
2020-08-04 21:22:11.035 T:140005340377600  NOTICE: VideoPlayer: waiting for threads to exit
2020-08-04 21:22:11.035 T:140005340377600  NOTICE: VideoPlayer: finished waiting
@mediaminister
Copy link
Collaborator

In an ideal world xbmc.Player.onPlayBackError returns the 403 error. But this doesn't work at all.
So, I made another workaround that works.

@dagwieers
Copy link
Collaborator Author

I opened a ticket at xbmc/inputstream.adaptive#497

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants