{"action":"created","issue":{"url":"https://api.github.com/repos/fooofei/py_netease_music/issues/2","repository_url":"https://api.github.com/repos/fooofei/py_netease_music","labels_url":"https://api.github.com/repos/fooofei/py_netease_music/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/fooofei/py_netease_music/issues/2/comments","events_url":"https://api.github.com/repos/fooofei/py_netease_music/issues/2/events","html_url":"https://github.com/fooofei/py_netease_music/issues/2","id":270185911,"number":2,"title":"排序问题","user":{"login":"drcege","id":3213204,"avatar_url":"https://avatars2.githubusercontent.com/u/3213204?v=4","gravatar_id":"","url":"https://api.github.com/users/drcege","html_url":"https://github.com/drcege","followers_url":"https://api.github.com/users/drcege/followers","following_url":"https://api.github.com/users/drcege/following{/other_user}","gists_url":"https://api.github.com/users/drcege/gists{/gist_id}","starred_url":"https://api.github.com/users/drcege/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drcege/subscriptions","organizations_url":"https://api.github.com/users/drcege/orgs","repos_url":"https://api.github.com/users/drcege/repos","events_url":"https://api.github.com/users/drcege/events{/privacy}","received_events_url":"https://api.github.com/users/drcege/received_events","type":"User","site_admin":false},"labels":[{"id":617982093,"url":"https://api.github.com/repos/fooofei/py_netease_music/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-11-01T03:50:50Z","updated_at":"2017-11-01T07:19:34Z","closed_at":null,"author_association":"NONE","body":"看了下代码，排序好像是直接用的歌曲名的 unicode 编码，顺序完全是错的。\r\n是不是可以考虑用 [pypinyin](https://pypi.python.org/pypi/pypinyin) 或类似的包按拼音排序？"},"comment":{"url":"https://api.github.com/repos/fooofei/py_netease_music/issues/comments/341014662","html_url":"https://github.com/fooofei/py_netease_music/issues/2#issuecomment-341014662","issue_url":"https://api.github.com/repos/fooofei/py_netease_music/issues/2","id":341014662,"user":{"login":"drcege","id":3213204,"avatar_url":"https://avatars2.githubusercontent.com/u/3213204?v=4","gravatar_id":"","url":"https://api.github.com/users/drcege","html_url":"https://github.com/drcege","followers_url":"https://api.github.com/users/drcege/followers","following_url":"https://api.github.com/users/drcege/following{/other_user}","gists_url":"https://api.github.com/users/drcege/gists{/gist_id}","starred_url":"https://api.github.com/users/drcege/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drcege/subscriptions","organizations_url":"https://api.github.com/users/drcege/orgs","repos_url":"https://api.github.com/users/drcege/repos","events_url":"https://api.github.com/users/drcege/events{/privacy}","received_events_url":"https://api.github.com/users/drcege/received_events","type":"User","site_admin":false},"created_at":"2017-11-01T07:19:34Z","updated_at":"2017-11-01T07:19:34Z","author_association":"NONE","body":"我自己是这么写的，仅供参考哈~\r\n```python\r\nfrom pypinyin import slug\r\n\r\ndef my_cmp(a, b):\r\n    a = slug(a[1],  separator=' ').upper()\r\n    b = slug(b[1],  separator=' ').upper()\r\n    return cmp(a, b)\r\n\r\ntracks  = sorted(tracks, cmp=my_cmp, reverse=True)\r\n```\r\n\r\n还有就是我运行到  `backup = self.try_create_playlist(u'python_backup')`  时一直是 403 错误，我只好自己手动在网易云创建了歌单。"}}
{"actor":{"display_login":"drcege"}}