Skip to content

Commit ab033b3

Browse files
mkblokebastimeyer
authored andcommitted
plugins.bbciplayer: fix/update state_re regex
1 parent 2884485 commit ab033b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/streamlink/plugins/bbciplayer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class BBCiPlayer(Plugin):
2828
""", re.VERBOSE)
2929
mediator_re = re.compile(
3030
r'window\.__IPLAYER_REDUX_STATE__\s*=\s*({.*?});', re.DOTALL)
31-
state_re = re.compile(r'window.__IPLAYER_REDUX_STATE__\s*=\s*({.*});')
31+
state_re = re.compile(r'window.__IPLAYER_REDUX_STATE__\s*=\s*({.*?});</script>')
3232
account_locals_re = re.compile(r'window.bbcAccount.locals\s*=\s*({.*?});')
3333
hash = base64.b64decode(b"N2RmZjc2NzFkMGM2OTdmZWRiMWQ5MDVkOWExMjE3MTk5MzhiOTJiZg==")
3434
api_url = "https://open.live.bbc.co.uk/mediaselector/6/select/version/2.0/mediaset/" \

0 commit comments

Comments
 (0)