Last.fm Artist images not displayed!

Need help? Post your questions here.

Moderator: moderators

Last.fm Artist images not displayed!

Postby 45rpm » Sat Jul 23, 2016 3:51 pm

I have a problem where most of my Artist images are not displayed. If the images reside on this server (img2-ak.lst.fm), they display fine - but if they reside on this server (secure-img2.last.fm), they are not displayed due to an error that states the "site can’t be reached". Has Last.fm made internal changes that is affecting Subsonic? Please advise...
45rpm
 
Posts: 13
Joined: Tue Dec 22, 2015 7:33 pm

Re: Last.fm Artist images not displayed!

Postby acroyear » Sun Jul 24, 2016 2:25 pm

I'm gonna guess that last.fm changed a lot of things, but the likely problem with Subsonic is that it has cached the URL and isn't going to ask for an updated version again.

I'm not sure how to fix that. Someone else might be able to know how to clear the cache, perhaps a DB sql script to run by hand?
--
Joe Shelby
http://subfiresuite.com/
http://subfireplayer.net/
User avatar
acroyear
 
Posts: 779
Joined: Wed Mar 27, 2013 8:05 pm
Location: Northern, VA

Re: Last.fm Artist images not displayed!

Postby daneren2005 » Sun Jul 24, 2016 7:13 pm

I am pretty sure there is a folder under /var/Subsonic with the last.fm cache. I don't have access to my server right now to check what it is.
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm

Re: Last.fm Artist images not displayed!

Postby 45rpm » Thu Jul 28, 2016 4:01 pm

I don't think it is a caching issue. If I try to load the linked image in my browser manually without even using Subsonic, the image doesn't load - example:

https://secure-img2.last.fm/i/u/174s/ac ... 62540e.png

I am unable to load that last.fm image link in my browser - I just get a ERR_CONNECTION_REFUSED error. Just started happening out of the blue one day.

Other artist image links work just fine that reside on the following server:

http://img2-ak.lst.fm/i/u/174s/76ccd9dd ... f765e1.png

but the ones on
Code: Select all
https://secure-img2.last.fm
do not.

Should the artist images be linking to different last.fm servers within Subsonic?
45rpm
 
Posts: 13
Joined: Tue Dec 22, 2015 7:33 pm

Re: Last.fm Artist images not displayed!

Postby acroyear » Thu Jul 28, 2016 6:23 pm

I was suggesting the URLs that Subsonic serves up to the browser are cached to that now broken host, not that the images are cached in the browser.

Yes, you'll likely have to wipe out the last.fm cache. That seems to be where the images are stored (unless that's just a feed into the database).

On MacOS I found it under /Library/Application Support/Subsonic/lastfmcache

Another suggested the folder in Linux is under /var/subsonic but I'm not in a position to verify.

I couldn't say where it is in Windows but probably C:/Subsonic unless you moved things to a different drive.

an example:
f2f4bf4ce8ede33ee94127bf1f62b31b.xml:<image size="medium">http://img2-ak.lst.fm/i/u/64s/1db17b61690245eb896d1355980399f3.png</image>

If you're a little clever with unix scripting, you might be able to write something that would only discard the ones with broken URLs rather than all of them. I'm not in a position (work deadlines) to write something up that would do it.
--
Joe Shelby
http://subfiresuite.com/
http://subfireplayer.net/
User avatar
acroyear
 
Posts: 779
Joined: Wed Mar 27, 2013 8:05 pm
Location: Northern, VA

Re: Last.fm Artist images not displayed!

Postby daneren2005 » Thu Jul 28, 2016 6:38 pm

Code: Select all
ls /var/subsonic/lastfmcache
gives me a whole bunch of stuff like

Code: Select all
696f2064d265645cda07b21f6d2d4abd.meta
696f2064d265645cda07b21f6d2d4abd.xml


Example expert from one of the xml files:

Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<lfm status="ok"><toptracks artist="My Chemical Romance" page="1" perPage="50" totalPages="670" total="33500"><track rank="1"><name>Welcome to the Black Parade</name>
<playcount>5697494</playcount>
<listeners>734925</listeners>
<mbid>f31631cb-1bcc-452c-9838-1814a0251844</mbid>
<url>http://www.last.fm/music/My+Chemical+Romance/_/Welcome+to+the+Black+Parade</url>
<streamable>0</streamable>
<artist><name>My Chemical Romance</name>
<mbid>c07f0676-9143-4217-8a9f-4c26bd636f13</mbid>
<url>http://www.last.fm/music/My+Chemical+Romance</url>
</artist>
<image size="small">http://img2-ak.lst.fm/i/u/34s/70bb8ea0f3414e92a1ee9da05660990d.png</image>
<image size="medium">http://img2-ak.lst.fm/i/u/64s/70bb8ea0f3414e92a1ee9da05660990d.png</image>
<image size="large">http://img2-ak.lst.fm/i/u/174s/70bb8ea0f3414e92a1ee9da05660990d.png</image>
<image size="extralarge">http://img2-ak.lst.fm/i/u/300x300/70bb8ea0f3414e92a1ee9da05660990d.png</image>
</track>
<track rank="2"><name>Teenagers</name>
<playcount>4727308</playcount>
<listeners>635385</listeners>
<mbid>6977d68f-b00c-47e8-af4d-eae307c1f264</mbid>
<url>http://www.last.fm/music/My+Chemical+Romance/_/Teenagers</url>
<streamable>0</streamable>


As you can see it most definitely is caching the last.fm image urls. I think Sindre expected those image urls to be a little more permanent then they appear. Wiping out the cache would probably fix it, though I haven't had the same issue as you so I haven't tried it. Maybe just move the folder in case it breaks something.
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm

Re: Last.fm Artist images not displayed!

Postby mitrailer » Thu Jul 28, 2016 9:39 pm

Hi everyone.

I resolved the last.fm images issue by deleting the folder "/var/subsonic/lastfmcache" (I'm in debian, so I don't know where this folder is in other distros). And everything is running ok. Here are the steps that I followed
1.- Stop server
2.- Delete the folder (you can rename it in case anything is broke)
3.- Start Server

Now all the images are shown.

Cheers all
mitrailer
 
Posts: 138
Joined: Fri May 09, 2014 12:35 am

Re: Last.fm Artist images not displayed!

Postby acroyear » Thu Jul 28, 2016 11:29 pm

I listed the OSX location above.

I was about the Windows location: C:/subsonic/lastfmcache unless you installed subsonic onto a different drive.
--
Joe Shelby
http://subfiresuite.com/
http://subfireplayer.net/
User avatar
acroyear
 
Posts: 779
Joined: Wed Mar 27, 2013 8:05 pm
Location: Northern, VA

Re: Last.fm Artist images not displayed!

Postby 45rpm » Fri Jul 29, 2016 2:46 am

renaming the lastfmcache folder did the trick. the new links are being written now. Thanks everyone for the help!
45rpm
 
Posts: 13
Joined: Tue Dec 22, 2015 7:33 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 36 guests