Page 1 of 1

getGenres error

PostPosted: Wed May 29, 2013 2:41 am
by billbacadill
I have recently installed subsonic 4.8 and am trying to get the getGenres API call to work. Other requests work fine, including getSongsByGenre.

My URL Line looks as follows:
http://r8hvng9:4040/rest/getGenres.view ... u=BB&p=bb1

I get the following response back when using the Chrome browser:
This page contains the following errors:
error on line 4 at column 29: Opening and ending tag mismatch: Unknown line 0 and genre
Below is a rendering of the page up to the first error.


I get this response back when using IE 8:
End tag 'genre' does not match the start tag 'Unknown'. Error processing resource 'http://r8hvng9:4040/rest/getGenres.view?...
<genre><Unknown></genre>


Subsonic Version information is as follows:
Version 4.8 (build 3434) – April 17, 2013
Server jetty-6.1.x, java 1.7.0_11, Windows XP (42.9 MB / 62.7 MB)


I looked in the log file and there were no errors.

Re: getGenres error

PostPosted: Fri May 31, 2013 2:26 am
by billbacadill
Well I figured out a few things since my initial post. The problems are centered around having songs in your music collection with genre names containing any of the following characters: < > or &

When ever you do that the getGenres call fails. If you eliminate those genres, it works.

I am not sure where the list of possible genres (found when editing tags) comes from, but several of them have the & sign in them.

Any help on how this can be corrected is appreciated.

Thanks, Bill

Re: getGenres error

PostPosted: Fri May 31, 2013 2:32 am
by gurutech
You should be able to replace the < and > with [ and ], { and }, or ( and ). Not sure what could be used to replace the &. Maybe the word "and" ?

I had a similar problem with playlists, using a "/" - it would work fine on my PC, but on my Android phone, it would give me a java error. I just replaced the / with a - and it's all working now.

Re: getGenres error

PostPosted: Sat Jun 01, 2013 2:32 am
by billbacadill
I could replace those items in my music. Subsonic still has them in a possible genres to set. I'm not sure where it is getting that list from. It would be nice to be able to do this globally so that I don't have to go through every song/album.