Skip to content

Commit 71e885e

Browse files
committed
plugins.btv: parse HLS multivariant playlist
1 parent 7e722ec commit 71e885e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/streamlink/plugins/btv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _get_streams(self):
6161
log.error("The content is not available in your region")
6262
return
6363

64-
return {"live": HLSStream(self.session, stream_url)}
64+
return HLSStream.parse_variant_playlist(self.session, stream_url)
6565

6666

6767
__plugin__ = BTV

tests/plugins/test_btv.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class TestPluginCanHandleUrlBTV(PluginCanHandleUrl):
66
__plugin__ = BTV
77

88
should_match = [
9-
"http://btvplus.bg/live",
10-
"http://btvplus.bg/live/",
11-
"http://www.btvplus.bg/live/",
9+
"https://btvplus.bg/live",
10+
"https://btvplus.bg/live/",
11+
"https://www.btvplus.bg/live/",
1212
]

0 commit comments

Comments
 (0)