Thanks to visit codestin.com
Credit goes to github.com

Skip to content

stream.dash: fix base_url input#6338

Merged
bastimeyer merged 1 commit into
streamlink:masterfrom
bastimeyer:stream/dash/fix-base-url-input
Dec 14, 2024
Merged

stream.dash: fix base_url input#6338
bastimeyer merged 1 commit into
streamlink:masterfrom
bastimeyer:stream/dash/fix-base-url-input

Conversation

@bastimeyer

Copy link
Copy Markdown
Member

Follow-up of 53ac068

Simply pass the whole input URL as base_url value, since we're always joining all URLs using urllib.parse.urljoin().

Add another test case which fails on 53ac068 due to the incorrect path splitting, and update all remaining tests.


Fixes #6337
Introduced by #6328

@pzhlkj6612 please check. Thanks!

Follow-up of 53ac068

Simply pass the whole input URL as `base_url` value,
since we're always joining all URLs using `urllib.parse.urljoin()`.

Add another test case which fails on 53ac068 due to
the incorrect path splitting, and update all remaining tests.

@pzhlkj6612 pzhlkj6612 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is literally a simpler way to fix it. It works!

[cli][debug] Streamlink: 7.0.0+32.g9e67601b
...
[stream.dash][debug] audio/mp4 segment initialization: downloading (1970-01-01T00:00:00.000000Z / 2024-12-14T17:10:26.843548Z)
[stream.dash][debug] video/mp4 segment 1: downloading (1970-01-01T00:00:00.000000Z / 2024-12-14T17:10:26.845548Z)
[stream.dash][debug] video/mp4 segment initialization: completed
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\streamlinkpipe-255840-1-7343
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\streamlinkpipe-255840-2-5059
[stream.dash][debug] audio/mp4 segment 1: downloading (1970-01-01T00:00:00.000000Z / 2024-12-14T17:10:26.854135Z)
[stream.dash][debug] audio/mp4 segment initialization: completed

@bastimeyer bastimeyer merged commit edc4717 into streamlink:master Dec 14, 2024
@bastimeyer bastimeyer deleted the stream/dash/fix-base-url-input branch December 14, 2024 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants