Open ilikenwf opened 10 years ago
I would first ask Amazon if they have an official way to integrate music downloading, as a partnership is always better than just using an inofficial downloader, so we would get notified of api changes and similar stuff. Maybe there's also a way to link to the official mp3 downloader on windows or something, if they do not want to give us an direct way. I'd use that on windows/other supported platforms then and only use clamz as a workaround on platforms without an official mp3 downloader.
The Amazon addon in master sucks. It's what POTI never really released until the end. It currently just surfs to amazon in a tab and uses a POTI affiliate key to generate revenue.
We can keep that functionality, but we need to adopt the process of autodownloading .amz files (spoofing the Useragent as a Windows useragent if on Linux to prevent garbage amz files) to a temp location, extracting them via the process clamz and Banshee use, and autodownload the resulting mp3 to the set location (have that be a setting in the addon, default to the library location).
Clamz: http://code.google.com/p/clamz/
Banshee amazon integration stuff: https://git.gnome.org/browse/banshee/tree/src/Extensions/Banshee.AmazonMp3.Store https://git.gnome.org/browse/banshee/tree/src/Extensions/Banshee.AmazonMp3