Page 1 of 1
Last.fm Artist images not displayed!

Posted:
Sat Jul 23, 2016 3:51 pm
by 45rpm
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...
Re: Last.fm Artist images not displayed!

Posted:
Sun Jul 24, 2016 2:25 pm
by acroyear
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?
Re: Last.fm Artist images not displayed!

Posted:
Sun Jul 24, 2016 7:13 pm
by daneren2005
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.
Re: Last.fm Artist images not displayed!

Posted:
Thu Jul 28, 2016 4:01 pm
by 45rpm
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.pngI 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.pngbut 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?
Re: Last.fm Artist images not displayed!

Posted:
Thu Jul 28, 2016 6:23 pm
by acroyear
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.
Re: Last.fm Artist images not displayed!

Posted:
Thu Jul 28, 2016 6:38 pm
by daneren2005
- 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.
Re: Last.fm Artist images not displayed!

Posted:
Thu Jul 28, 2016 9:39 pm
by mitrailer
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
Re: Last.fm Artist images not displayed!

Posted:
Thu Jul 28, 2016 11:29 pm
by acroyear
I listed the OSX location above.
I was about the Windows location: C:/subsonic/lastfmcache unless you installed subsonic onto a different drive.
Re: Last.fm Artist images not displayed!

Posted:
Fri Jul 29, 2016 2:46 am
by 45rpm
renaming the lastfmcache folder did the trick. the new links are being written now. Thanks everyone for the help!