Rockbox Development > Feature Ideas
Database query from a file
(1/1)
pondlife:
How about supporting a tag database query file (.qry or .tdq?).
This would contain a single query in the same format as used for tagnavi.config. When selected, the query would be executed and the results browsed in the obvious manner - similarly to a playlist (or subdirectory).
Only the final query would be handled - no need to support multiple levels as (I think) these could be handled by setting up an appropriate directory structure.
For example:
\Tags\A to Z\Artists\A.tdq could contain: artist ? artist ^ "A" -> album -> title = "fmt_title"
tagnavi.config would still work (and would be needed to store global formats, at least). But this facility could be used to help integrate the database functionality into the file browser, improving voice support and simplifying code.
(Disclaimer: I've done very little tagnavi customising, so would like input from those who know more!)
Thoughts?
pondlife
Llorean:
I would go one further and immediately start playing the query, basically treating them the same as we treat playlists right now. This would, in essence, be what Apple calls, I think, "smart playlists."
pondlife:
I'd *personally* prefer that we didn't auto-play them (but also that we didn't auto-play playlist files) - i.e. one press into the file allows browsing, a second press will start playback - in the exact same way that subdirectories work. But that's a separate issue/option.
If nobody can think of a technical reason why this wouldn't work, I'll get started on some code...
pondlife
Llorean:
Personally, I'd like to separate "select" from "right" so that select "plays" something, and right browses into it (folder or playlist). This sort of thing could also work for your file query feature if it were ever implemented.
pondlife:
Yes - that would be perfect.
Navigation
[0] Message Index
Go to full version