Bug 252086 - Files downloaded from Magnatune are corrupted
Summary: Files downloaded from Magnatune are corrupted
Status: RESOLVED DUPLICATE of bug 251192
Alias: None
Product: amarok
Classification: Applications
Component: Services/Magnatune (show other bugs)
Version: 2.3.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: 2.4.0
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-23 01:17 UTC by Maarten ter Huurne
Modified: 2010-09-23 14:43 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maarten ter Huurne 2010-09-23 01:17:51 UTC
Version:           2.3.1 (using KDE 4.5.1) 
OS:                Linux

I have a download subscription from Magnatune and configured Amarok to use it. This worked fine for a long time, but recently it stopped working. I don't know the exact change that broke it: it could be an Amarok upgrade or a KDE upgrade or something Magnatune changed on their servers.

What happens is that if I choose to download an album from within Amarok, the files that are downloaded seem to contain random data. They do not even have the right file headers or song tagging. They do have exactly the right length though (compared to the same files from a ZIP downloaded with Konqueror).

I tried with both FLAC and VBR-MP3 files. I tried three different albums. The same albums play fine from Amarok when streamed and also play fine if I download them in the same formats using Konqueror. Only if I download them from within Amarok the problem occurs.

Reproducible: Always

Steps to Reproduce:
- select an album in the Magnatune browser
- select "Download Album"
- choose a file format
- wait for the download to finish
- try to play the downloaded files, use the "file" or "hexdump" utilities to examine them

Actual Results:  
The files do not play, neither in Amarok nor in MPlayer. They are also missing their file format signature, such as "fLaC".

Expected Results:  
The files should be exactly the same as when downloaded in a ZIP file using a web browser.

OS: Linux (x86_64) release 2.6.35.1-3.2-desktop
Compiler: gcc
Comment 1 Christoph Feck 2010-09-23 02:09:45 UTC
If I understand you correctly, the files you are downloading are ZIP files and are to be decompressed by Amarok or other KDE components (if this is not the case, please reopen the bug).

There is a regression in KDE 4.5.1 that broke ZIP decompression. This is fixed in KDE 4.5.2 that will be released in about a week.

Alternatively, if you build kdelibs from source, you can apply the patch that you can find by following the duplicate bug report.

*** This bug has been marked as a duplicate of bug 251192 ***
Comment 2 Maarten ter Huurne 2010-09-23 14:43:56 UTC
I looked in /tmp and indeed Amarok downloads songs from Magnatune in a ZIP file. I'll wait for 4.5.2 to be released and packaged for openSUSE and then test and reopen if necessary (probably not). Thanks for the quick response!