Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doubanfm.exceptions.APIError: list index out of range #153

Open
1011-1-000 opened this issue Jul 22, 2017 · 1 comment
Open

doubanfm.exceptions.APIError: list index out of range #153

1011-1-000 opened this issue Jul 22, 2017 · 1 comment

Comments

@1011-1-000
Copy link

1011-1-000 commented Jul 22, 2017

一登录就会出现这样的问题:
♥ Get local token - Username:
♥ Get channel [ OK ]
♥ Get volume [ OK ]
♥ Get theme [ OK ]
♥ Get keys [ OK ]
Traceback (most recent call last):
File "/Users/leo/anaconda3/envs/py2/bin/douban.fm", line 11, in
sys.exit(main())
File "/Users/leo/anaconda3/envs/py2/lib/python2.7/site-packages/doubanfm/douban.py", line 101, in main
router = Router()
File "/Users/leo/anaconda3/envs/py2/lib/python2.7/site-packages/doubanfm/douban.py", line 47, in init
self.data = data.Data()
File "/Users/leo/anaconda3/envs/py2/lib/python2.7/site-packages/doubanfm/data.py", line 23, in init
self.playlist = Playlist()
File "/Users/leo/anaconda3/envs/py2/lib/python2.7/site-packages/doubanfm/model.py", line 40, in init
self._get_first_song()
File "/Users/leo/anaconda3/envs/py2/lib/python2.7/site-packages/doubanfm/model.py", line 57, in _func
return func(*args, **kwargs)
File "/Users/leo/anaconda3/envs/py2/lib/python2.7/site-packages/doubanfm/model.py", line 82, in _get_first_song
song = douban.get_first_song()
File "/Users/leo/anaconda3/envs/py2/lib/python2.7/site-packages/doubanfm/API/api.py", line 172, in get_first_song
return self.requests_url('n')
File "/Users/leo/anaconda3/envs/py2/lib/python2.7/site-packages/doubanfm/API/api.py", line 163, in requests_url
raise APIError(err)
doubanfm.exceptions.APIError: list index out of range

请问可以帮忙解决吗, 谢谢 !

@soccos
Copy link

soccos commented Jun 18, 2018

登陆网页版,听几首歌,点几个红心,再新建个歌单,就不出问题了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants