srinivasgumdelli / clamz

Automatically exported from code.google.com/p/clamz
0 stars 0 forks source link

Amazon MP3 store rejects Clamz user-agent #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempt to open any .amz file in Clamz

What is the expected output?
MP3 files should download, server should return 200 OK

What do you see instead?
MP3 files fail to download, server returns "500 Internal Server Error"

What version of the product are you using? On what operating system?
0.5 on Linux X86_64

Please provide any additional information below.
Changing

sprintf(useragent, "Amazon MP3 Downloader (%s)", PACKAGE_STRING);

in the file "download.c" to:

sprintf(useragent, "Amazon MP3 Downloader (Win32 1.0.17 en_US)");

fixes the problem.

I have attached a corrected version of download.c for version 0.5 (full c file, 
not a patch)

Original issue reported on code.google.com by blenheim...@gmail.com on 2 Apr 2013 at 1:09

Attachments:

GoogleCodeExporter commented 9 years ago
Precompiled binary of version 0.5 for Linux X86_64 with the above changes 
(attached)

I will post 32-bit x86 binary soon.
Requires the following libraries:
    linux-vdso.so.1 =>  (0x00007fffa47ff000)
    libgcrypt.so.11 => /lib/x86_64-linux-gnu/libgcrypt.so.11 (0x00007f5ffefbe000)
    libcurl-gnutls.so.4 => /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4 (0x00007f5ffed61000)
    libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f5ffeb37000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5ffe778000)
    libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f5ffe574000)
    libidn.so.11 => /usr/lib/x86_64-linux-gnu/libidn.so.11 (0x00007f5ffe340000)
    liblber-2.4.so.2 => /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2 (0x00007f5ffe132000)
    libldap_r-2.4.so.2 => /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2 (0x00007f5ffdee3000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f5ffdcda000)
    libgssapi_krb5.so.2 => /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f5ffda9c000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f5ffd885000)
    libgnutls.so.26 => /usr/lib/x86_64-linux-gnu/libgnutls.so.26 (0x00007f5ffd5c8000)
    librtmp.so.0 => /usr/lib/x86_64-linux-gnu/librtmp.so.0 (0x00007f5ffd3ae000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f5fff26a000)
    libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f5ffd191000)
    libsasl2.so.2 => /usr/lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007f5ffcf76000)
    libgssapi.so.3 => /usr/lib/x86_64-linux-gnu/libgssapi.so.3 (0x00007f5ffcd39000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5ffcb1c000)
    libkrb5.so.3 => /usr/lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f5ffc84d000)
    libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f5ffc624000)
    libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f5ffc420000)
    libkrb5support.so.0 => /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f5ffc217000)
    libtasn1.so.3 => /usr/lib/x86_64-linux-gnu/libtasn1.so.3 (0x00007f5ffc006000)
    libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f5ffbdf2000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f5ffbbed000)
    libheimntlm.so.0 => /usr/lib/x86_64-linux-gnu/libheimntlm.so.0 (0x00007f5ffb9e6000)
    libkrb5.so.26 => /usr/lib/x86_64-linux-gnu/libkrb5.so.26 (0x00007f5ffb764000)
    libasn1.so.8 => /usr/lib/x86_64-linux-gnu/libasn1.so.8 (0x00007f5ffb4cd000)
    libhcrypto.so.4 => /usr/lib/x86_64-linux-gnu/libhcrypto.so.4 (0x00007f5ffb29a000)
    libroken.so.18 => /usr/lib/x86_64-linux-gnu/libroken.so.18 (0x00007f5ffb085000)
    libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f5ffae80000)
    libwind.so.0 => /usr/lib/x86_64-linux-gnu/libwind.so.0 (0x00007f5ffac57000)
    libheimbase.so.1 => /usr/lib/x86_64-linux-gnu/libheimbase.so.1 (0x00007f5ffaa48000)
    libhx509.so.5 => /usr/lib/x86_64-linux-gnu/libhx509.so.5 (0x00007f5ffa800000)
    libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f5ffa556000)
    libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f5ffa31c000)

Original comment by blenheim...@gmail.com on 2 Apr 2013 at 2:29

Attachments:

GoogleCodeExporter commented 9 years ago
I can confirm this works and I have attached the same solution in patch format.

Original comment by chx1...@gmail.com on 8 Nov 2013 at 3:13

Attachments:

GoogleCodeExporter commented 9 years ago
thx for figuring this out -- works for me on slackware 13.1 !!!

Original comment by johnny...@gmail.com on 18 Jul 2014 at 3:15