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

Can it work recursively? #2

Open
aerohub opened this issue Aug 2, 2017 · 2 comments
Open

Can it work recursively? #2

aerohub opened this issue Aug 2, 2017 · 2 comments

Comments

@aerohub
Copy link

aerohub commented Aug 2, 2017

Hello! Thank you for great app!

I have a question. Saying I have a folder of .mp3 files, folder of .jpg covers and folder of .cue files with the same filenames. Is there any way to upload all of them recursively? Thank you!

@Ruxton
Copy link
Owner

Ruxton commented Aug 4, 2017

It doesn't support tracklisting from cue files (YET) and doesn't support a recursive feature.

outside of that, I just script this, each folder would have in it:
an mp3
a tracklist file
a jpg file

BASH (OSX/Linux)

#!/usr/bin/env bash

for d in *; do
    if [ -d ${d} ]; then
      cover=`ls $d/*.jpg| head -n 1`
      cue=`ls $d/*.txt| head -n 1`
      mp3=`ls $s/*.mp3| head -n 1`
      if [ ! -f ${cover} ];  then
        echo "Cover does not exist in ${d}"
        return 1
      fi

      if [ ! -f ${cue} ]; then
        echo "Cue file does not exist in ${d}"
        return 2
      fi

      if [ ! -f ${mp3} ]; then
        echo "MP3 file does not exist in ${d}"
        return 3
      fi

      mixcloud --cover="${cover}" --file="${mp3}" --tracklist="${cue}" --tracklist-type="traktor"
      
    fi
done

@aerohub
Copy link
Author

aerohub commented Aug 5, 2017

I will try it. Thank you!

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