Comments (6)
Agree! Should do this differently for the upcoming Mopidy-Spotify 2.0.
from mopidy-spotify.
Do you think there is any merit in doing this in pyspotify 2.0? At least the exact searches bit.
I vaguely remember the mention of an additional higher-level wrapper that did some extra useful stuff (I think this was based around the bug where starred playlists have no name),
from mopidy-spotify.
It's worth considering at least. The immediate issue I can think of is how to make an "exact match" overlay over the existing search work nicely with pagination. If you search for "foo" and ask for 20 results, then you're told that "we found 73 results, here's the first 20" and then there's only 18 in the result, since two wasn't exact matches.
from mopidy-spotify.
mopidy/mopidy#272 seems relevant here. We should consider using artist/albumbrowse instead of or in addition to search for find_exact.
from mopidy-spotify.
To move the entire discussion over here, I'm quoting @trygveaa from mopidy/mopidy#272:
We can first do a search for the query provided. Then traverse either the artist or album results, depending on what the query contained, to find the one that matches exactly (this means that searches will have to be able to return artists and albums, as discussed in #285). At last we do a lookup of the artist or album to retrieve all the tracks.
The benefits of this vs. a normal search:
- We are able to retrieve all the tracks from the artist or album, not just a matching subset of the max number of tracks returned by searches.
- We won't have to do any filtering.
The disadvantage:
- We have to do two queries to Spotify.
from mopidy-spotify.
From the discussion in mopidy/mopidy#727 it sounds like making exact searches exact would help on data quality in the ncmpcpp library view as well.
from mopidy-spotify.
Related Issues (20)
- Alternative for libspotify HOT 3
- Mopify Won't Connect to spotify HOT 2
- Asynchronous initial playlist refresh HOT 2
- How to uninstall mopidy-spotify? HOT 4
- Bug: 'cffi' package version mismatch; unable to install on Kubuntu 22.04.1 LTS HOT 8
- RecvError panic during spotifyaudiosrc playback HOT 3
- "New login to Spotify" emails HOT 10
- https://auth.mopidy.com/spotify/ not responding HOT 2
- Unable to build gst-plugins-spotify HOT 12
- mpd connectivity breaks when aur mopidy-spotify-git is installed and running. HOT 1
- Unable to install mopidy-spotify on Rpi 3 (RaspOS bullseye) HOT 1
- Changing track crashes playback HOT 1
- Switch to PKCE auth HOT 2
- Browsing in Spotify Library doesn't work HOT 4
- [Bug] Fedora 38: GStreamer error: Could not get/set settings from/on resource. HOT 5
- cargo build of gst-plugin-spotify stuck at 288/298 HOT 2
- Problem with getting tracks from playlist HOT 6
- TypeError: Expected length to be a <class 'int'>, not 156923.0 HOT 8
- GStreamer fails to connect HOT 1
- Please remove this extension from the Mopidy extension directory HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mopidy-spotify.