Skip to content

plugins.btv: parse HLS multivariant playlist #5698

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

Merged
merged 1 commit into from
Dec 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
plugins.btv: parse HLS multivariant playlist
  • Loading branch information
bastimeyer committed Dec 3, 2023
commit 8183fad14160bd736a977ef7911b6da24555bac1
2 changes: 1 addition & 1 deletion src/streamlink/plugins/btv.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _get_streams(self):
log.error("The content is not available in your region")
return

return {"live": HLSStream(self.session, stream_url)}
return HLSStream.parse_variant_playlist(self.session, stream_url)


__plugin__ = BTV
6 changes: 3 additions & 3 deletions tests/plugins/test_btv.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class TestPluginCanHandleUrlBTV(PluginCanHandleUrl):
__plugin__ = BTV

should_match = [
"http://btvplus.bg/live",
"http://btvplus.bg/live/",
"http://www.btvplus.bg/live/",
"https://btvplus.bg/live",
"https://btvplus.bg/live/",
"https://www.btvplus.bg/live/",
]