>They are placed in the directory specified as the browse configuration
>directory in the Custom Browse settings page in the web interface below
>server settings.
There are no xml files in that folder.  My configuration folder points to my 
slimserver playlist folder.

When I hit the save button, I briefly see an error page in the web browser 
before it redirects back to the custom browse menu.  My new menu is not listed, 
and the file doesn't exist in the folder.  Again, I see the following error 
message:

2006-11-01 23:37:56.2295 ERROR: CustomBrowse: Failed to parse menu 
configuration because:

no element found at line 35, column 3, byte 1362 at 
P:\Music\SlimServer\trunk\server\CPAN/XML/Parser.pm line 187

I haven't done any custom configuration of the xml.  I simply click to create a 
new menu, selecting Last FM similar artists as the template, then clicking next 
and save.  This is what it is trying to save:

<?xml version="1.0" encoding="utf-8"?>
<custombrowse>
        <menu>
                <menuname>LastFM Similar Artists</menuname>
                <menu>
                        <id>baseartist</id>
                        <menuname>Similar Artists</menuname>
                        <itemtype>artist</itemtype>
                        <menutype>sql</menutype>
                        <menulinks>alpha</menulinks>
                        <menudata>
                                select 
contributors.id,contributors.name,substr(contributors.namesort,1,1) from 
contributors,contributor_album,albums,customscan_contributor_attributes
                                where 
                                        
contributor_album.contributor=contributors.id and
                                        contributor_album.album=albums.id and
                                        contributor_album.role in (1,5) and 
                                        
customscan_contributor_attributes.contributor=contributors.id and
                                        
customscan_contributor_attributes.module='cslastfm' and
                                        
customscan_contributor_attributes.attr='similarartist' and
                                        exists (select id from contributors
                                                where 
                                                        name = 
customscan_contributor_attributes.value)
                                group by contributors.id 
                                order by contributors.namesort asc;
                        </menudata>
                        <menu>
                                <id>artist</id>
                                <menuname>Albums</menuname>
                                <itemtype>artist</itemtype>
                                <menutype>sql</menutype>
                                <menulinks>alpha</menulinks>
                                <menudata>
                                        select 
contributors.id,contributors.name,substr(contributors.namesort,1,1) from 
contributors,customscan_contributor_attributes
                                        where 
                                                
customscan_contributor_attributes.contributor={baseartist} and
                                                
customscan_contributor_attributes.module='cslastfm' and
                                                
customscan_contributor_attributes.attr='similarartist' and
                                                
customscan_contributor_attributes.value=contributors.name
                                        group by contributors.id 
                                        order by contributors.namesort asc
                                </menudata>
                                <menu>
                                        <id>album</id>
                                        <menuname>Songs</menuname>
                                        <itemtype>album</itemtype>
                                        <itemformat>album</itemformat>
                                        <menutype>sql</menutype>
                                        <option>
                                                <id>byyear</id>
                                                <name>Sort by year</name>
                                                <keyword name="orderby" 
value="albums.year desc,albums.titlesort asc"/>
                                                <menulinks>number</menulinks>
                                        </option>
                                        <option>
                                                <id>bytitle</id>
                                                <name>Sort by title</name>
                                                <menulinks>alpha</menulinks>
                                                <keyword name="orderby" 
value="albums.titlesort asc"/>
                                        </option>
                                        <menudata>
                                                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} 
                                                group by albums.id 
                                                order by {orderby}
                                        </menudata>
                                        <menu>
                                                <id>track</id>
                                                <itemtype>track</itemtype>
                                                <itemformat>track</itemformat>
                                                <playtype>all</playtype>
                                                <menutype>sql</menutype>
                                                <menudata>
                                                        select 
tracks.id,tracks.title from tracks,contributor_track,albums 
                                                        where 
                                                                tracks.audio=1 
and 
                                                                
contributor_track.track=tracks.id and 
                                                                
tracks.album={album} and 
                                                                
contributor_track.contributor={artist} 
                                                        group by tracks.id 
                                                        order by 
tracks.tracknum asc,tracks.titlesort asc
                                                </menudata>
                                                <menu>
                                                        <id>trackdetails</id>
                                                        
<menutype>trackdetails</menutype>
                                                        
<menudata>track</menudata>
                                                </menu>
                                        </menu>
                                </menu>
                        </menu>
                </menu>
        </menu>
</custombrowse>
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to