Quantcast
Channel: Squeezebox : Community : Forums - 3rd Party Software
Viewing all articles
Browse latest Browse all 2059

[Dynamic playlists] Only artist, no composers in Top Rated for Artist

$
0
0
Hi, hope somebody can help me out! When I want to start the Dynamic Playlist "Top Rated for Artist", the feedback form is populated with a horrible long list that als contains all the Composers:

Name:  screen.png
Views: 15
Size:  18.6 KB.

This doesn't happen when I browse the Artist list in the Webview or on any of my Squeezebox devices -- of course, because these are my settings:

Name:  screen2..png
Views: 15
Size:  14.9 KB

What I've already tried is editing the raw SQL for the topratedforartist.sql.xml:

Code:

-- PlaylistName:Top rated for artist
-- PlaylistGroups:
-- PlaylistParameter1:artist:Select artist:
select tracks.url from tracks
        join contributor_track on
                tracks.id=contributor_track.track and contributor_track.contributor='PlaylistParameter1'
        join track_statistics on
                tracks.url=track_statistics.url
        left join dynamicplaylist_history on
                tracks.id=dynamicplaylist_history.id and dynamicplaylist_history.client='PlaylistPlayer'
        where
                audio=1
                and dynamicplaylist_history.id is null
                and track_statistics.rating>=70
                and ifnull(track_statistics.lastplayed,0)<(unix_timestamp()-10800)
        group by tracks.id
        order by random()
        limit 10;

But unfortunately I can't get it to work. I know the solution has something to do with narrowing down the Contributors table with something like this:

Code:

If you only wanted the contributors that have the role "artist", "album artist" or "track artist", you would instead use a query like:
select contributors.* from contributors, contributor_album
    where
        contributors.id = contributor_album.contributor and
        contributor_album.role in (1, 5, 6)
    group by contributors.id
    order by contributors.namesort

(from http://wiki.slimdevices.com/index.ph...n_the_database)

Thanks in advance!
Randy
Attached Images
  

Viewing all articles
Browse latest Browse all 2059

Trending Articles