Similar Artists Javascript Widget Mod

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

Moderator: moderators

Postby jacobthe4th » Wed Mar 16, 2011 4:11 am

kermit22,

In my case I am running the SS server (from a WHS on my network) All is fine serving web browsers, phone clients, and Sub Air.

I am getting the same error as you. :?

Image

To get there, I first edited the scripts.js file as told.
Image

In my case that file is found, "C:\subsonic\jetty\2172\webapp\script\scripts.js" as shown in image below

Image

I then copied the "Client\similar_artists\" folder to my "C:\subsonic\jetty\2172\webapp" directory, again as shown in image below.

Image

The contents of that "similar_artists"directory is...

Image

At this point I have tried moving the contents to various locations, but no luck. I have cleared my browser cache, jetty server cache and stop/started my server between each try, as recommend by 3R3

Any ideas? I have tried Chrome and Firefox. Same results, no module...

Also, 3R3, I like your idea for displaying the Similar Artist info. Very Clean.

Thanks,

-J
Subsonic V6.1.6 User - Lifetime Donation

- WHS 2011 (HP EX 490 - e7500 with 4GB RAM, 16TB HDD)
- 2,039 artists
- 9,121 albums
- 120,791 songs

All FLAC, All the time...
User avatar
jacobthe4th
 
Posts: 41
Joined: Thu Oct 07, 2010 2:23 pm
Location: US

Bump, bump...

Postby jacobthe4th » Sat Mar 19, 2011 4:23 pm

Did my lengthy post offend?

:P

Anyway, I've tried some more things and no luck...

Any help would be appreciated.

-J
Subsonic V6.1.6 User - Lifetime Donation

- WHS 2011 (HP EX 490 - e7500 with 4GB RAM, 16TB HDD)
- 2,039 artists
- 9,121 albums
- 120,791 songs

All FLAC, All the time...
User avatar
jacobthe4th
 
Posts: 41
Joined: Thu Oct 07, 2010 2:23 pm
Location: US

Postby 3R3 » Sat Mar 19, 2011 5:08 pm

Looking at your setup I cant see why it wouldnt work. I suspect its a caching issue. But to rule out path/php issues, Try the following:
when you install firebug addon for firefox, and you load up SS with the firebug console visible; in the firebug console, under the "Net > HTML" tab, do you see any errors related to a similar_artists.js or assorted files?

To rule out cache issues completely, try this:
1. stop server
2. clear browser cookies and cache
3. close browser
4. clear jetty cache
5. start server
6. start browser, login...

Just off the top of my head, but I had a similar problem and after clearing various caches in various orders it finally worked.
User avatar
3R3
 
Posts: 332
Joined: Mon May 04, 2009 2:09 pm
Location: Germany

Postby kermit22 » Tue Mar 22, 2011 1:01 pm

3R3 wrote:To rule out cache issues completely, try this:
1. stop server
2. clear browser cookies and cache
3. close browser
4. clear jetty cache
5. start server
6. start browser, login...


How do you clear Jetty cache? I know it isn't a browser cache issue because I have tested it out on a computer that has never been to mine or any other subsonic site and the similar artists mod still doesn't show up.
User avatar
kermit22
 
Posts: 218
Joined: Fri Feb 20, 2009 7:00 pm

Jetty Cache and Firebug

Postby jacobthe4th » Tue Mar 22, 2011 1:48 pm

Kermit22,

The jetty cache is found here on my server... (SS is installed on root of my C: drive of my WHS)

Image

Stop your server, delete the "jsp" directory, then restart your server.

At least that is my understanding, per 3R3 post here. http://forum.subsonic.org/forum/viewtopic.php?t=5852

3R3, thanks for your response, but given how I deleted the jetty cache (shown above), did I delete the correct files? Also, I have firebug installed in Firefox 3.6.15 and cannot find the "Net> HTML" in the console. Are you using FF 4.0?
Subsonic V6.1.6 User - Lifetime Donation

- WHS 2011 (HP EX 490 - e7500 with 4GB RAM, 16TB HDD)
- 2,039 artists
- 9,121 albums
- 120,791 songs

All FLAC, All the time...
User avatar
jacobthe4th
 
Posts: 41
Joined: Thu Oct 07, 2010 2:23 pm
Location: US

Ahhhh..... found it, once I saw the Greyed out Tab.

Postby jacobthe4th » Tue Mar 22, 2011 2:16 pm

Here's what I saw... again sorry for the large pix, but it's better than words, or so they say.

First the HTML tab...

Image

Now the Net>HTML tab... (No Response)

Image

Not sure what this tells me. The path is odd and the response is non-existent, but hoping someone here can derive a nugget from it.

Thanks,

Jacob

P.S. Related to the jetty cache, I've also deleted the entire contents found in the .\subsonic\jetty\#\jsp\org\apache\jsp directory, and no difference. Still no similar artists list.
Subsonic V6.1.6 User - Lifetime Donation

- WHS 2011 (HP EX 490 - e7500 with 4GB RAM, 16TB HDD)
- 2,039 artists
- 9,121 albums
- 120,791 songs

All FLAC, All the time...
User avatar
jacobthe4th
 
Posts: 41
Joined: Thu Oct 07, 2010 2:23 pm
Location: US

Postby kermit22 » Tue Mar 22, 2011 10:17 pm

Jacob-
I'm getting the exact same results as your screen shots. Even after clearing the Jetty cache. Trying to get this working is driving me bananas. I'm considering installing subsonic on my Linux box just to see if I can get this working under Ubuntu because I am having zero luck under Windows.
User avatar
kermit22
 
Posts: 218
Joined: Fri Feb 20, 2009 7:00 pm

Postby YDFiX » Thu Mar 24, 2011 9:17 pm

The "similar_artists" folder must be in the "webapp\script\" folder and not "\webapp\" and it works ! :wink:
YDFiX
 
Posts: 1
Joined: Thu Mar 24, 2011 9:06 pm

Yeah....

Postby jacobthe4th » Fri Mar 25, 2011 2:18 pm

That was it... :lol: Thanks YDFiX

It was, sadly, that obvious. Well I guess I misinterpreted the directions.

Kermit22, here's a peak.

Image

Thank you everyone for your help. MQChen... nice module... love it!!! :D

-J
Subsonic V6.1.6 User - Lifetime Donation

- WHS 2011 (HP EX 490 - e7500 with 4GB RAM, 16TB HDD)
- 2,039 artists
- 9,121 albums
- 120,791 songs

All FLAC, All the time...
User avatar
jacobthe4th
 
Posts: 41
Joined: Thu Oct 07, 2010 2:23 pm
Location: US

Postby 3R3 » Fri Mar 25, 2011 8:50 pm

mqchen, your instructions need corrections if the above is true.
from https://github.com/mqchen/SimilarArtists-widget-for-Subsonic/blob/master/README.markdown
INSTALL

1. Open the file: Client/scripts.js
2. Add everything under /// Add similar artists to your /var/subsonic/jetty/<num>/webapp/script/scripts.js file
3. Put the Client/similar_artists directory from this package in /var/subsonic/jetty/<num>/webapp/

Optional: If you'd like to setup your own similar artists server

1. Upload Server from this package to any webserver running PHP5.
2. Open similar_artists/similar_artists.js and change the url var to point to your server.
User avatar
3R3
 
Posts: 332
Joined: Mon May 04, 2009 2:09 pm
Location: Germany

Postby mqchen » Fri Mar 25, 2011 8:56 pm

Sorry guys. I was busy for a while, didn´t see all the replies.

I have updated the readme file over at Github. My mistake about the whole wrong-directory-thing.

EDIT:
By the way, I have noticed that this widget thinks you are listening to the wrong artist. If that happens, it would be great if you could post the actual artist name that you are listening to and the artist this widget suggested. I´ll see what I can do about that. (Sometimes Musicbrainz´s search is a bit weird).
User avatar
mqchen
 
Posts: 28
Joined: Mon Feb 28, 2011 2:33 am

Postby mqchen » Fri Mar 25, 2011 10:22 pm

3R3 wrote:I thought about your widget some time now, and the best way of unobtrusively integrating it into the existing inteface I could come up with would be something like this:
http://img684.imageshack.us/img684/9400/widgetnormal.png
http://img593.imageshack.us/img593/7640/widgettooltip.png
After a click on the little red heart, tooltip appears.
The tooltip would be maybe 3 sec persistent after cursor leaves tooltips boundaries. Links are filtered to only show stuff in collection, and link directly to album/folder.

I think this will be used instantly even by the most unadventuruos user...after all, everyone likes little red hearts and wants to click 'em ;-)

About the issue of multiple users logging on; I am the only one who uses my server, so I haven´t been able to test it that much, but it should be able to suggest similar artists for every artist that is being played...

Yes, when multiple users log on, this gets quite ugly with the widgets getting stacked on top of each other between the "playing" pane and the chat. Makes the right frame rather tall and scrolly <.<
So I thought of a way to only show one widget, on demand per user using a ajax tooltip or something. Unfortunately I only know the names of these things but have never used it myself...


I did something similar for you guys. I have now added the option to open/minimize the similar artist list. It also closes if 2 or more (configurable) different artists are playing at once.

See screenshot:
Image

To get this update go to Github and download and replace your files with the following files:
- Client/similar_artist/script/similar_artists.js
- Client/similar_artist/script/similar_artists.css
User avatar
mqchen
 
Posts: 28
Joined: Mon Feb 28, 2011 2:33 am

Postby mqchen » Sat Mar 26, 2011 4:33 pm

Someone posted something recently about the icons missing. Guess the theming in Subsonic worked slightly differently than I thought.

I have updated the last two files (download them at Github):
- Client/similar_artist/script/similar_artists.js
- Client/similar_artist/script/similar_artists.css

It now uses characters instead of icons.

Anyway, I´m happy someone is using it!
User avatar
mqchen
 
Posts: 28
Joined: Mon Feb 28, 2011 2:33 am

Postby mvo » Sun Mar 27, 2011 9:22 pm

Hi mqchen,
I posted about the missing icon but removed my post. The icons are actually located in a different path than the one specified in the css file. I installed my SS on Tomcat and using Ubuntu. The relative path is different for me so I just had to change the url to reflect my setup.
mvo
 
Posts: 13
Joined: Wed Dec 08, 2010 3:09 am

Postby 3R3 » Fri Apr 01, 2011 12:02 pm

works now, even without server restart :3. Though I still find the interface way too cluttered. The widget and the users "now playing" area should make one visual unit, and not be divided. Thats way too much to filter for the average user even when only 2 users are online/playing. It ruins the purpose to be able to see/click through you collection after a quick glance IMO.
Also it gets harder to find out which widget belongs to which user/artist with more than one user ;-)
Image
User avatar
3R3
 
Posts: 332
Joined: Mon May 04, 2009 2:09 pm
Location: Germany

PreviousNext

Return to Mods, Apps and Clients

Who is online

Users browsing this forum: No registered users and 13 guests