Similar Artists Javascript Widget Mod

Third-party modifications and add-ons, Apps and Clients

Moderator: moderators

Postby mvo » Sun Apr 03, 2011 5:29 am

Do you think it's possible for SS to play music in random mode based off the initial artist selected and then branching out to songs from similar artists that are in your database? Similar to Pandora, Last.FM, Slacker, etc...?
mvo
 
Posts: 13
Joined: Wed Dec 08, 2010 3:09 am

Postby mqchen » Sun Apr 03, 2011 2:50 pm

mvo wrote:Do you think it's possible for SS to play music in random mode based off the initial artist selected and then branching out to songs from similar artists that are in your database? Similar to Pandora, Last.FM, Slacker, etc...?


It is in theory possible. Just have to figure out a good way to get javascript to communicate across frames (frames sucks...). The solution I have mind would probably have to change the content of the "main" frame for a split second though...

Anyway, I don´t have too much spare time right now, but we´ll see. Can´t promise anything...
User avatar
mqchen
 
Posts: 28
Joined: Mon Feb 28, 2011 2:33 am

Postby nick2412 » Sun Apr 10, 2011 6:15 pm

THis doesn't seem to work anymore after LastFMs database issues on friday.
nick2412
 
Posts: 3
Joined: Sun Apr 10, 2011 6:14 pm

Postby mqchen » Sun Apr 10, 2011 8:10 pm

nick2412 wrote:THis doesn't seem to work anymore after LastFMs database issues on friday.


Hi! It seems to work fine over here...

The server is also responding: http://moquanc.at.ifi.uio.no/ArtistInfo ... adam+green
User avatar
mqchen
 
Posts: 28
Joined: Mon Feb 28, 2011 2:33 am

Postby nick2412 » Mon Apr 11, 2011 12:13 pm

mqchen wrote:
nick2412 wrote:THis doesn't seem to work anymore after LastFMs database issues on friday.


Hi! It seems to work fine over here...

The server is also responding: http://moquanc.at.ifi.uio.no/ArtistInfo ... adam+green


nvm works now for some reason :D, awesome work man..

greatly appreciated!!! This makes building a play list so much easier.
nick2412
 
Posts: 3
Joined: Sun Apr 10, 2011 6:14 pm

Postby 3R3 » Thu Apr 21, 2011 4:40 am

Hi, still checking this thread frequently in hope of someone with more time on their hands than me :/
I'd love to jump into making the artist list pop up from a small icon, but alas, right now is not the time for me...

And heres a littlle feedback from my users: they love it, makes any collection so much more explorable and accessible :) (I love it too ofc, else I wouldnt have installed it ;) )
User avatar
3R3
 
Posts: 332
Joined: Mon May 04, 2009 2:09 pm
Location: Germany

Postby PoGo » Thu Apr 21, 2011 11:41 pm

Hello,

First, thank you very much mqchen for your mod, it's for sure a must for Subsonic ;)
I installed it, and I had to face some trouble that I solved now.
I thought I have to share it with you guys in case of someone has to deal with the same problem as me !

First : all the links to the javascripts starts with a "/", which means that if you running subsonic with a path like https://xxx/subsonic all the scripts are trying to be loaded from https://xxx/
In that case the Similar Artists script wont show up.
So, just delete the first "/" in the scripts.js, for example :
Code: Select all
load.injectDependency('/script/similar_artists/jquery.ba-postmessage.js');

will become
Code: Select all
load.injectDependency('script/similar_artists/jquery.ba-postmessage.js');


Second : if you are sharing music and video in the same subsonic, and if someone is viewing a movie while your listening to some music, the script cannot parse the artist name of the movie displayed in the "Listening now" window and will come with a blank artist name.
In that case, the application will reload and reload every 5 seconds.
Just edit the file similar_artists/similar_artists.js
and change at the line 98 :
Code: Select all
if(curArtist !=0) fetchSimilarArtists(curArtist);

instead of
Code: Select all
fetchSimilarArtists(curArtist)

Then the apps wont load an artist with a blank name.

Hope this can help someone in the future ;)
Cheers.
PoGo
 
Posts: 36
Joined: Thu Apr 21, 2011 11:07 pm

Postby mqchen » Mon Apr 25, 2011 7:55 pm

@PoGo

Thanks for sharing your solutions to your problems! I´ll currently away on a trip, but I´ll commit the changes to the repository as soon as I get back. Or, if you´d like, feel free to fork the project on Github and make a pull request.
User avatar
mqchen
 
Posts: 28
Joined: Mon Feb 28, 2011 2:33 am

Postby mvo » Mon May 09, 2011 5:13 pm

mqchen wrote:
mvo wrote:Do you think it's possible for SS to play music in random mode based off the initial artist selected and then branching out to songs from similar artists that are in your database? Similar to Pandora, Last.FM, Slacker, etc...?


It is in theory possible. Just have to figure out a good way to get javascript to communicate across frames (frames sucks...). The solution I have mind would probably have to change the content of the "main" frame for a split second though...

Anyway, I don´t have too much spare time right now, but we´ll see. Can´t promise anything...


You could use cookies to stores the artist name or perhaps localStorage.
mvo
 
Posts: 13
Joined: Wed Dec 08, 2010 3:09 am

Postby Minime » Sat Jun 25, 2011 11:05 pm

This an awesome mod. It will definitely enhance the listening experience of all users and help them explore more artists they otherwise would not know about and/or listen to. I absolutely love it and will try to implement it soon. I am currently in the middle of migrating my server to a vmware based system and i might as well add this mod. looking forward. I will let you know how it goes and if i encounter any problems.

Thanks guys +++
Best Regards
Minime,
-----------------------------------------------------------------
Subsonic 4.6 | Ubuntu 10.04 LTS inside a VMWare host
Galaxy SII with ICS 4.0.1 & Android App v3.0 Combo
XBMC Dharma with t0mm0-xbmc-addons
+ A few custom Mods
User avatar
Minime
 
Posts: 68
Joined: Fri Dec 17, 2010 5:19 am
Location: UK

Postby Hellscream » Sat Jul 09, 2011 2:21 pm

PFFF :? I have tryed everything and doesnt work for me. I have SS 4.4 Strange thing is i dont get eny errors and im using google chrome browser.
Can someone try this link and post here is it working? At least i will get some directions what is wrong. http://hellscream.dyndns.org/ArtistInfo/jsonp.php
Image
User avatar
Hellscream
 
Posts: 160
Joined: Fri Apr 22, 2011 11:47 am
Location: Serbia

Postby BKKKPewsey » Sat Jul 16, 2011 2:13 pm

This is a great mod :D but I just cannot get the server side bit 2 work. I have php installed on my WHS R1 which works fine but when I change similar_artists/similar_artists.js var to point to my own server I get a 500 error code. My knowledge of php is virtually non-existent so its probably something I'm doing wrong :oops:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Postby Hellscream » Sat Jul 16, 2011 2:18 pm

Try this link and tell me do u still get errors
http://hellscream.dyndns.org/ArtistInfo/jsonp.php
Image
User avatar
Hellscream
 
Posts: 160
Joined: Fri Apr 22, 2011 11:47 am
Location: Serbia

Postby BKKKPewsey » Sat Jul 16, 2011 4:21 pm

Hellscream: Tried your link and got the following:-

HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request.

:cry:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Postby Hellscream » Sat Jul 16, 2011 5:05 pm

damn same shit here.
I think i need to reinstal PHP and apache and check again.
I have no clue what can be wrong
Image
User avatar
Hellscream
 
Posts: 160
Joined: Fri Apr 22, 2011 11:47 am
Location: Serbia

PreviousNext

Return to Mods, Apps and Clients

Who is online

Users browsing this forum: No registered users and 5 guests