This is what we use to generate the playlist.json and the hashed files sent to the media server at http://media.nexisonline.net. Jenkins CI does our builds automatically, thus all the references to Jenkins.
This should be in a secret location so nerds don't leech it. /vg/ uses a privately-hosted GitLab instance for version control.
This is simple:
$ git clone GIT_CLONE_URI jukebox
# For getyoutube, easytag:
$ sudo apt-get install -y dl-youtube easytag
Be aware that cloning can take a long time if you are doing so from an active repo, as there can about 2GB of songs in git.
If you want to actually perform conversions on your box for testing purposes (or to set up Jenkins):
- Create a (K)ubuntu VirtualBox, or get on a PC with Debian or Ubuntu.
apt-get install -y sox libsox-fmt-all libav-tools python-pip
pip install pyyaml mutagen
- Edit jenkins-deploy.sh to upload files to your media server.
$ ./getyoutube PLAYLISTNAME VideoURL [...]
Remember to fix the tags of the file with easytag.
Dump into source/playlist/
and edit the tags with easytag.
- Add your playlist to the
playlists
at the top of convert.py. (You may also need to adjust config.yml if you want to transclude files between playlists) - Add the media to the appropriate
source/
directory. - Update the SS13-media playlists.json
- Add to your jukebox's playlists list.
- Run convert.py and deploy.
Boom, done.