Browse Source

n/streamlink: Upgraded to streamlink-1.2.0.

slackware-14.2
Damien Goutte-Gattat 3 years ago
parent
commit
46acbd8a5a
  1. 1
      n/streamlink/streamlink-1.1.1.tar.gz.sha256
  2. 23
      n/streamlink/streamlink-1.2.0-fix-bbciplayer-nonce.patch
  3. 1
      n/streamlink/streamlink-1.2.0.tar.gz.sha256
  4. 7
      n/streamlink/streamlink.SlackBuild

1
n/streamlink/streamlink-1.1.1.tar.gz.sha256

@ -1 +0,0 @@
496c81804bbe534b47f6cf4d77aa6fae95347ebaab495277f9d2526543cbafa6 streamlink-1.1.1.tar.gz

23
n/streamlink/streamlink-1.2.0-fix-bbciplayer-nonce.patch

@ -0,0 +1,23 @@
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
n/streamlink/streamlink-1.2.0.tar.gz.sha256

@ -0,0 +1 @@
7aa6e02d914e29fe2e344afd185760b11e46a6a31f9d99f7f9dc87b808812992 streamlink-1.2.0.tar.gz

7
n/streamlink/streamlink.SlackBuild

@ -31,9 +31,9 @@
# Source package infos
NAMESRC=${NAMESRC:-streamlink}
VERSION=${VERSION:-1.1.1}
VERSION=${VERSION:-1.2.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/f6/93/188a4fd487f782c0b34db4006d424a861bdf15da8c25ecaa0c653be2414a/$ARCHIVE}
WGET=${WGET:-https://files.pythonhosted.org/packages/5e/c6/a3b694ca299e6fcc6e8f25b293d7a3b79f688819198e9aa8a88036a306a5/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-streamlink}
@ -73,6 +73,9 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
# Fix nonce extraction in BBC iPlayer plugin
# <https://github.com/streamlink/streamlink/pull/2617/commits/36a099b062eca8a41c156648da09571cecf23c6f>
patch -p 1 < $CWD/streamlink-1.2.0-fix-bbciplayer-nonce.patch
python setup.py build
python setup.py install --root=$PKG

Loading…
Cancel
Save