-
Notifications
You must be signed in to change notification settings - Fork 6
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
IndexError: list index out of range in get_music_root #1
Comments
ok.... the thing is... it need to guess the music directory id. it looks like it cant find it. i will release a version in a few minutes that throws a exception and should have more debugging available that shows what directories are there to check. hang on |
can you update and try again? please run mopidy -v for verbose output... if it comes to this error it should throw a exception and a debug output and i would ask you to paste it in here. |
Following is the new backtrace with mopidy 0.1.3. DEBUG 2016-12-06 14:12:55,523 [12568:EmbyBackend-3] mopidy_emby.backend
Get Emby artist list
ERROR 2016-12-06 14:12:55,730 [12568:Core-9] mopidy.core.library
EmbyBackend backend caused an exception.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/mopidy/core/library.py", line 19, in _backend_error_handling
yield
File "/usr/lib/python2.7/site-packages/mopidy/core/library.py", line 112, in _browse
result = backend.library.browse(uri).get()
File "/home/bricewge/.local/lib/python2.7/site-packages/pykka/threading.py", line 52, in get
compat.reraise(*self._data['exc_info'])
File "/home/bricewge/.local/lib/python2.7/site-packages/pykka/compat.py", line 12, in reraise
exec('raise tp, value, tb')
File "/home/bricewge/.local/lib/python2.7/site-packages/pykka/actor.py", line 201, in _actor_loop
response = self._handle_receive(message)
File "/home/bricewge/.local/lib/python2.7/site-packages/pykka/actor.py", line 295, in _handle_receive
return callee(*message['args'], **message['kwargs'])
File "/home/bricewge/.local/lib/python2.7/site-packages/mopidy_emby/backend.py", line 62, in browse
return self.backend.remote.get_artists()
File "/home/bricewge/.local/lib/python2.7/site-packages/mopidy_emby/backend.py", line 317, in get_artists
music_root = self.get_music_root()
File "/home/bricewge/.local/lib/python2.7/site-packages/mopidy_emby/backend.py", line 314, in get_music_root
raise Exception('Emby: Cant find music root directory')
Exception: Emby: Cant find music root directory
DEBUG 2016-12-06 14:12:55,733 [12568:HttpServer] mopidy.http.handlers
Sent WebSocket message to 192.168.10.66: '{"jsonrpc": "2.0", "id": 18, "result": []}' This error happen when I click on the emby source from the musicbox_webclient. |
can you hold one for two days? i need to travel for my job and can look at it on friday. do you have a music typed directory in emby? it needs to have the name "Music". |
Of course, this isn't pressing at all. |
On Tue, 06. Dec 10:41, bricewge wrote:
Of course, this isn't pressing at all.
You pointed me in the right direction my music folder was named "Musiques"
instead of "Music". Renaming it to "Music" solved the issue. Maybe instead of
choosing the music root directory by it's name it should be done by content
type to avoid this kind of issue.
i will release a version that is looking for CollectionType instead of
name. you are right... thats the much better way of doing it. i would be
happy to hear your feedback about this project. its my first mopidy
plugin and it took me some time to get my head around it.
|
Thanks for the fix, it work nicely now! (: I don't think I am well seated to give you feedback since I'm only using |
Went trying the latest version of your software I stubbed upon this:
If there is way I can be helpful about this issue?
The text was updated successfully, but these errors were encountered: