-
Notifications
You must be signed in to change notification settings - Fork 21
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
Implement MPD stats for Cantata #13
Comments
The So I'm a bit unsure if we should add something like this.
|
My impression is that the 'stats' command should return info only about local collection. It doesn't make sense to ask for this information for streaming services like Spotify. For me, reporting info only about local collection would solve the issue. |
If someone has a good proposal for how we could add this in clean way I'm all ears. My main concern is trying to avoid adding things that are one offs for specific backends. |
I would really appreciate a solution for this issue. Cantata is by far the best MPD client for Windows and Linux, it's a shame we can't use it with Mopidy. Cantata used to have some workarounds to support Mopidy but these were removed, see https://github.com/CDrummond/cantata/issues/949#issuecomment-271230502. Your statement "Sadly there are other clients that use the current state of the stats command to detect mopidy and special case handling" refers to Cantata. As Cantata doesn't perform this check anymore it's safe to change the stats behavior. |
Do you know it's only Cantana? |
I reviewed lots of MPD clients on Windows, Linux as well as Android and Cantata is the only one with this issue. I guess because it's probably one of the only clients which uses as local database copy, which needs to be kept in sync with the server database. I know you don't like that local copy concept, but it's one of the main reasons how Cantata manages to be the best MPD client. If you're afraid to break things it might be an option to enable/disable new 'stats' behavior in the Mopidy configuration file. |
Update: the next release of Cantata might include the workaround for Mopidy stats again: CDrummond/cantata#949. That includes detection of Mopidy based on the stats returning 0. |
After update to Cantata version 2.0.1, the library is empty and doesn't even refresh when I run "Refresh database" from the menu.
After some investigation it seems that Cantata uses MDP 'stats' command to find out if the library should be updated. And since Mopidy doesn't implement the 'stats' command, the library is never updated.
Following change fixed this issue for me, although it's far from perfect - it forces library update every time Cantata starts and there are still some field not implemented. I was not able to get library update time anywhere.
The text was updated successfully, but these errors were encountered: