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

Local Media Library not shown in GUI #646

Closed
diabl0w opened this issue Nov 14, 2020 · 3 comments
Closed

Local Media Library not shown in GUI #646

diabl0w opened this issue Nov 14, 2020 · 3 comments
Labels

Comments

@diabl0w
Copy link

diabl0w commented Nov 14, 2020

Describe the bug
After fixing the docker image via #645, the local library is indeed properly updated (see log below), and /var/lib/mopidy/local/library.db is properly populated with music. However, this music is not shown in iris when browsing artists/albums/tracks. They are only visible via Browse -> Local Media

To Reproduce
Steps to reproduce the behavior:

  1. in mopidy.conf:
[local]
media_dir = /var/lib/mopidy/media
  1. put your media in said directory (or bind mount the volume in docker)
  2. run a local scan to add the media to the library
  3. nothing seen in gui

Expected behavior
Tracks/albums/artists with artwork from local library should be visible.

Console log

  Finding files in file:///var/lib/mopidy/media ...
INFO     2020-11-14 05:42:02,649 [36:MainThread] mopidy_local.commands
  Found 10 files in file:///var/lib/mopidy/media
DEBUG    2020-11-14 05:42:02,650 [36:MainThread] mopidy_local.storage
  Using SQLite database schema v6
INFO     2020-11-14 05:42:02,651 [36:MainThread] mopidy_local.commands
  Checking 4 tracks from library
INFO     2020-11-14 05:42:02,654 [36:MainThread] mopidy_local.commands
  Removing 0 missing tracks
DEBUG    2020-11-14 05:42:02,654 [36:MainThread] mopidy_local.commands
  Skipped file:///var/lib/mopidy/media/config/mopidy.conf: File extension on excluded list
DEBUG    2020-11-14 05:42:02,654 [36:MainThread] mopidy_local.commands
  Skipped file:///var/lib/mopidy/media/Music/Brian%20Eno/banner.jpg: File extension on excluded list
DEBUG    2020-11-14 05:42:02,655 [36:MainThread] mopidy_local.commands
  Skipped file:///var/lib/mopidy/media/Music/Brian%20Eno/fanart.jpg: File extension on excluded list
DEBUG    2020-11-14 05:42:02,655 [36:MainThread] mopidy_local.commands
  Skipped file:///var/lib/mopidy/media/Music/Brian%20Eno/artist.nfo: File extension on excluded list
DEBUG    2020-11-14 05:42:02,655 [36:MainThread] mopidy_local.commands
  Skipped file:///var/lib/mopidy/media/Music/Brian%20Eno/logo.png: File extension on excluded list
DEBUG    2020-11-14 05:42:02,655 [36:MainThread] mopidy_local.commands
  Skipped file:///var/lib/mopidy/media/Music/Brian%20Eno/folder.jpg: File extension on excluded list
DEBUG    2020-11-14 05:42:02,655 [36:MainThread] mopidy_local.commands
  Included file:///var/lib/mopidy/media/Music/Brian%20Eno/Ambient%201-%20Music%20for%20Airports%20%281978%29/02%20-%202%2B1.flac: File extension not on excluded list
DEBUG    2020-11-14 05:42:02,655 [36:MainThread] mopidy_local.commands
  Included file:///var/lib/mopidy/media/Music/Brian%20Eno/Ambient%201-%20Music%20for%20Airports%20%281978%29/04%20-%202%2B2.flac: File extension not on excluded list
DEBUG    2020-11-14 05:42:02,656 [36:MainThread] mopidy_local.commands
  Included file:///var/lib/mopidy/media/Music/Brian%20Eno/Ambient%201-%20Music%20for%20Airports%20%281978%29/03%20-%201%2B2.flac: File extension not on excluded list
DEBUG    2020-11-14 05:42:02,656 [36:MainThread] mopidy_local.commands
  Included file:///var/lib/mopidy/media/Music/Brian%20Eno/Ambient%201-%20Music%20for%20Airports%20%281978%29/01%20-%201%2B1.flac: File extension not on excluded list
INFO     2020-11-14 05:42:02,656 [36:MainThread] mopidy_local.commands
  Found 0 tracks which need to be updated
INFO     2020-11-14 05:42:02,656 [36:MainThread] mopidy_local.commands
  Scanning...
INFO     2020-11-14 05:42:02,656 [36:MainThread] mopidy_local.commands
  Scanned 0 of 0 files in 0.000s.
INFO     2020-11-14 05:42:02,656 [36:MainThread] mopidy_local.commands
  Done scanning
INFO     2020-11-14 05:42:02,664 [36:MainThread] mopidy_local.storage
  Cleaning up image directory
INFO     2020-11-14 05:42:02,768 [6:Thread-11] mopidy_iris.system
  Completed in 1 seconds

Environment details:

  • docker
  • master
@diabl0w diabl0w added the bug label Nov 14, 2020
@jaedb
Copy link
Owner

jaedb commented Nov 14, 2020

Yes, you will need to hit the Refresh button on the top right in order to re-sync the Iris index.

Essentially Iris has an in-browser database to store data so it can perform well when running Mopidy on low powered devices or with huge libraries.

@diabl0w
Copy link
Author

diabl0w commented Nov 14, 2020

Yes, you will need to hit the Refresh button on the top right in order to re-sync the Iris index.

Essentially Iris has an in-browser database to store data so it can perform well when running Mopidy on low powered devices or with huge libraries.

whoops, I apologize for missing that. Can you also tell me what should be providing the artist/album art? Is that on the iris side or local extension side? I am not getting any art

Edit: it seems like I can get artist art after doing some UI navigating. but no album art even though I have local album art

Got it figured out... thanks!

@diabl0w diabl0w closed this as completed Nov 14, 2020
@jaedb
Copy link
Owner

jaedb commented Nov 14, 2020

Yeah this is the next step to improve the massive overhaul to move to a browser-based database. To avoid hitting API rate limits by fetching all artwork on refresh, this is fetched after you click in to the artist or album itself (you can also right-click and select Refresh on each item).

For Mopidy albums, artwork will show immediately provided you have it added to your local library.

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

No branches or pull requests

2 participants