albumcutter

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 443207a7306654dad9229b1ffcc06b8da7c66254
parent e17792405ebd73383eeafca30e7f63ab028f22e9
Author: Paul Longtine <paullongtine@gmail.com>
Date:   Thu Nov  5 10:43:13 2015

made a quick README

Diffstat:
 README.md          | 29 +++++++++++++++++++++++++++++
 setup.sh           |  1 +
 src/albumcutter.py |  2 +-
 3 files changed, 31 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md @@ -1 +1,30 @@ # albumcutter + +albumcutter is a tool to download albums on youtube and break the audio into +individual tracks based on a tracklist containing timestamps. + +## How to use + +Specify the URL of the audio you wish to download, and copy the tracklist into +your clipboard and invoke the command like so: + + ac -d Top_20_Kevin_MacLeod https://www.youtube.com/watch?v=z6CLOO0qIx4 + +`ac` will ask you to confirm the contents of the clipboard in case you made a +mistake. + +## dependencies + + * Python 2.7 + + * [youtube-dl](https://github.com/rg3/youtube-dl) + (latest version is reccomended, if not required) + * [pydub](https://github.com/jiaaro/pydub) + +## installation + +To install albumcutter, run `setup.sh` with elevated permissions. + +Alternatively, if you do not want to install and/or you are on windows, move +`bin/ac` to `albumcutter/ac.py` and run with `python albumcutter/ac.py` + diff --git a/setup.sh b/setup.sh @@ -1,6 +1,7 @@ #!/bin/sh #Can we say yay to hacky setup scripts?! +chmod +x bin/ac cp -r bin/ /usr/local/ cp -r src/albumcutter.py /usr/lib/python2.7/dist-packages/ diff --git a/src/albumcutter.py b/src/albumcutter.py @@ -137,7 +137,7 @@ class AlbumCutter: # Exports tracks into specified directory def export( self, directory ): - assert(self.tracks != None) + assert(self.tracks != None and self.audio != None) # Loop through tracks and process them for track in self.tracks: print("Processing track: '{}'".format(track['title']))