Re: [SlimDevices: Plugins] Custom Browse (+ iPeng?): Play track directly, avoid displaying menu

2011-10-16 Thread sts78

erland;663581 Wrote: 
  However, I've just released a new version of Custom Browse (2.12.3560)
 which have support for a custom ipengitemtype parameter which
 overrides itemtype but isn't used internally within Custom Browse.

That did it! :)
Thank you very much!


-- 
sts78

sts78's Profile: http://forums.slimdevices.com/member.php?userid=50205
View this thread: http://forums.slimdevices.com/showthread.php?t=90936

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


[SlimDevices: Plugins] Custom Browse (+ iPeng?): Play track directly, avoid displaying menu

2011-10-14 Thread sts78
:


  ?xml version=1.0 encoding=utf-8?
  custombrowse
menu
menugroupMusik/menugroup
menunameSingles/menuname
playtypenone/playtype
menulinksalpha/menulinks
menuorder70/menuorder

menu
idartist/id
menunameArtist/menuname
itemtypeartist/itemtype
playtypenone/playtype
menutypesql/menutype
menulinksalpha/menulinks
menudata
select distinct 
contributors.id,contributors.name,substr(contributors.namesort,1,1) 
from contributors,contributor_track,tracks
where contributors.id = 
contributor_track.contributor 
and contributor_track.track = tracks.id 
and contributor_track.role in (1,5) 
and tracks.audio = 1
and tracks.url like '%/share/Musik/Singles/%'
group by contributors.id
order by contributors.namesort asc
/menudata
menu
idtrack/id
itemtypetrack/itemtype
itemformattitleformat/itemformat
playtypeall/playtype
menutypesql/menutype
jivepattern^(.*)\s\((.*)\)$/jivepattern
menudata
select 
tracks.id,tracks.title,substr(tracks.title,1,1) 
from contributor_track,tracks,albums
where tracks.id = 
contributor_track.track 
and contributor_track.role in (1,5) 
and tracks.album = albums.id
and albums.title = 'Kein Album'
and contributor_track.contributor = 
{artist}
and tracks.audio = 1
group by tracks.id
order by tracks.titlesort asc
/menudata
menu
idtrackdetails/id
menutypetrackdetails/menutype
menudatatrack|0/menudata
/menu
/menu
/menu 

/menu
  /custombrowse
  



Both work wonderfully, both display the results correctly.
But while the album view directly plays the selected track when
clicking on it, the singles view just displays the addidional menu
(replay gains, tags, add to playlist, play and so on) when clicking on
a track.

Is there any option I missed in the singles menu? I want do get the
artist listet (works), by clicking on an artist I want all the songs in
the filtered folder listet (works), and when I click on one of the
listed tracks I want it to play instantly.

Where is the difference between the two menus that they behave
differently on track level?


-- 
sts78

sts78's Profile: http://forums.slimdevices.com/member.php?userid=50205
View this thread: http://forums.slimdevices.com/showthread.php?t=90936

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


Re: [SlimDevices: Plugins] iPeng + Custom Browse: Grouping by letters in artist menu

2011-10-07 Thread sts78
select 
albums.id,albums.title,substr(albums.titlesort,1,1) 
from contributor_album,albums 
where albums.id = 
contributor_album.album 
and contributor_album.contributor = 
{artist} 
and contributor_album.role in (1,5)
and albums.title not in ('Kein Album')
group by albums.id 
order by albums.titlesort 
asc,albums.disc asc
/menudata
menu
idtrack/id
itemtypetrack/itemtype
itemformattitleformat/itemformat
itemformatdataTITLE 
(DURATION)/itemformatdata
playtypeall/playtype
menutypesql/menutype

jivepattern^(.*)\s\((.*)\)$/jivepattern
menudata
select 
tracks.id,tracks.title,substr(tracks.title,1,1)
from 
tracks,contributor_track,albums 
where tracks.audio = 1 
and contributor_track.track = 
tracks.id 
and tracks.album = {album} 
and 
contributor_track.contributor = {artist} 
and contributor_track.role 
in (1,5) 
group by tracks.id 
order by 
tracks.disc,tracks.tracknum asc,tracks.titlesort asc
/menudata
menu
idtrackdetails/id

menutypetrackdetails/menutype
menudatatrack|0/menudata
/menu
/menu
/menu
/menu 
  

/menu
  /custombrowse
  
  



Maybe someone can tell me why this menu doesn't group the artists on
iPeng, but the original SBS artists menu does (with the exactly same
data load)?


-- 
sts78

sts78's Profile: http://forums.slimdevices.com/member.php?userid=50205
View this thread: http://forums.slimdevices.com/showthread.php?t=90754

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


[SlimDevices: Plugins] iPeng + Custom Browse: Grouping by letters in artist menu

2011-10-06 Thread sts78

Hello,

I use iPeng via a squeezeslave htpc to play my music, and I use some
Custom Browse menus. (SBS 7.6.2 on a QNAP NAS, iPeng and CB most
current releases)

If I use the standards artist menus, iPeng groups the Artists by their
first letter (those little gray bars). But if I use the artist template
of CB, the output is quite the same, but without this grouping, just the
list of the artists. 

Is this a matter of iPeng or CB? If it is the latter case, how can I
achieve to get those bars?

Thx in advance
Steffen


-- 
sts78

sts78's Profile: http://forums.slimdevices.com/member.php?userid=50205
View this thread: http://forums.slimdevices.com/showthread.php?t=90754

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


Re: [SlimDevices: Plugins] iPeng + Custom Browse: Grouping by letters in artist menu

2011-10-06 Thread sts78

I have no leading articles, all my music is stored of the form Rolling
Stones, The and so on. Maybe ugly for some people, but very useful for
me. ;)
So I think the articles are not the problem in my case.

What do you mean with textkeys? Currently I used only the standard
artist template without going into the xml. But on some xml examples I
saw something like [..]substr(contributors.namesort,1,1)[..] as the
third field of the SELECT. Is this the textkey? Because when I dig into
the CB source code and look into the artist.xml template of CB, there is
only a select contributors.id,contributors.name from contributors.


-- 
sts78

sts78's Profile: http://forums.slimdevices.com/member.php?userid=50205
View this thread: http://forums.slimdevices.com/showthread.php?t=90754

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


Re: [SlimDevices: Plugins] iPeng + Custom Browse: Grouping by letters in artist menu

2011-10-06 Thread sts78

Just recreated an artist menu (third template in the CB list) from
scratch (after rescanning whole database and clearing ipeng cache).

No roles included, with various artists section checked, default sort
by title...

Result:
The artist list is sorted, the alphabetical list of letters on the
right side exists, various artists is the first entry before the
a-artists and after the play all entry. No artists with obscure
accents and so on (it's just a test drive machine). Artist count on the
list: 36. The original artist menu has the bars.

Did I miss something?


-- 
sts78

sts78's Profile: http://forums.slimdevices.com/member.php?userid=50205
View this thread: http://forums.slimdevices.com/showthread.php?t=90754

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


[SlimDevices: Plugins] Custom Browse: Get track length

2011-10-06 Thread sts78

Is there any other way to get the length for a track for displaying it
as xx:xx other than to assemble it with cumbersome attacks on
tracks.secs?

My current attempt


Code:


  menu
idtrack/id
itemtypetrack/itemtype
itemformattitleformat/itemformat
playtypeall/playtype
menutypesql/menutype
jivepattern^(.*)\s\((.*)\)$/jivepattern
menudata
select 
tracks.id,
concat(tracks.title,' 
(',if(tracks.secs59,concat(floor(tracks.secs/60),':',floor(tracks.secs-floor(tracks.secs/60)*60)),concat('00:',floor(tracks.secs))),')'),
substr(tracks.title,1,1)
from tracks,contributor_track,albums 
where tracks.audio = 1 
and contributor_track.track = tracks.id 
and tracks.album = {album} 
and contributor_track.contributor = {artist} 
and contributor_track.role in (1,5) 
group by tracks.id 
order by tracks.disc,tracks.tracknum asc,tracks.titlesort asc
/menudata
menu
idtrackdetails/id
menutypetrackdetails/menutype
menudatatrack|0/menudata
/menu
  /menu
  



is already horrendous, and it actually doesn't sufficiently consider
leading zeros.


-- 
sts78

sts78's Profile: http://forums.slimdevices.com/member.php?userid=50205
View this thread: http://forums.slimdevices.com/showthread.php?t=90765

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


Re: [SlimDevices: Plugins] iPeng + Custom Browse: Grouping by letters in artist menu

2011-10-06 Thread sts78

But why is the original artist menu grouped with exactly the same number
of artists?


-- 
sts78

sts78's Profile: http://forums.slimdevices.com/member.php?userid=50205
View this thread: http://forums.slimdevices.com/showthread.php?t=90754

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


Re: [SlimDevices: Plugins] Custom Browse: Get track length

2011-10-06 Thread sts78

Found it by myself:  
itemformatdataTITLE (DURATION)/itemformatdata

:)


-- 
sts78

sts78's Profile: http://forums.slimdevices.com/member.php?userid=50205
View this thread: http://forums.slimdevices.com/showthread.php?t=90765

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


[SlimDevices: Plugins] Custom Browse and songs with no album

2011-10-03 Thread sts78

Hello,

I'm running a squeezebox server on a QNAP NAS and a little headless ION
ITX HTPC with squeezeslave controlled by iPeng. For testing purposes I
have installed SqueezePlay on another machine. 

To separate my albums and singles from my classical music I installed
multilibrary, one for the classical music (standard library of folder),
one for the remaining music (dependend library excluding classical lib),
just like the howto in the wiki. Then I created two CB menus. All works
very fine so far (so I already donated ;) ).

But one strange behavior I observed with the custom browse menu. For my
albums and singles I created a CB menu with the artists template. It
says Artists menu that works the same way as the standard slimserver
artists menu. 
But it doesn't, at least concerning the output of songs with no album.


The original Menu (Artist - Album - Title) works as follows
(example):
List of artists - click on Bassey, Shirley
- [cover] No Album (big on the first line), Bassey, Shirley (small
on the second line)
- Goldfinger

But the CB menu shows the following:
List of artists - click on Bassey, Shirley
- [cover] No Album (big on the first line), very long list with
all artists that have a song with no album assigned on the second
line
- Goldfinger

Both in iPeng via SqueezeSlave and SqueezePlay. 

Did I miss something? Why doesn't the CB Album List show the artist
which has been selected in the upper menu level like the original
artist menu, but shows all artists that have a song with no album
assigned? Is there a WHERE clause missing in the SQL which filters the
artist in the albums query?


Thanks you very much in advance.
Steffen


-- 
sts78

sts78's Profile: http://forums.slimdevices.com/member.php?userid=50205
View this thread: http://forums.slimdevices.com/showthread.php?t=90687

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