4 changed files with 13 additions and 39 deletions
@ -1,23 +0,0 @@
|
||||
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):
|
||||
"""
|
@ -1 +0,0 @@
|
||||
7aa6e02d914e29fe2e344afd185760b11e46a6a31f9d99f7f9dc87b808812992 streamlink-1.2.0.tar.gz |
@ -0,0 +1 @@
|
||||
00649658b74c76022a04564919431e4d6156d974caf56f25cd52a07fa5732315 streamlink-1.3.0.tar.gz |
Loading…
Reference in new issue