Skip to content

Instantly share code, notes, and snippets.

@louisrli
Created August 4, 2013 00:33
Show Gist options
  • Save louisrli/6148545 to your computer and use it in GitHub Desktop.
Save louisrli/6148545 to your computer and use it in GitHub Desktop.
Quickly add a directory of mp3 files to the Echoprint server using echoprint-codegen
#!/bin/bash -ex
DIR="$1"
find "$DIR" -name "*.mp3" > music_files
echoprint-codegen -s < music_files > music_files.json
python fastingest.py music_files.json
# Cleanup
rm music_files
rm music_files.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment