Skip to content

Instantly share code, notes, and snippets.

@Windows81
Last active March 10, 2022 00:07
Show Gist options
  • Save Windows81/97e170319d73fd8bc92f22c2432c2c88 to your computer and use it in GitHub Desktop.
Save Windows81/97e170319d73fd8bc92f22c2432c2c88 to your computer and use it in GitHub Desktop.
To download reversed MP3s of Donda 2 to the current working directory, run this overly compact script.
name='donda_2'
import os,requests as r
albums=r.get('https://api.stemplayer.com/content/albums').json()
for s in("ffmpeg -i \""+'" -i "'.join(list(r.get(f"https://api.stemplayer.com/content/stems?track_id={t['id']}&version={t['version']}&codec=wav&device_id=002800273330510139323635").json()['data'].values()))+"\" -filter_complex amix=inputs=4:normalize=0,areverse -ab 320k \""+f'{i:02d}'+' '+t['metadata']['title']+".mp3\"" for i,t in list(enumerate(albums['data'][name]['tracks'], 1))):os.system(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment