Re: [SlimDevices: Plugins] "Never Played" library

2011-04-28 Thread erland

mps;628134 Wrote: 
> :( Is there an advantage that I am missing or just something that you
> haven't gotten around to?

No advantage, it was just easiest to implement it this way.

If anyone is interested to see it changed and want it to happen soon,
patches are always welcome. I will probably look at it myself som time
in the future but not in the near future.


-- 
erland

Erland Isaksson ('My homepage' (http://erland.isaksson.info))
(Developer of 'many plugins/applets'
(http://wiki.slimdevices.com/index.php/User:Erland). If my answer
helped you and you like to encourage future presence on this forum
and/or third party plugin/applet development, 'donations are always
appreciated' (http://erland.isaksson.info/donate))

erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=87250

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-28 Thread mps

erland;628130 Wrote: 
> TrackStat is currently designed to work like this, might be changed in a
> future release.
:( Is there an advantage that I am missing or just something that you
haven't gotten around to?


-- 
mps

mps's Profile: http://forums.slimdevices.com/member.php?userid=36351
View this thread: http://forums.slimdevices.com/showthread.php?t=87250

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-28 Thread erland

mps;628127 Wrote: 
> One followup issue. Whenever I play a song, it doesn't show up in
> trackstat as played until I start playing another song. This is true
> even an hour after the song has completed, even though it is obviously
> not an unplayed song anymore. Any thoughts?
> 
> Thanks again for everyones help,
> 
> Mike

TrackStat is currently designed to work like this, might be changed in
a future release.


-- 
erland

Erland Isaksson ('My homepage' (http://erland.isaksson.info))
(Developer of 'many plugins/applets'
(http://wiki.slimdevices.com/index.php/User:Erland). If my answer
helped you and you like to encourage future presence on this forum
and/or third party plugin/applet development, 'donations are always
appreciated' (http://erland.isaksson.info/donate))

erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=87250

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-28 Thread mps

One followup issue. Whenever I play a song, it doesn't show up in
trackstat as played until I start playing another song. This is true
even an hour after the song has completed, even though it is obviously
not an unplayed song anymore. Any thoughts?

Thanks again for everyones help,

Mike


-- 
mps

mps's Profile: http://forums.slimdevices.com/member.php?userid=36351
View this thread: http://forums.slimdevices.com/showthread.php?t=87250

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-27 Thread mps

erland;627587 Wrote: 
> That's right, I forgot about that, it's probably easier to just use the
> "Only never played songs" option which is available in all "Filtered
> ..." Custom Browse menu templates than using Multi Library. 
> 
> If you like to group them into a main menu with sub menus you can still
> use the "Menu group" parameter in Custom Browse to do this even if you
> don't use Multi Library at all.
That's just what I needed (Although I still use the unplayed library
for more serious browsing, this is what I want 90% of the time). Thanks
for thinking of everything in advance!


-- 
mps

mps's Profile: http://forums.slimdevices.com/member.php?userid=36351
View this thread: http://forums.slimdevices.com/showthread.php?t=87250

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-26 Thread Phil Meyer
>If you or someone else provide updated template/xml files I'll be happy
>to include them in next release.
I had a brief look at the filteredgenres template, and couldn't see how the 
"never played" option was being picked up.  Then I realised I was looking in 
the wrong place.

I have templates in my configured "Browse templates directory", but these seem 
out of date.  Is "Browse templates directory" redundant?

I found the actual template within the CustomBrowse installed plugin folder.
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-26 Thread Phil Meyer
>I'm not sure exactly when SBS scanner set's it to 1 and 6, if the
>artists you think is track artists is set to 1 it explains what you are
>seeing.
>
Track Artist roles are only given to songs that are on albums/songs that also 
have an Album Artist.
An album that doesn't have an album artist (i.e. assigned "Various Artists" 
automatically, because there is at least one different artist on songs), will 
have songs with an Artist role, not Track Artist.  It's always seemed a bit 
peculiar.

>Could it be that all those track artists are on compilation albums, so
>when you activate Various Artists setting they are removed because it
>then only shows artists on normal albums in the main list ?
>
There are two cases where artists are included/excluded from the list:
1) If the artist only ever appears as a track artist (meaning they only appear 
as a guest on albums that have an album artist tag).
2) If the artist doesn't have any albums owned by them.

A prime example is where I have ripped some songs from CD singles, and removed 
the "album" tag (because I don't want to clutter my album list with lots of "CD 
Single" entries containing a small number of tracks).  As a result, they are 
associated with album="No Album" and have an Artist role, not Track Artist.

eg. I have a single song "Starman" by Artist="10,000 Maniacs" on "No Album".

I include Artist and Album Artist roles in the list.
If I exclude the "Various Artists section", I see the "10,000 Maniacs" artist 
in the "Unplayed Artists" list.
If I include the "Various Artists section", I don't see the artist "10,000 
Maniacs" in the "Unplayed Artists" list.  I thought I'd actually be able to 
find these within Various Artists > No Album, but strangely, I only see a 
handfull of songs there (a lot less than I have exploded out into the artists 
list if I exclude Various Artists.

It doesn't seem to work correctly, but I'm not sure what's wrong with it.  I 
guess the problem is more associated with (2) above - that the SBS Artist menu 
finds artists that are associated with albums, but excludes "No Album" albums?

Perhaps I should capture the SQL being generated to get the list in both cases.
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-26 Thread erland

Philip Meyer;627615 Wrote: 
> There isn't an equivalent template for Filtered Years though - I might
> have a go at making a template for that one.
> 
> Similarly, the templates don't have other options, such as "Not rated
> songs", which would be really useful too (would simplify some of my
> usage patterns).
> 
If you or someone else provide updated template/xml files I'll be happy
to include them in next release.


-- 
erland

Erland Isaksson ('My homepage' (http://erland.isaksson.info))
(Developer of 'many plugins/applets'
(http://wiki.slimdevices.com/index.php/User:Erland). If my answer
helped you and you like to encourage future presence on this forum
and/or third party plugin/applet development, 'donations are always
appreciated' (http://erland.isaksson.info/donate))

erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=87250

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-26 Thread Phil Meyer
There isn't an equivalent template for Filtered Years though - I might have a 
go at making a template for that one.

Similarly, the templates don't have other options, such as "Not rated songs", 
which would be really useful too (would simplify some of my usage patterns).

Phil
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-25 Thread erland

Philip Meyer;627536 Wrote: 
> 
> 
> >Coming back to the auto-update, I was wondering if there was a way
> that
> >the played/unplayed libraries could be incrementally updated on the
> end
> >of a song.
> Actually, I found that the Filtered Artist menu type has a filter for
> "Only never played songs".  You can tick this checkbox, and then you
> don't need a multi-library, and thus it is totally dynamic.
> 
> I've added a Filtered Artist menu called "Unplayed" to my Custom Browse
> Artists menu, and similarly for Albums and Genres.
> 
That's right, I forgot about that, it's probably easier to just use the
"Only never played songs" option which is available in all "Filtered
..." Custom Browse menu templates than using Multi Library. 

If you like to group them into a main menu with sub menus you can still
use the "Menu group" parameter in Custom Browse to do this even if you
don't use Multi Library at all.


-- 
erland

Erland Isaksson ('My homepage' (http://erland.isaksson.info))
(Developer of 'many plugins/applets'
(http://wiki.slimdevices.com/index.php/User:Erland). If my answer
helped you and you like to encourage future presence on this forum
and/or third party plugin/applet development, 'donations are always
appreciated' (http://erland.isaksson.info/donate))

erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=87250

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-25 Thread erland

Philip Meyer;627544 Wrote: 
> Unless I also include the Various Artists option, Filter Artists
> template doesn't seem to support the contributor "Roles to include"
> settings.  I've tried to configure it to be the same as the standard
> Artists menu, effectively to ignore track artists (so I tick Artist and
> Album Artist), but I still see track artists expanded in the list.
> 
> i.e. if I untick "Various Artists section", I see all artists blown out
> into the list, but if I tick it, I get a Various Artists menu, plus only
> artists and album artists, and no track artists.  Maybe this is
> intentional?
> 
Could you check in the database if they really are track artists ? 

My understanding is that:
- contributor_track.role=6 -> Track Artist
- contributor_track.role=5 -> Album Artist
- contributor_track.role=1 -> Artist

I'm not sure exactly when SBS scanner set's it to 1 and 6, if the
artists you think is track artists is set to 1 it explains what you are
seeing.

Could it be that all those track artists are on compilation albums, so
when you activate Various Artists setting they are removed because it
then only shows artists on normal albums in the main list ?


-- 
erland

Erland Isaksson ('My homepage' (http://erland.isaksson.info))
(Developer of 'many plugins/applets'
(http://wiki.slimdevices.com/index.php/User:Erland). If my answer
helped you and you like to encourage future presence on this forum
and/or third party plugin/applet development, 'donations are always
appreciated' (http://erland.isaksson.info/donate))

erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=87250

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-25 Thread Phil Meyer
Unless I also include the Various Artists option, Filter Artists template 
doesn't seem to support the contributor "Roles to include" settings.  I've 
tried to configure it to be the same as the standard Artists menu, effectively 
to ignore track artists (so I tick Artist and Album Artist), but I still see 
track artists expanded in the list.

i.e. if I untick "Various Artists section", I see all artists blown out into 
the list, but if I tick it, I get a Various Artists menu, plus only artists and 
album artists, and no track artists.  Maybe this is intentional?
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-25 Thread Phil Meyer
>That worked! Thanks so much!
>
I found it a bit hit and miss for me.  I still had issues (in Web UI at least) 
with visiting an artist, clicking an album and seeing no tracks, then going 
back and clicking the album name again and seeing tracks appear.

>Coming back to the auto-update, I was wondering if there was a way that
>the played/unplayed libraries could be incrementally updated on the end
>of a song.
Actually, I found that the Filtered Artist menu type has a filter for "Only 
never played songs".  You can tick this checkbox, and then you don't need a 
multi-library, and thus it is totally dynamic.

I've added a Filtered Artist menu called "Unplayed" to my Custom Browse Artists 
menu, and similarly for Albums and Genres.
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-25 Thread mps

erland;627463 Wrote: 
> Could you try if it works better if you use the "Filtered Artists" menu
> provided by Custom Browse ? I think that should work better as it's
> based on per track information instead of per album information.
> 
> Just create the menu in Custom Browse and set the "Menu group"
> parameter to the library name and select the library in the "Library"
> parameter.
That worked! Thanks so much!

Coming back to the auto-update, I was wondering if there was a way that
the played/unplayed libraries could be incrementally updated on the end
of a song. IOW, we really just need to add or remove from the library
the track just played, which doesn't feel like it needs a complete
recreation of the library. I did notice that the web interface to
trackstat seems to update in near real-time. Is that done in a way that
would work here?

Thanks again for all your work,

Mike


-- 
mps

mps's Profile: http://forums.slimdevices.com/member.php?userid=36351
View this thread: http://forums.slimdevices.com/showthread.php?t=87250

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-25 Thread erland

mps;627447 Wrote: 
> 
> BTW, I am using the standard multilibrary artists menu.
> 
Could you try if it works better if you use the "Filtered Artists" menu
provided by Custom Browse ? I think that should work better as it's
based on per track information instead of per album information.

Just create the menu in Custom Browse and set the "Menu group"
parameter to the library name and select the library in the "Library"
parameter.


-- 
erland

Erland Isaksson ('My homepage' (http://erland.isaksson.info))
(Developer of 'many plugins/applets'
(http://wiki.slimdevices.com/index.php/User:Erland). If my answer
helped you and you like to encourage future presence on this forum
and/or third party plugin/applet development, 'donations are always
appreciated' (http://erland.isaksson.info/donate))

erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=87250

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-25 Thread mps

erland;627370 Wrote: 
> Exactly which menu and which user interface do you have the problem in
> ?
> 
> I just did a quick test using your library definition and the
> "Unplayed/Artists" menu in the web interface and it displays an artist
> but below the artist there are only albums that contains unplayed
> songs.
I looked more closely and the problem seems to be around compilation
albums (of which I have many). For example, I have played the only
AC/DC song on The Last Action Hero Soundtrack, but when I go
Unplayed/Artists/AC/DC, it shows "The Last Action Hero Soundtrack" in
the album list. When I click on it, the web interface says "No matching
songs, albums or artists were found." I suspect the issue is that it
shows the LAH Soundtrack in the AC/DC album list because it contains
some unplayed songs, but doesn't realize that there are no unplayed
AC/DC songs. Any thoughts about that? 

BTW, I am using the standard multilibrary artists menu.


-- 
mps

mps's Profile: http://forums.slimdevices.com/member.php?userid=36351
View this thread: http://forums.slimdevices.com/showthread.php?t=87250

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-24 Thread erland

mps;627357 Wrote: 
> 
> At the moment, I'm most concerned about filtering out the empty albums,
> which is pretty much of a showstopper. Do you have any suggestions about
> that?
> 
Exactly which menu and which user interface do you have the problem in
?

I just did a quick test using your library definition and the
"Unplayed/Artists" menu in the web interface and it displays an artist
but below the artist there are only albums that contains unplayed
songs.


-- 
erland

Erland Isaksson ('My homepage' (http://erland.isaksson.info))
(Developer of 'many plugins/applets'
(http://wiki.slimdevices.com/index.php/User:Erland). If my answer
helped you and you like to encourage future presence on this forum
and/or third party plugin/applet development, 'donations are always
appreciated' (http://erland.isaksson.info/donate))

erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=87250

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-24 Thread mps

Thanks Erland
erland;627337 Wrote: 
> How large library do you have ?
> 
About 6200 songs
> 
> How long does a refresh take ?
> 
About 15 seconds on a ReadyNas Pro (Pentium E2160. Faster than an
atom).
> 
> I'm asking because if it takes short time there might be some way I
> could improve Multi Library to make it do automatic refresh operations
> at certain situations, for example immediately after a track has been
> played.
The automatic refresh would definitely be nice.

At the moment, I'm most concerned about filtering out the empty albums,
which is pretty much of a showstopper. Do you have any suggestions about
that?

Thanks again,

Mike


-- 
mps

mps's Profile: http://forums.slimdevices.com/member.php?userid=36351
View this thread: http://forums.slimdevices.com/showthread.php?t=87250

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-24 Thread Phil Meyer
>These are definitely albums where all the songs have been played. I
>don't know why the albums aren't being filtered out.
I'm guessing that multi-library is building menus based on the attributes of 
songs that match.  i.e. if a song is by artist X, then artist X is displayed in 
a list of artists.  When you click on the artist, it lists all artist albums, 
not albums where there is at least one song in the underlying library.

Using my dynamic mixed tags based on a library technique, it kind of works, but 
there's this weird case whereby sometimes the first time I click on an artist > 
album it displays no songs, but if I refresh, it then displays them.  Perhaps 
some caching issue?
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-24 Thread erland

How large library do you have ?
How long does a refresh take ?

I'm asking because if it takes short time there might be some way I
could improve Multi Library to make it do automatic refresh operations
at certain situations, for example immediately after a track has been
played.


-- 
erland

Erland Isaksson ('My homepage' (http://erland.isaksson.info))
(Developer of 'many plugins/applets'
(http://wiki.slimdevices.com/index.php/User:Erland). If my answer
helped you and you like to encourage future presence on this forum
and/or third party plugin/applet development, 'donations are always
appreciated' (http://erland.isaksson.info/donate))

erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=87250

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-24 Thread mps

Philip Meyer;627285 Wrote: 
> >2. As I play more songs, when will they be removed from the
> >never-played library?
> >
> You have to refresh the library content.
> In the WebUI, go to Extras > Multi Library, and press the Refresh
> Libraries button.
> 
Thanks, I can live with that.
> 
> Regarding your first point, I find that if I click on an album, it
> initially appears blank (no songs listed), but if I navigate back and
> then go into the album again, it will list some songs.
> 
These are definitely albums where all the songs have been played. I
don't know why the albums aren't being filtered out.
> 
> I guess a better way to do it would be to build your own menus using
> custom browse.  Lots more work, though.
> 
> Perhaps the "Dynamic Mixed Tags" feature could be extended to include
> other items such as "Never Played Songs", and "Not Rated Songs", so you
> could choose Never Played Songs > Artists > Matching Albums.
> 
> A quick way of maybe achieving this is to create a new Custom Browse
> menu, based on the Dynamic Mixed Tags template (requires Custom Scan
> plugin too, I think), and select the Unplayed library as a filter
> parameter.  Then you can access this menu and choose any variety of
> tags, eg "Artists" and then "Albums".  I think you'll still have to
> refresh the library to see updated browse menu content though.
> 
> Phil
Along these lines, I have thought of just customizing the SQL for
various custombrowse libraries along the lines of the file I attached
on the list. I suspect that would have the advantage of not needing to
be refreshed. However, it would require my manually hacking a lot of
menus. I may try it just to see if it has the same problem of failing
to filter out "empty" albums.


-- 
mps

mps's Profile: http://forums.slimdevices.com/member.php?userid=36351
View this thread: http://forums.slimdevices.com/showthread.php?t=87250

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


Re: [SlimDevices: Plugins] "Never Played" library

2011-04-24 Thread Phil Meyer
>2. As I play more songs, when will they be removed from the
>never-played library?
>
You have to refresh the library content.
In the WebUI, go to Extras > Multi Library, and press the Refresh Libraries 
button.

Regarding your first point, I find that if I click on an album, it initially 
appears blank (no songs listed), but if I navigate back and then go into the 
album again, it will list some songs.

I guess a better way to do it would be to build your own menus using custom 
browse.  Lots more work, though.

Perhaps the "Dynamic Mixed Tags" feature could be extended to include other 
items such as "Never Played Songs", and "Not Rated Songs", so you could choose 
Never Played Songs > Artists > Matching Albums.

A quick way of maybe achieving this is to create a new Custom Browse menu, 
based on the Dynamic Mixed Tags template (requires Custom Scan plugin too, I 
think), and select the Unplayed library as a filter parameter.  Then you can 
access this menu and choose any variety of tags, eg "Artists" and then 
"Albums".  I think you'll still have to refresh the library to see updated 
browse menu content though.

Phil
___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins


[SlimDevices: Plugins] "Never Played" library

2011-04-24 Thread mps

I wanted to make it easy to browse my never-played songs, so I could see
what music I'd neglected. I created a "never-played" multilibrary with
the attached customized SQL. While it sort of works, I have the
following problems/questions:

1. "Completely played" artists do not appear in the "never-played"
multilibrary, which is great. However, if I have an artist with 5
albums and only one of them contains unplayed songs, it shows all 5
albums in the multilibrary, and I then have to browse through them to
see which one has any unplayed songs (The fully played albums show up
as having no songs). Can I keep albums with no unplayed songs from
appearing?

2. As I play more songs, when will they be removed from the
never-played library?

Thanks for any thoughts,

Mike


+---+
|Filename: unplayed.txt |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=11763|
+---+

-- 
mps

mps's Profile: http://forums.slimdevices.com/member.php?userid=36351
View this thread: http://forums.slimdevices.com/showthread.php?t=87250

___
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins