Moderator: moderators
BKKKPewsey wrote:Making the assumption that you are not using the server code but only the client then that should work.
You may need to stop SS and clear the jetty cache then restart before it shows. (And clear browser cache)
Also test it with a common band because sometimes nothing will show if it cannot recognise the artist.
if(typeof(jQuery) === undefined) { // if jQuery isn't loaded yet...
if(typeof(jQuery) == undefined) { // if jQuery isn't loaded yet...
var desc = ((artist.type !== 'Unknown') ? '('+artist.type+') ' : '') + artist.disambiguation;
var desc = ((artist.type != 'Unknown') ? '('+artist.type+') ' : '') + artist.disambiguation;
mqchen wrote:About the operators, it should be '===' and '!=='. It is the identity operator instead of the equals operator (http://stackoverflow.com/questions/3594 ... ator-i-use)
Could you open in up in Firebug and post the error messages you get, as well as the Net tab?
mqchen wrote:Well, get some sleep!
Anyway, it is much easier if you could open up Firebug and show us what kind of errors you get as well as network activity. I am running it on Chrome 14, so it should work fine on Chromium. Maybe it's because you're running a dev version? Or maybe it's because of the other changes you made to the template?
mqchen wrote:Hmm, so does it work 99% of the time, or does jQuery load 99% of the time, but the widget still doesn't work?
if(jQuery !== undefined) {
}
mqchen wrote:Yeah, I think this might have happened to me as well... It has to do with loading jQuery dynamically. The method is a little buggy.
Try wrapping it with this instead
- Code: Select all
if(jQuery !== undefined) {
}
califrag wrote:Hi mqchen,
I've managed to get this working without throwing errors and have incorporated it into a branch of Subsonic I am developing on.
I hope you don't mind.
I've also renamed everything from 'similar_artists' to 'music_brainz' so it will be more than just 'similar artists', it will be an entire music_brainz integration.
I've still got a little more work to do to fix 'Similar songs', but if you are interested in the version I've modified I can post the modified files here, on your github or they will also be available through the subsonic svn after my next commit (within the next few days).
mqchen wrote:califrag wrote:Hi mqchen,
I've managed to get this working without throwing errors and have incorporated it into a branch of Subsonic I am developing on.
I hope you don't mind.
I've also renamed everything from 'similar_artists' to 'music_brainz' so it will be more than just 'similar artists', it will be an entire music_brainz integration.
I've still got a little more work to do to fix 'Similar songs', but if you are interested in the version I've modified I can post the modified files here, on your github or they will also be available through the subsonic svn after my next commit (within the next few days).
I don't mind at all. Feel free to fork the project on Github: https://github.com/mqchen/SimilarArtist ... r-Subsonic
I decided to call it Similar Artists because it uses more than one service. It uses both Musicbrainz and Last.fm.
Return to Mods, Apps and Clients
Users browsing this forum: No registered users and 4 guests