Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Edza opened this issue Feb 13, 2016 · 2 comments
Open

Comments

@Edza
Copy link

Edza commented Feb 13, 2016

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
Copy link
Owner

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants