After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 682707 - Unable to download from Amazon Cloud Player
Unable to download from Amazon Cloud Player
Status: RESOLVED WONTFIX
Product: banshee
Classification: Other
Component: Importing
2.6.0
Other Linux
: Normal normal
: ---
Assigned To: Banshee Maintainers
Banshee Maintainers
gnome[unmaintained]
: 684410 685008 685162 691164 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-08-26 00:59 UTC by Michael Trausch
Modified: 2020-03-17 09:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
What happens when attempting to download an album from Amazon Cloud Drive (288.71 KB, image/png)
2012-08-26 01:02 UTC, Michael Trausch
Details

Description Michael Trausch 2012-08-26 00:59:32 UTC
Recently (presumably, when Amazon switched to the new setup at the end of July/beginning of August), downloading music from Cloud Player broke on Banshee.  (Downloading things that one has just purchased via 1-Click still works, because Amazon lets you download the AMZ file in that case; however, it seems to refuse to serve an AMZ from Cloud Drive itself.)

Selecting an album's tracks and then clicking on the Download button results in a message:

Downloading Your Music
======================

On Linux systems, Cloud Player only supports downloading songs one at a time.  To download your music, deselect all checkboxes, select the checkbox for the song you want to download, then click the "Download" button.

This problem _can_ be worked around by installing the User Agent switcher in Firefox and changing the reported user agent to IE8.
Comment 1 Michael Trausch 2012-08-26 01:02:38 UTC
Created attachment 222443 [details]
What happens when attempting to download an album from Amazon Cloud Drive

This shows what happened when I attempted to download through Banshee's UI.

When I'd reported this problem on IRC, someone noted that this is likely to require modification to the amz-fixups.js file in the Banshee source code.  However, I'm not certain what to look for to even put in there in order to restore functionality, so at least for the time being, I'll be unable to help there.
Comment 2 Bertrand Lorentz 2012-08-26 14:02:46 UTC
Even though I can't buy MP3s on amazon.com, I have 3 tracks in my Amazon Cloud Player.
I was able to reproduce the problem with Banshee.

I tried setting a fake user agent in Banshee, but Amazon still detects me as Linux, for some unknown reason...
Comment 3 Ryan S. Kingsbury 2012-08-27 02:09:40 UTC
Confirmed on Fedora 17 x64, Banshee 2.4.1. I agree that this started after Amazon rolled out the new downloader and music matching service.
Comment 4 robert.b.holman 2012-09-17 18:27:42 UTC
I am not sure if this is the same probelm, but I just tried to download a new purchase from the Cloud Player with Banshee 2.4.0 in Linux Mint x86-64. The GUI says Contacting....forever. The log has no errors, only:

[Info  12:06:58.194] Downloading Amazon MP3 purchase - /home/me/.cache/banshee-1/temp/Amazon-MP3-1347903710.amz

The download never seems to actually happen, the song is not imported.
Comment 5 Samuel Gyger (IRC: thinkabout) 2012-09-27 22:09:07 UTC
It does work int the CloudPlayer with some tricks.
See: http://code.google.com/p/pymazon/wiki/HowToAmzDownload
Quote:
> I'm using Firefox 14.x on Ubuntu 12.04 and have a few things that might clarify the situation:
> 1. When I make One-Click purchases, I get the option at that point to download the .amz file, which I can do and open in Pymazon or Clamz and all is well. 2. If I DON'T download at that point, my only option is the Cloud Player. 3. To
> download in the Cloud Player, I changed my user-agent via User Agent Switcher (FF extension) to IE8 and tried a bulk (.amz) download. It still told me I had to download the Amazon MP3 Downloader, so I clicked on the download
> button, then simply cancelled the download. After that, I saw a screen that said, "when you've installed the MP3 Downloader, click on the 'Download Your Music' button", but the button was grayed out. BELOW THE BUTTON, there
> was a link that said, "'Download Your Music' button not working? click here." I clicked and it apparently filled in the right cookies for the download to go through and I did a full download!

Although this is not during buying process.
Comment 6 Gabriel Burt 2013-02-17 17:22:06 UTC
*** Bug 684410 has been marked as a duplicate of this bug. ***
Comment 7 Gabriel Burt 2013-02-17 17:23:15 UTC
*** Bug 685008 has been marked as a duplicate of this bug. ***
Comment 8 Gabriel Burt 2013-02-17 17:23:55 UTC
*** Bug 685162 has been marked as a duplicate of this bug. ***
Comment 9 Gabriel Burt 2013-02-17 17:24:20 UTC
*** Bug 691164 has been marked as a duplicate of this bug. ***
Comment 10 Gabriel Burt 2013-02-17 17:26:50 UTC
Hey everybody, there are two related issues here, and I can reproduce both of them.

1) When you are able to get the downloader triggered (just after a purchase), it tries briefly then goes away.  Using the command line tool (bamz) you'll see it gets "403 - unauthorized" responses when trying to download each MP3.

2) CloudPlayer detects Linux and won't provide the .amz file, even if you change the user-agent string
Comment 11 Gabriel Burt 2013-02-17 18:20:35 UTC
My current theory for 2) is that Amazon remembers your OS per session-id/IP address.  I will test this Tuesday at work (using a different IP).  I'm not sure how else they're detecting Linux given a Windows user-agent.

Regarding 1), I altered bamz to print out the URLs to the MP3s themselves, and when I opened one in my Firefox (which happened to be logged into Amazon, and the "device" (computer) authorized there) it downloaded.  I tried using my Firefox user-agent string in bamz, but no luck.  So it must be a cookie that my Firefox has that bamz needs.
Comment 12 Gabriel Burt 2013-02-17 21:55:44 UTC
Re: 1), actually `wget` is able to download it fine, so it's not a user-agent or cookie problem.  I think there might be a failure to follow redirects in our code (might need to bring over the hack we use in src/Libraries/Migo.Net/Async..).  But even when I try to have it download the final URL, it still fails, I believe because of weirdness between S3 and System.Uri -- I think System.Uri might not be escaping newlines into %0A when it sends the GET?  Might be worth using a different downloader library that doesn't require System.Uri.
Comment 13 awilliam 2013-02-18 11:25:53 UTC
I posted a $10 bounty on this one, since I can't actually arrange to buy the closer a beer.

http://www.freedomsponsors.org/core/issue/191/httpsbugzillagnomeorgshow_bugcgiid682707
Comment 14 James Mason 2013-06-05 21:36:17 UTC
Bump; can one of the maintainers move this bug to v2.6 ?
Comment 15 IBBoard 2013-06-06 18:40:00 UTC
This seems to be working for me in 2.6.1 - I've just "bought" some free tracks on amazon.co.uk and the "Download" link from the "you've purchased it" page worked without a problem, including downloading an album from a single click (it appeared to queue up two at once).

I don't know if that means that Amazon changed something, if Banshee changed something, or if I managed to trigger some cookie or something months ago that I don't remember about.
Comment 16 IBBoard 2013-06-06 18:41:28 UTC
Sorry, ignore me. I just posted that and realised this was the other Amazon bug I was tracking. I'd assumed it was the general downloading one. I'll try to read it better next time.
Comment 17 Lars Heineken 2013-06-08 08:31:26 UTC
As a a temporal solution I'm now using "clamz", a command line tool that supports and downloads all files from a .amz file (like banshee used to do):
http://code.google.com/p/clamz/
Comment 18 Tom Williams 2014-02-10 01:37:56 UTC
I'm running Banshee 2.6.1 on Linux Mint 16 (64-bit) and I'm experiencing this problem as well.  Is there an update on getting this fixed?

Thanks!
Comment 19 André Klapper 2020-03-17 09:55:51 UTC
Banshee is not under active development anymore and had its last code changes more than three years ago. Its codebase has been archived.

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Please feel free to reopen this ticket (or rather transfer the project
to GNOME Gitlab, as GNOME Bugzilla is being shut down) if anyone takes the
responsibility for active development again.
See https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/264 for more info.