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

Wrong url calculated (2x base urls in mpd) #283

Closed
matthuisman opened this issue Jun 30, 2019 · 7 comments
Closed

Wrong url calculated (2x base urls in mpd) #283

matthuisman opened this issue Jun 30, 2019 · 7 comments

Comments

@matthuisman
Copy link
Contributor

matthuisman commented Jun 30, 2019

It has 2x base-urls in the mpd (attached), not sure if that is what is causing the issue.
One appears to be a back-up.

  <BaseURL>https://spark.akamaized.net/dash/live/2003222-b/spark/d2150a9c-6747-46f3-92bb-75cc6f062723/startover/5982918e8f79bdb74efcd16275d0653ada1b9302/</BaseURL>

  <BaseURL>https:/spark.akamaized.net/dash/live/2003222/spark/d2150a9c-6747-46f3-92bb-75cc6f062723/startover/5982918e8f79bdb74efcd16275d0653ada1b9302/</BaseURL>
.....
media="../../462c5cc3-fc84-4d0f-aec8-b68dda344331/$RepresentationID$-$Number$.mp4" initialization="../../462c5cc3-fc84-4d0f-aec8-b68dda344331/$RepresentationID$-init.mp4"

The url is calculates is:
https://spark.akamaized.net/dash/live/2003222-b/spark/d2150a9c-6747-46f3-92bb-75cc6f062723/startover/5982918e8f79bdb74efcd16275d0653ada1b9302/https:/spark.akamaized.net/dash/live/2003222/spark/d2150a9c-6747-46f3-92bb-75cc6f062723/startover/5982918e8f79bdb74efcd16275d0653ada1b9302/../../462c5cc3-fc84-4d0f-aec8-b68dda344331/1080p-30fps-6000kbps-init.mp4

The correct url should be:
https://spark.akamaized.net/dash/live/2003222-b/spark/d2150a9c-6747-46f3-92bb-75cc6f062723/462c5cc3-fc84-4d0f-aec8-b68dda344331/1080p-30fps-6000kbps-init.mp4

The url to mpd is:
https://spark.akamaized.net/dash/live/2003222-b/spark/d2150a9c-6747-46f3-92bb-75cc6f062723/startover/5982918e8f79bdb74efcd16275d0653ada1b9302/master.mpd

Debug log and mpd attached

master.mpd.txt
kodi.log.txt

Appears maybe Inputstream just needs to select the first base url and use that?

@matthuisman matthuisman changed the title Wrong url calculated (2 base urls) Wrong url calculated (2x base urls in mpd) Jun 30, 2019
@matthuisman
Copy link
Contributor Author

@peak3d
'Pinging' as I know sometimes you miss my issues :)

@glennguy
Copy link
Contributor

glennguy commented Jul 3, 2019

Looks like the second BaseURL is malformed - only one forward slash so maybe it should reject it based on that?

@peak3d
Copy link
Contributor

peak3d commented Jul 3, 2019

@matthuisman I'm really unsure if I want to spend time on implementing logic to detect such malformed stuff. If it is important for you, you still could route the mpd fetch through your plugin and repair the mpd file by yourself.

@matthuisman
Copy link
Contributor Author

matthuisman commented Jul 3, 2019 via email

@matthuisman
Copy link
Contributor Author

@peak3d

OK, the provider seems to have fixed the bad base urls.
The new .mpd file is attached.
And new log is attached.

IA plays this fine, but it seems to use the 2nd base-url for segments
https://spark.akamaized.net/dash/live/2003225-b/

I assume as it's looping elements, it just overrides the first base-url it had found.

Is this desired behaviour?
Or would it be better to stick with the first base-url?
I assume most providers will use the 2nd as a back-up so the first should be used?

master.mpd.txt
kodi.log.txt

@matthuisman
Copy link
Contributor Author

I'll be closing this issue and starting a new issue to implement multiple base urls

@matthuisman
Copy link
Contributor Author

New issue:
#326

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants