Advertisement
Guest User

Untitled

a guest
Dec 6th, 2015
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. How to download your rdio collection. Note that this might not be legal in your country. It also might be against rdio's TOS.
  2.  
  3. 1. Open your collection and run this:
  4.  
  5. var data = {}; setInterval(function () { $('.item_link').each(function () { data[$(this).attr('href')] = ''; }); }, 2000);
  6.  
  7. 2. Scroll down, slowly, until you reach the end of the page
  8.  
  9. 3. Run JSON.stringify(data) and save it as data.json
  10.  
  11. 4. Install https://github.com/ravishi/rdio-dl
  12.  
  13. 5. Run the script below with Node.js (replace username and password)
  14.  
  15. var fs = require('fs');
  16. var execSync = require('child_process').execSync;
  17. var data = JSON.parse(fs.readFileSync(process.cwd() + '/data.json', 'utf8'));
  18. var failed = [];
  19.  
  20. Object.keys(data).forEach(function (key) {
  21.  
  22. console.log(key);
  23. var path = key.replace('artist\/', '').replace('album\/', '');
  24. try { fs.mkdirSync(process.cwd() + '/' + path.split('\/')[1]); } catch (e) {};
  25. try { fs.mkdirSync(process.cwd() + path); } catch(e) { return; }
  26. process.chdir('.' + path);
  27. try {
  28. execSync('rdio-dl -u USERNAME -p PASSWORD "https://www.rdio.com' + key + '"');
  29. } catch(e) {
  30. console.log(e);
  31. failed.push(key);
  32. }
  33. process.chdir('../../');
  34. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement