JTBrinkmann / Dubtrack-Playlist-Pusher

Adds simple and intuitive playlist importing & exporting capabilities to Dubtrack
MIT License
6 stars 4 forks source link

Export to song name plaintext list (and then into a youtube playslist) #4

Open Edza opened 8 years ago

Edza commented 8 years ago

Hi! I would like to export from dubtrack to youtube. I accomplished this using a tool called http://mixbla.st/. It takes a list of song names in plaintext separated by new lines.

So my suggestion is to add another export mode. This instead of the json would return a plaintext of all songnames. The stuff that is between the "name" json field for each song.

I would create a pullrequest but I do not know any LiveScript or a dev environment for it.

Very cool exporter, nice job! :)

JTBrinkmann commented 8 years ago

I'm currently busy with some other projects where I need to meet deadlines, but I'll try to add a way to directly import your Dubtrack playlists to Youtube, when I've got the time. However, while looking at a quick fix, I noticed that apparently the song titles aren't included in the exported files (they should've been) #5

JTBrinkmann commented 8 years ago

In the meantime, you can copy your playlists to youtube by using ./jq (this will convert our JSON files) and mixblast (to import). Using the youtube URLs is more accurate than using just the songs' "artist - title"s

0. if your playlist is in a ZIP file, extract the .json file into some folder 0b. for simplicity, rename the playlist file to playlist.json (or adjust the command in 3.) 1a. on Windows, download jq.exe into the same folder; for simplicity, rename the file to just jq.exe (or adjust the command in 3.) 1b. on Linux / MacOSX, you can just install the program as described on the download page 2. open a console in that folder (on Windows: 1. make sure no file is selected, e.g. by clicking on some free space, 2. shift+right click on some free space in the folder, 3. click "open command window here") 3. copy'n'paste jq -r ".data | map(select(.format == 1))[] | \"https://www.youtube.com/watch?v=\(.cid)\"" playlist.json | clip into the console and press Enter. This will read playlist.json, filter only the Youtube songs, and copy a list of their URLs into the clipboard 3b. on Linux / MacOSX replace clip with xsel --clipboard 4. go to mixbla.st 5. click on "Advance Options" and paste your youtube URLs in there 6. click the "Blast a Mix" button and wait for it to finish loading all songs 7. click the "log in" button (top-left of the "Save your Playlist" button) and log into the Youtube account you want to copy the playlist to 8. click the "Save your Playlist" button.