Rockbox General > Rockbox General Discussion

Recursive insert from database view?

(1/1)

grums:
Can't find another group to post this:
When using the database, is it possible to recursively insert what I would call a collection of albums - something that is not just one album (ie. all albums from Year 2001 or all albums from the Jazz genre etc.).
I'm sorry if it's obvious, but I cant seem to make it work - I'm only able to work my way through a list of albums, inserting one at a time.
I'm on 3.8.
Regards, Ole

Chronon:
How does it fail when you try to use the "Genre" or "year" queries?

(I don't think "recursive insertion" is a good way to describe what's happening as the database isn't structured as a fixed tree.)

grums:
First of all: I'm not sure that recursive operations via the playlist are implemented?
Anyway, here's what happens when I try to recursively create a playlist with all albums from 2011 (there are 2):
Database
Year
2011 (Long Select)
Playlist
Play Next
Yes to Erase Dynamic Playlist question
(It now shows the first album of 2011)
When I return to Now Playing, the old playlist is still there, and the new has not been handled.
The same thing happens if I use Insert operation, or try a similar operation on a specific genre.

(What should I call the operation, if not recursive?
I'm not familiar with the database structure, but from my point of view it seems to be a bit like a (dynamic) tree structure at the moment I perform the operation: Year-Artists-Albums-Tracks seen top-down?)

Chronon:
Is it successful if you try to insert into an empty playlist (i.e. with playback stopped)?

Either way, a bug report would be helpful, as Rockbox shouldn't fail in this way.  I have used this functionality quite some time ago and it worked then.

(I would just refer to this as a database query.  You are filtering a set of database records based on a certain attribute.  You aren't specifically selecting a set of files occupying a nested directory structure.)

Navigation

[0] Message Index

Go to full version