Downloads
release
dev builds
extras
themes
Documentation
manual
wiki
device status
Support
forums
mailing lists
IRC
Development
bugs
patches
dev guide
Search
Donate
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Welcome to the Rockbox Technical Forums!
Rockbox Technical Forums
Rockbox Development
Feature Ideas
Database query from a file
« previous
next »
Print
Pages: [
1
]
Author
Topic: Database query from a file (Read 1809 times)
pondlife
Developer
Member
Posts: 248
Database query from a file
«
on:
January 18, 2011, 05:11:53 AM »
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
Logged
Llorean
Member
Posts: 12931
Re: Database query from a file
«
Reply #1 on:
January 18, 2011, 03:26:40 PM »
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."
Logged
pondlife
Developer
Member
Posts: 248
Re: Database query from a file
«
Reply #2 on:
January 19, 2011, 02:40:57 AM »
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
Logged
Llorean
Member
Posts: 12931
Re: Database query from a file
«
Reply #3 on:
January 19, 2011, 03:01:16 AM »
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.
Logged
pondlife
Developer
Member
Posts: 248
Re: Database query from a file
«
Reply #4 on:
January 19, 2011, 08:30:46 AM »
Yes - that would be perfect.
Logged
Print
Pages: [
1
]
« previous
next »
Rockbox Technical Forums
Rockbox Development
Feature Ideas
Database query from a file
SMF 2.0.19
|
SMF © 2021
,
Simple Machines
Rockbox Privacy Policy
XHTML
RSS
WAP2
Page created in 0.128 seconds with 22 queries.