meme / amazon-music Goto Github PK
View Code? Open in Web Editor NEWThis project forked from jaffa/amazon-music
Amazon Prime Music API
License: Apache License 2.0
This project forked from jaffa/amazon-music
Amazon Prime Music API
License: Apache License 2.0
In certain cases (it seems to be non-playlists and modern albums), Amazon will respond with an MPEG-DASH file format. This contains all of the little bits of the song which can be combined to produce the final song. VLC has support for playing and converting to .flac
, .ogg
, etc. as the returned response includes authentication tokens in the request URL for the audio segment.
Pseudo-code that extracts the manifest
object (containing the MPEG-DASH, which can be fed into VLC):
const fs = require('fs')
// ...
const json = // Retrieve the dmls.json response
const manifest = JSON.parse(json).contentResponseList[0].manifest
fs.writeFileSync('example.mpd', manifest)
Then, either use cvlc example.mpd
to stream the audio (note that the contentResponseList
contains an expiry, so this .mpd
will not be usable forever), or use VLC to convert the .mpd
to a FLAC file:
#!/bin/bash
vlc -I dummy $1 ":sout=#transcode{vcodec=none,acodec=flac,ab=128,channels=2,samplerate=44100}:std{access=file{no-overwrite},mux=flac,dst=$2}" vlc://quit
And run the following script with: ./script.sh example.mpd example.flac
, and VLC will start to download the segments and recombine to produce the DRM-free, distributable, audio file.
Options:
The plan is to break this out into a separate project that is specifically suited for downloading albums and playlists to DRM-free FLAC files on disk (for personal use).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.