Some SlackBuild scripts for Slackware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1.1 KiB

diff -Naur streamlink-1.2.0.orig/src/streamlink/plugins/bbciplayer.py streamlink-1.2.0/src/streamlink/plugins/bbciplayer.py
--- streamlink-1.2.0.orig/src/streamlink/plugins/bbciplayer.py 2019-08-19 17:14:19.000000000 +0100
+++ streamlink-1.2.0/src/streamlink/plugins/bbciplayer.py 2019-09-19 21:16:47.762446397 +0100
@@ -108,16 +108,9 @@
:rtype: string
"""
- # Extract the redirect URL from the last call
- last_redirect_url = urlparse(http_result.history[-1].request.url)
- last_redirect_query = dict(parse_qsl(last_redirect_url.query))
- # Extract the nonce from the query string in the redirect URL
- final_url = urlparse(last_redirect_query['goto'])
- goto_url = dict(parse_qsl(final_url.query))
- goto_url_query = parse_json(goto_url['state'])
-
- # Return the nonce we can use for future queries
- return goto_url_query['nonce']
+ p = urlparse(http_result.url)
+ d = dict(parse_qsl(p.query))
+ return d.get("nonce")
def find_vpid(self, url, res=None):
"""