{"action":"created","issue":{"url":"https://api.github.com/repos/soimort/you-get/issues/1299","repository_url":"https://api.github.com/repos/soimort/you-get","labels_url":"https://api.github.com/repos/soimort/you-get/issues/1299/labels{/name}","comments_url":"https://api.github.com/repos/soimort/you-get/issues/1299/comments","events_url":"https://api.github.com/repos/soimort/you-get/issues/1299/events","html_url":"https://github.com/soimort/you-get/issues/1299","id":166998155,"number":1299,"title":"DouyuTV下载（录制）失效","user":{"login":"airzwx","id":7837881,"avatar_url":"https://avatars.githubusercontent.com/u/7837881?v=3","gravatar_id":"","url":"https://api.github.com/users/airzwx","html_url":"https://github.com/airzwx","followers_url":"https://api.github.com/users/airzwx/followers","following_url":"https://api.github.com/users/airzwx/following{/other_user}","gists_url":"https://api.github.com/users/airzwx/gists{/gist_id}","starred_url":"https://api.github.com/users/airzwx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airzwx/subscriptions","organizations_url":"https://api.github.com/users/airzwx/orgs","repos_url":"https://api.github.com/users/airzwx/repos","events_url":"https://api.github.com/users/airzwx/events{/privacy}","received_events_url":"https://api.github.com/users/airzwx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/soimort/you-get/labels/confirmed","name":"confirmed","color":"fef2c0"},{"url":"https://api.github.com/repos/soimort/you-get/labels/patches%20welcome","name":"patches welcome","color":"009800"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-22T08:45:56Z","updated_at":"2016-07-24T11:05:07Z","closed_at":null,"body":"最近在用you-get录制斗鱼直播，一直正常使用，大约在北京时间7月21日晚，工具里使用的斗鱼API修改了认证方式，工具里现有的斗鱼API调用失效，返回 错误1002：api身份信息错误\r\n\r\n> {\"error\":1002,\"data\":\"api\\u8eab\\u4efd\\u4fe1\\u606f\\u9519\\u8bef\"}\r\n\r\n测试链接：\r\nhttp://www.douyu.com/17732\r\n\r\n使用环境：Windows XP（低配下载机） + Python 3.4.4 以及 CentOS 6.8 + Python 3.4.5\r\n\r\n`you-get -d http://www.douyu.com/17732`\r\n> you-get: version 0.4.486, a tiny downloader that scrapes the web.\r\n> you-get: ['http://www.douyu.com/17732']\r\n> Traceback (most recent call last):\r\n>   File \"c:\\program files\\python34\\lib\\runpy.py\", line 170, in _run_module_as_main\r\n>     \"__main__\", mod_spec)\r\n>   File \"c:\\program files\\python34\\lib\\runpy.py\", line 85, in _run_code\r\n>     exec(code, run_globals)\r\n>   File \"C:\\Program Files\\Python34\\Scripts\\you-get.exe\\__main__.py\", line 9, in <module>\r\n>   File \"c:\\program files\\python34\\lib\\site-packages\\you_get\\__main__.py\", line 92, in main\r\n>     main(**kwargs)\r\n>   File \"c:\\program files\\python34\\lib\\site-packages\\you_get\\common.py\", line 1328, in main\r\n>     script_main('you-get', any_download, any_download_playlist, **kwargs)\r\n>   File \"c:\\program files\\python34\\lib\\site-packages\\you_get\\common.py\", line 1241, in script_main\r\n>     download_main(download, download_playlist, args, playlist, output_dir=output_dir, merge=merge, info_only=info_only, json_output=json_output, caption=caption)\r\n>   File \"c:\\program files\\python34\\lib\\site-packages\\you_get\\common.py\", line 1060, in download_main\r\n>     download(url, **kwargs)\r\n>   File \"c:\\program files\\python34\\lib\\site-packages\\you_get\\common.py\", line 1321, in any_download\r\n>     m.download(url, **kwargs)\r\n>   File \"c:\\program files\\python34\\lib\\site-packages\\you_get\\extractors\\douyutv.py\", line 19, in douyutv_download\r\n>     server_status = data.get('error',0)\r\n> AttributeError: 'str' object has no attribute 'get'\r\n\r\n使用Fiddler抓包目前Android版斗鱼客户端，发现其使用的API地址已变更，形式如下\r\n\r\n> http://capi.douyucdn.cn/api/v1/room/{Room_ID}?aid=android1&client_sys=android&ne=1&support_pwd=1&time={int(time.time())}&auth={Auth}\r\n\r\n或\r\n\r\n> http://capi.douyucdn.cn/api/v1/room/{Room_ID}?aid=android1&cdn=ws&client_sys=android&ne=1&support_pwd=1&time={int(time.time())}&auth={Auth}\r\n\r\n与工具里使用的API相比，差异部分有：使用的API域名由www.douyu.com变为capi.douyucdn.cn，aid参数由android变为android1，新增了ne和support_pwd参数，偶尔会指定cdn参数，auth参数计算方法未知，使用现有计算方法计算从\"/room\"开始到\"auth\"前字符串无法得到与抓包结果相同的auth"},"comment":{"url":"https://api.github.com/repos/soimort/you-get/issues/comments/234771171","html_url":"https://github.com/soimort/you-get/issues/1299#issuecomment-234771171","issue_url":"https://api.github.com/repos/soimort/you-get/issues/1299","id":234771171,"user":{"login":"ERioK","id":1744384,"avatar_url":"https://avatars.githubusercontent.com/u/1744384?v=3","gravatar_id":"","url":"https://api.github.com/users/ERioK","html_url":"https://github.com/ERioK","followers_url":"https://api.github.com/users/ERioK/followers","following_url":"https://api.github.com/users/ERioK/following{/other_user}","gists_url":"https://api.github.com/users/ERioK/gists{/gist_id}","starred_url":"https://api.github.com/users/ERioK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ERioK/subscriptions","organizations_url":"https://api.github.com/users/ERioK/orgs","repos_url":"https://api.github.com/users/ERioK/repos","events_url":"https://api.github.com/users/ERioK/events{/privacy}","received_events_url":"https://api.github.com/users/ERioK/received_events","type":"User","site_admin":false},"created_at":"2016-07-24T11:05:07Z","updated_at":"2016-07-24T11:05:07Z","body":"用ffdec从内存里得到了解密后的swf文件..里面应该有sign的算法..as代码看不懂，希望有懂的看一下"}}
{"actor":{"display_login":"ERioK"}}