{"action":"created","issue":{"url":"https://api.github.com/repos/soimort/you-get/issues/1340","repository_url":"https://api.github.com/repos/soimort/you-get","labels_url":"https://api.github.com/repos/soimort/you-get/issues/1340/labels{/name}","comments_url":"https://api.github.com/repos/soimort/you-get/issues/1340/comments","events_url":"https://api.github.com/repos/soimort/you-get/issues/1340/events","html_url":"https://github.com/soimort/you-get/issues/1340","id":170345872,"number":1340,"title":"bilibili api changed","user":{"login":"lamlam123tld3","id":14777502,"avatar_url":"https://avatars.githubusercontent.com/u/14777502?v=3","gravatar_id":"","url":"https://api.github.com/users/lamlam123tld3","html_url":"https://github.com/lamlam123tld3","followers_url":"https://api.github.com/users/lamlam123tld3/followers","following_url":"https://api.github.com/users/lamlam123tld3/following{/other_user}","gists_url":"https://api.github.com/users/lamlam123tld3/gists{/gist_id}","starred_url":"https://api.github.com/users/lamlam123tld3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamlam123tld3/subscriptions","organizations_url":"https://api.github.com/users/lamlam123tld3/orgs","repos_url":"https://api.github.com/users/lamlam123tld3/repos","events_url":"https://api.github.com/users/lamlam123tld3/events{/privacy}","received_events_url":"https://api.github.com/users/lamlam123tld3/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/soimort/you-get/labels/broken","name":"broken","color":"fbca04"},{"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":20,"created_at":"2016-08-10T07:14:24Z","updated_at":"2016-08-19T03:15:02Z","closed_at":null,"body":"date: 160810\r\nsite: bilibili\r\nissue: api changed\r\n\r\nnow, when requesting http://interface.bilibili.com/playurl?appkey=f3bb208b3d081dc8&cid=$cid\r\nquality will by default set to 2 i.e. hdmp4\r\n\r\nin the old day it was by default set to be the highest quality (flv)\r\n\r\nso, quality need to be explicitly set to 4 in the url query in order to retrieve the highest quality\r\n\r\ni.e. http://interface.bilibili.com/playurl?appkey=f3bb208b3d081dc8&quality=4&cid=$cid\r\n\r\n\r\nexample:\r\n\r\n**[http://interface.bilibili.com/playurl?appkey=f3bb208b3d081dc8&otype=json&cid=7926898](url)**\r\n{\"from\":\"local\",\"result\":\"suee\",\"format\":\"hdmp4\",\"timelength\":1457296,\"accept_format\":\"mp4,hdmp4,flv\",\"accept_quality\":[3,2,1],\"seek_param\":\"start\",\"seek_type\":\"second\",\"durl\":[{\"order\":1,\"length\":1457296,\"size\":243744002,\"url\":\"http://ws.acgvideo.com/9/75/7926898-1hd.mp4?wsTime=1470841945&wsSecret2=b22b25a246c271e10519bf528f5d8437&oi=3742495673\",\"backup_url\":[\"http://ws.acgvideo.com/9/75/7926898-1.flv?wsTime=1470841945&wsSecret2=f5b77d113017c8da38ea51d1da31350c&oi=3742495673\",\"http://ws.acgvideo.com/9/75/7926898-1.mp4?wsTime=1470841945&wsSecret2=9245f1b515aad61b103135288db91ce1&oi=3742495673\"]}]}\r\n\r\n\r\n**[http://interface.bilibili.com/playurl?appkey=f3bb208b3d081dc8&otype=json&cid=7926898&quality=4](url)**\r\n{\"from\":\"local\",\"result\":\"suee\",\"format\":\"flv\",\"timelength\":1456814,\"accept_format\":\"mp4,hdmp4,flv\",\"accept_quality\":[3,2,1],\"seek_param\":\"start\",\"seek_type\":\"offset\",\"durl\":[{\"order\":1,\"length\":394712,\"size\":149946541,\"url\":\"http://ws.acgvideo.com/9/75/7926898-1.flv?wsTime=1470841982&wsSecret2=dd90a05810c9c40cf72854abad727a29&oi=3742495673\",\"backup_url\":[\"http://ws.acgvideo.com/9/75/7926898-1hd.mp4?wsTime=1470841982&wsSecret2=ba8c84350c360ae5f13e6da2ab0bc68b&oi=3742495673\",\"http://ws.acgvideo.com/9/75/7926898-1.mp4?wsTime=1470841982&wsSecret2=d597a47af9a9ac834ba5c3e100f6b854&oi=3742495673\"]},{\"order\":2,\"length\":343979,\"size\":38222694,\"url\":\"http://ws.acgvideo.com/9/75/7926898-2.flv?wsTime=1470841982&wsSecret2=cec78d235ca6096b2a87ea5409f18c72&oi=3742495673\",\"backup_url\":[]},{\"order\":3,\"length\":346411,\"size\":46602815,\"url\":\"http://ws.acgvideo.com/9/75/7926898-3.flv?wsTime=1470841982&wsSecret2=c56a9740efe270a29aa00f9e190a69d7&oi=3742495673\",\"backup_url\":[]},{\"order\":4,\"length\":371712,\"size\":50239606,\"url\":\"http://ws.acgvideo.com/9/75/7926898-4.flv?wsTime=1470841982&wsSecret2=2cfcbb0adcc8173ed02485a5e93470ae&oi=3742495673\",\"backup_url\":[]}]}"},"comment":{"url":"https://api.github.com/repos/soimort/you-get/issues/comments/240917254","html_url":"https://github.com/soimort/you-get/issues/1340#issuecomment-240917254","issue_url":"https://api.github.com/repos/soimort/you-get/issues/1340","id":240917254,"user":{"login":"cnbeining","id":1560962,"avatar_url":"https://avatars.githubusercontent.com/u/1560962?v=3","gravatar_id":"","url":"https://api.github.com/users/cnbeining","html_url":"https://github.com/cnbeining","followers_url":"https://api.github.com/users/cnbeining/followers","following_url":"https://api.github.com/users/cnbeining/following{/other_user}","gists_url":"https://api.github.com/users/cnbeining/gists{/gist_id}","starred_url":"https://api.github.com/users/cnbeining/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnbeining/subscriptions","organizations_url":"https://api.github.com/users/cnbeining/orgs","repos_url":"https://api.github.com/users/cnbeining/repos","events_url":"https://api.github.com/users/cnbeining/events{/privacy}","received_events_url":"https://api.github.com/users/cnbeining/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T03:15:02Z","updated_at":"2016-08-19T03:15:02Z","body":"That was back in January.\r\n\r\nThe way of storing secretkey is changed for now."}}
{"actor":{"display_login":"cnbeining"}}