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

Wishlist: Command to update local tag cache #5

Open
fatg3erman opened this issue Dec 16, 2013 · 8 comments
Open

Wishlist: Command to update local tag cache #5

fatg3erman opened this issue Dec 16, 2013 · 8 comments
Labels
A-scan Area: Media scanning C-enhancement Category: A PR with an enhancement or an issue with an enhancement proposal

Comments

@fatg3erman
Copy link
Contributor

Now that mopidy_scan is no more and that functionality is integrated into mopidy, would it be possible to implement mpd's 'update' command to permit the local files cache to be updated by a client. Many people are running mopidy on headless servers with remote clients, and running 'mopidy local scan' from a client isn't elegant or even possible sometimes.

The mopidy.library.refresh() API command would seem to be the obvious place to add this.

@adamcik
Copy link
Member

adamcik commented Dec 16, 2013

We are fairly close to being able to add this. I just want to get my registry work in first, given that I'm improving how we extend the local library.

@fatg3erman
Copy link
Contributor Author

Great news. I shall therefore give up on trying to get an Apache server to run mopidy local scan successfully :)

@kcrwfrd
Copy link

kcrwfrd commented Apr 11, 2014

@adamcik how is this coming along? I'd love to help if there's anything I can do.

@adamcik
Copy link
Member

adamcik commented Oct 19, 2014

Wiring up the update command to refresh should be trivial, this will not trigger a rescan, but it will ensure that the results from 'mopidy local scan' get loaded into memory.

@fatg3erman
Copy link
Contributor Author

As far as I can tell, the HTTP API already does load the results of mopidy local scan via mopidy.library.refresh().

But I think a way of triggering a rescan - or even better would be automatic monitoring of the local files, with some HTTP API message to tell a client when something has changed - is a needed feature.

@adamcik
Copy link
Member

adamcik commented Oct 19, 2014

Mhm, I agree about that, but even just wiring it up without the re-scan is a lot better than nothing.

mopidy/mopidy#742 is part of my plan to add background scanning using inotify with a mtime based fallback.

@StephanMeijer
Copy link

Is this already added?

@adamcik
Copy link
Member

adamcik commented Feb 7, 2016

Don't think so.

@jodal jodal transferred this issue from mopidy/mopidy Aug 12, 2019
@jodal jodal added C-enhancement Category: A PR with an enhancement or an issue with an enhancement proposal A-scan Area: Media scanning labels Dec 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-scan Area: Media scanning C-enhancement Category: A PR with an enhancement or an issue with an enhancement proposal
Projects
None yet
Development

No branches or pull requests

5 participants