Hello community, here is the log from the commit of package you-get for openSUSE:Factory checked in at 2018-11-09 07:54:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/you-get (Old) and /work/SRC/openSUSE:Factory/.you-get.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "you-get" Fri Nov 9 07:54:04 2018 rev:14 rq:647083 version:0.4.1167 Changes: -------- --- /work/SRC/openSUSE:Factory/you-get/you-get.changes 2018-10-29 14:32:42.666687069 +0100 +++ /work/SRC/openSUSE:Factory/.you-get.new/you-get.changes 2018-11-09 07:54:17.131720342 +0100 @@ -1,0 +2,5 @@ +Wed Nov 7 20:02:55 UTC 2018 - Luigi Baldoni <[email protected]> + +- Update to version 0.4.1167 (no changelog supplied) + +------------------------------------------------------------------- Old: ---- you-get-0.4.1164.tar.gz New: ---- you-get-0.4.1167.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ you-get.spec ++++++ --- /var/tmp/diff_new_pack.jlaoVl/_old 2018-11-09 07:54:18.439718843 +0100 +++ /var/tmp/diff_new_pack.jlaoVl/_new 2018-11-09 07:54:18.443718838 +0100 @@ -17,7 +17,7 @@ Name: you-get -Version: 0.4.1164 +Version: 0.4.1167 Release: 0 Summary: Dumb downloader that scrapes the web License: MIT ++++++ you-get-0.4.1164.tar.gz -> you-get-0.4.1167.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/you-get-0.4.1164/src/you_get/common.py new/you-get-0.4.1167/src/you_get/common.py --- old/you-get-0.4.1164/src/you_get/common.py 2018-10-28 13:33:28.000000000 +0100 +++ new/you-get-0.4.1167/src/you_get/common.py 2018-11-07 16:59:58.000000000 +0100 @@ -429,7 +429,7 @@ # Decode the response body if decoded: charset = match1( - response.getheader('Content-Type'), r'charset=([\w-]+)' + response.getheader('Content-Type', ''), r'charset=([\w-]+)' ) if charset is not None: data = data.decode(charset) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/you-get-0.4.1164/src/you_get/extractors/bilibili.py new/you-get-0.4.1167/src/you_get/extractors/bilibili.py --- old/you-get-0.4.1164/src/you_get/extractors/bilibili.py 2018-10-28 13:33:28.000000000 +0100 +++ new/you-get-0.4.1167/src/you_get/extractors/bilibili.py 2018-11-07 16:59:58.000000000 +0100 @@ -22,7 +22,7 @@ class Bilibili(VideoExtractor): name = 'Bilibili' - live_api = 'http://live.bilibili.com/api/playurl?cid={}&otype=json' + live_api = 'https://api.live.bilibili.com/room/v1/Room/playUrl?cid={}&quality=0&platform=web' api_url = 'http://interface.bilibili.com/v2/playurl?' bangumi_api_url = 'http://bangumi.bilibili.com/player/web_api/playurl?' live_room_init_api_url = 'https://api.live.bilibili.com/room/v1/Room/room_init?id={}' @@ -233,7 +233,7 @@ api_url = self.live_api.format(self.room_id) json_data = json.loads(get_content(api_url)) - urls = [json_data['durl'][0]['url']] + urls = [json_data['data']['durl'][0]['url']] self.streams['live'] = {} self.streams['live']['src'] = urls diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/you-get-0.4.1164/src/you_get/extractors/youtube.py new/you-get-0.4.1167/src/you_get/extractors/youtube.py --- old/you-get-0.4.1164/src/you_get/extractors/youtube.py 2018-10-28 13:33:28.000000000 +0100 +++ new/you-get-0.4.1167/src/you_get/extractors/youtube.py 2018-11-07 16:59:58.000000000 +0100 @@ -40,6 +40,7 @@ # Examples: # - https://www.youtube.com/yts/jsbin/player-da_DK-vflWlK-zq/base.js # - https://www.youtube.com/yts/jsbin/player-vflvABTsY/da_DK/base.js + # - https://www.youtube.com/yts/jsbin/player-vfls4aurX/da_DK/base.js def tr_js(code): code = re.sub(r'function', r'def', code) code = re.sub(r'(\W)(as|if|in|is|or)\(', r'\1_\2(', code) @@ -55,7 +56,8 @@ return code js = js.replace('\n', ' ') - f1 = match1(js, r'\.set\(\w+\.sp,([$\w]+)\(\w+\.s\)\)') or \ + f1 = match1(js, r'\.set\(\w+\.sp,\(0,window\.encodeURIComponent\)\(([$\w]+)') or \ + match1(js, r'\.set\(\w+\.sp,([$\w]+)\(\w+\.s\)\)') or \ match1(js, r'"signature",([$\w]+)\(\w+\.\w+\)') f1def = match1(js, r'function %s(\(\w+\)\{[^\{]+\})' % re.escape(f1)) or \ match1(js, r'\W%s=function(\(\w+\)\{[^\{]+\})' % re.escape(f1)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/you-get-0.4.1164/src/you_get/version.py new/you-get-0.4.1167/src/you_get/version.py --- old/you-get-0.4.1164/src/you_get/version.py 2018-10-28 13:33:28.000000000 +0100 +++ new/you-get-0.4.1167/src/you_get/version.py 2018-11-07 16:59:58.000000000 +0100 @@ -1,4 +1,4 @@ #!/usr/bin/env python script_name = 'you-get' -__version__ = '0.4.1164' +__version__ = '0.4.1167'
