You are not logged in.

#1 2009-08-29 08:45:50

johnmendel
Member
From: Boston, MA
Registered: 2008-10-31
Posts: 8
Website

Sonata Remote Cover Art Issues

I happed to catch the problem Sonata was having with the lyrics and addressed that. But now I think it is having issues fetching cover art. No matter what album/artist I search, I keep getting "No cover art found" when looking for remote images.

Could someone at least confirm that they too are experiencing this? I think there might be an issue with the Amazon AWS account/service Sonata is using to fetch the information. First, before I dive into the code and hack at it, I would like to figure out if this is an issue with my setup or the program itself.

Offline

#2 2009-08-29 16:45:49

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Sonata Remote Cover Art Issues

Welcome to the forum, johnmendel!

What setup did you do ? Which version do you use ? What sound system do you use ? Can similar functionality work in other application ?

Offline

#3 2009-08-29 19:37:30

beniro
Member
From: St. Petersburg, FL, USA
Registered: 2002-12-31
Posts: 313

Re: Sonata Remote Cover Art Issues

I'm having a similar issue.  I'm running mpd as daemon with latest repo version and alsa.

Offline

#4 2009-08-29 20:45:02

digitaleex
Member
Registered: 2009-08-29
Posts: 4

Re: Sonata Remote Cover Art Issues

Hi,

I'm experiencing the same issue with the latest versions of mpd (0.15.1-1) and sonata (1.6-1) hmm. I found this on the mailing list: https://lists.berlios.de/pipermail/sona … 01140.html but I didn't try it yet.

Good luck smile

Last edited by digitaleex (2009-08-29 20:45:42)


Archlinux x86 | dwm

Offline

#5 2009-08-29 21:14:30

johnmendel
Member
From: Boston, MA
Registered: 2008-10-31
Posts: 8
Website

Re: Sonata Remote Cover Art Issues

digitaleex wrote:

I found this on the mailing list: https://lists.berlios.de/pipermail/sona … 01140.html but I didn't try it yet.

Nice find. However, since we are using sonata from pacman and not aur, our version is out of sync with the svn. That patch on the mailing list is for the latest svn revision. Fetching the artwork is tightly embeded within artwork.py for sonata 1.6-1, and a simple filename switch and replacement isn't going to do it. I am going to edit my artwork.py some to try and use rhapsody for covers instead. If I make any progress, I'll post it here.

Offline

#6 2009-08-29 21:29:30

johnmendel
Member
From: Boston, MA
Registered: 2008-10-31
Posts: 8
Website

Re: Sonata Remote Cover Art Issues

Of course, the simpler solution would be to install the sonata-svn package from aur, and then apply the patch from the above mailing list post.

Offline

#7 2009-08-30 01:57:36

johnmendel
Member
From: Boston, MA
Registered: 2008-10-31
Posts: 8
Website

Re: Sonata Remote Cover Art Issues

I emailed the maintainer of the package. Using version 1.6.2, I was able to come up with a solution using that patch from the email. Hopefully the package can be updated to 1.6.2 instead of 1.6.1.
The solution is more than a one-liner like the lyrics fix, so it would be a much cleaner patch if the package was brought up to date; instead of first having to patch 1.6.1 for all the differences it has from 1.6.2, then applying the fix. When the maintainer gets back to me I will tell more.

If you are in dire need of a fix now, you can download 1.6.2 off the main sonata page, and I can post the changes required here. You can then run sonata out of your home directory, as it only a python package with a runnable script.

Offline

#8 2009-09-02 09:57:30

johnmendel
Member
From: Boston, MA
Registered: 2008-10-31
Posts: 8
Website

Re: Sonata Remote Cover Art Issues

Thank you Alexander for updating the package.
Now that sonata is up to the latest, the following patch should work.
I take no responsibility for borking. Double check the patch and make backups to be triple sure.

http://pastebin.com/f7fbbd994

For those of you not familiar with patches and diffs, the following worked for me:

cd /usr/lib/python2.6/site-packages
# Back up the package just in case
sudo cp -R sonata sonata-backup
cd sonata

sudo cp /path/to/patch/file rhapsody.patch
sudo patch -p1 < rhapsody.patch

# try starting sonata. if you can fetch remote artwork, it worked!
# remove the backup if everything is good
cd ..
rm -r sonata-backup

Offline

#9 2009-09-03 15:06:13

beat
Member
Registered: 2009-05-24
Posts: 49

Re: Sonata Remote Cover Art Issues

I followed your instructions and it didn't work.
This is the output of the patch

beat@darkstar: sonata $ sudo patch -p1 < rhapsody.patch 
patching file artwork.py
Hunk #1 FAILED at 9.
Hunk #2 FAILED at 526.
2 out of 2 hunks FAILED -- saving rejects to file artwork.py.rej
patching file main.py
Hunk #1 FAILED at 59.
Hunk #2 FAILED at 231.
2 out of 2 hunks FAILED -- saving rejects to file main.py.rej
patching file pluginsystem.py
Hunk #1 FAILED at 87.
1 out of 1 hunk FAILED -- saving rejects to file pluginsystem.py.rej
patching file rhapsodycovers.py
patch unexpectedly ends in middle of line
patch: **** malformed patch at line 229:

Offline

#10 2009-09-03 23:24:07

johnmendel
Member
From: Boston, MA
Registered: 2008-10-31
Posts: 8
Website

Re: Sonata Remote Cover Art Issues

I will take a look at this when I get home. I am not a patch expert, so I might have made a mistake. I am just wondering if you are using the latest Sonata. It should be version 1.6.2-1. If it isn't, make sure to update it with pacman before applying this patch. Otherwise, if you could post the versions of sonata and patch that you are using, that would be great. Also, if you could consolidate those reject files into one pastebin, and post the link, that might help too.

Until we get to the bottom of this, either restore Sonata using the backup directory, or do a hard reinstall of it if you forgot.

Offline

#11 2009-09-04 14:50:32

beat
Member
Registered: 2009-05-24
Posts: 49

Re: Sonata Remote Cover Art Issues

I'm using the latest version that's on the repository.

beat@darkstar: ~ $ sonata --version
Version: Sonata 1.6.2
Website: http://sonata.berlios.de/

Offline

#12 2009-09-06 06:59:34

johnmendel
Member
From: Boston, MA
Registered: 2008-10-31
Posts: 8
Website

Re: Sonata Remote Cover Art Issues

I can confirm this. The problem is that file pastebin gives you is in dos mode, and we want it in unix. The line endings of every line are off by one character which we cannot see, so the diff fails. A quick solution is to open the patch file in vim and do ":set fileformat=unix" and save the file. The patch should be successful. The long term solution is for me to find a new place for the patch. I think I will just use a code block in the post.

Offline

#13 2009-09-06 16:52:24

beat
Member
Registered: 2009-05-24
Posts: 49

Re: Sonata Remote Cover Art Issues

It worked, thanks a lot smile

Offline

#14 2009-09-06 18:44:42

Barghest
Member
From: Hanau/Germany
Registered: 2008-01-03
Posts: 563

Re: Sonata Remote Cover Art Issues

After the third try the patch was readable (be cursed pastebin).

But the search for covers still doesn't work even with aplied patch.

Sonata 1.6.2

Last edited by Barghest (2009-09-09 13:24:15)

Offline

#15 2009-09-09 00:40:33

heleos
Member
From: Maine, USA
Registered: 2007-04-24
Posts: 678

Re: Sonata Remote Cover Art Issues

This worked great, thank you sir! This was bugging me for a while

Offline

#16 2009-09-21 16:23:30

SomeGuyDude
Member
Registered: 2008-10-09
Posts: 271

Re: Sonata Remote Cover Art Issues

Patched, but I still can't get it for half of my music. I can't even do the SEARCH. I put in the artist and it just says "No cover art found".


And in the midst of such perfection,
I can't help but feel diseased.

Offline

#17 2009-09-23 08:42:14

mr.benedikt
Member
Registered: 2009-04-25
Posts: 2

Re: Sonata Remote Cover Art Issues

This has been fixed in sonata-git in aur.
At least it's working for me now.

Offline

Board footer

Powered by FluxBB