2016-12-11 00:26:11 +00:00
# Ingenious Redistribution System
[![License: GNU ](https://img.shields.io/badge/License-GNU-yellow.svg )](http://www.gnu.org/licenses/gpl.html)
2016-12-20 16:20:39 +00:00
[![PyPI ](https://img.shields.io/badge/PyPi-Python_3.x-blue.svg )](https://pypi.python.org/pypi/irs)
2016-07-08 04:37:40 +00:00
2016-12-11 00:28:21 +00:00
< em > Now with working album art!< / em >
2016-07-08 05:59:12 +00:00
2016-12-11 00:26:11 +00:00
An ingenious program to download audio from youtube and then parse metadata for the downloaded file.
___
### Usage and Examples
```
2016-12-15 06:45:07 +00:00
usage:
irs (-h | -v)
2016-12-20 03:45:12 +00:00
irs [-l]
2016-12-21 04:44:19 +00:00
irs -p PLAYLIST [-ng] [-c COMMAND] [-l]
2016-12-20 03:45:12 +00:00
irs -a ARTIST (-s SONG | -A ALBUM [-st SEARCH_TERMS]) [-c COMMAND] [-l]
2016-12-11 00:26:11 +00:00
2016-12-15 06:45:07 +00:00
Options:
2016-12-11 00:26:11 +00:00
-h, --help show this help message and exit
2016-12-15 02:38:39 +00:00
-v, --version Display the version and exit.
2016-12-15 06:45:07 +00:00
-c COMMAND, --command COMMAND
Run a background command with each song's location.
Example: `-c "rhythmbox %(loc)s"`
2016-12-11 00:26:11 +00:00
-a ARTIST, --artist ARTIST
2016-12-15 06:45:07 +00:00
Specify the artist name.
-p PLAYLIST, --playlist PLAYLIST
Specify playlist filename. Each line in the file
should be formatted like so: `SONGNAME - ARTIST`
-s SONG, --song SONG Specify song name of the artist.
2016-12-11 00:26:11 +00:00
-A ALBUM, --album ALBUM
2016-12-15 06:45:07 +00:00
Specify album name of the artist.
-st SEARCH_TERMS, --search-terms SEARCH_TERMS
Only use if calling -A/--album. Acts as extra search
terms when looking for the album.
2016-12-20 03:45:12 +00:00
-l, --choose-link If supplied, will bring up a console choice for what
link you want to download based off a list of titles.
2016-12-21 04:44:19 +00:00
-ng, --no-organize Only use if calling -p/--playlist. Forces all files
downloaded to be organized normally.
2016-12-15 06:45:07 +00:00
```
2016-12-11 00:26:11 +00:00
[![asciicast ](https://asciinema.org/a/bcs7i0sjmka052wsdyxg5xrug.png )](https://asciinema.org/a/bcs7i0sjmka052wsdyxg5xrug?speed=3& autoplay=true)
2016-12-13 03:46:24 +00:00
2016-12-13 04:46:28 +00:00
[![asciicast ](https://asciinema.org/a/8kb9882j4cbtd4hwbsbb7h0ia.png )](https://asciinema.org/a/8kb9882j4cbtd4hwbsbb7h0ia?speed=3)
2016-12-13 03:46:24 +00:00
2016-12-11 00:26:11 +00:00
___
### Installation
2016-12-20 16:19:17 +00:00
Please note that it currently is only usable in `Python 3.x` . Almost all dependencies are automatically installed by pip, but `youtube_dl` still needs `ffmpeg` to convert video to audio, so for Windows, you can install [`Scoop` ](http://scoop.sh/ ) and then just do:
2016-12-11 07:46:46 +00:00
```
$ scoop install ffmpeg
```
2016-12-20 16:19:17 +00:00
For OSX, you can use [`Brew` ](http://brew.sh/ ) to install `ffmpeg` :
2016-12-11 07:46:46 +00:00
```
$ brew install ffmpeg
```
2016-12-20 16:19:17 +00:00
And then for Ubuntu:
2016-12-11 07:46:46 +00:00
```
$ sudo apt-get install ffmpeg
```
2016-12-13 03:46:24 +00:00
Most other linux distros have `ffmpeg` or `libav-tools` in their package manager repos, so you can install one or the other for other distros.
2016-12-20 03:50:24 +00:00
Finally, install it!
```
$ pip install irs
```