2016-07-08 04:37:40 +00:00
# The Ingenious Redistribution System (IRS)
2016-07-08 05:59:12 +00:00
Downloads or streams media from the name of the song / album / movie / tv-show that you requested.
### Dependencies
2016-07-08 20:52:43 +00:00
First, actually install python and pip:
2016-07-08 05:59:12 +00:00
- To install python3 and `pip` for Ubuntu run this command:
2016-07-08 20:52:43 +00:00
2016-07-08 05:59:12 +00:00
```bash
2016-07-08 20:52:43 +00:00
$ sudo apt-get install python3 python3-pip
2016-07-08 05:59:12 +00:00
```
- For Windows follow [this ](http://www.howtogeek.com/197947/how-to-install-python-on-windows/ ) guide to install python (remember to install ~v3.4), and [this ](https://pip.pypa.io/en/latest/installing/ ) guide to install `pip` .
- For OSX follow [this ](http://docs.python-guide.org/en/latest/starting/install/osx/ ) guide that goes through python and `pip` . Also, remember to install ~v3.4.
Then install `requirements.txt` from the repository:
```bash
2016-07-09 21:53:56 +00:00
$ python install -r requirements.txt
2016-07-08 05:59:12 +00:00
```
There are some more external command-line programs that are essential to movies, tv-shows, and streaming:
2016-07-09 21:53:56 +00:00
- rTorrent: [Windows ](https://rtwi.jmk.hu/wiki/rTorrentOnWindows ), [OSX ](http://macappstore.org/rtorrent/ ), Ubuntu:
2016-07-10 04:05:32 +00:00
2016-07-09 21:53:56 +00:00
```bash
$ sudo apt-get install rtorrent
```
2016-07-08 05:59:12 +00:00
- mpv: https://mpv.io/installation/
- Peerflix:
2016-07-08 06:00:42 +00:00
- Windows: follow [this ](http://blog.teamtreehouse.com/install-node-js-npm-windows ) guide to install npm and then run this command:
2016-07-08 05:59:12 +00:00
```bash
$ npm install -g peerflix
```
- OSX: Same as Windows, except follow [this ](http://blog.teamtreehouse.com/install-node-js-npm-mac ) guide.
- Ubuntu: Again, the same, only follow [this ](http://blog.teamtreehouse.com/install-node-js-npm-linux ) guide instead.
2016-07-09 21:53:56 +00:00
- VLC: Just download and install it [here ](http://www.videolan.org/vlc/index.html ).
### Install
2016-07-08 05:59:12 +00:00
2016-07-09 21:53:56 +00:00
```bash
$ git clone https://github.com/kepoorhampond/IngeniousRedistributionSystem.git
```
2016-07-10 01:00:35 +00:00
And that should be it! Eventually it'll be put up on `pip` , to make it much, much easier to install.
2016-07-08 05:59:12 +00:00
### Overview
2016-07-08 04:37:40 +00:00
Currently the system can stream or download the following:
- Specific songs.
- Complete albums.
- Movies.
- TV shows.
2016-07-15 16:54:28 +00:00
- Playlists.
2016-07-15 19:05:20 +00:00
- Comics and books.*
2016-07-15 16:54:28 +00:00
< sup > \* Limited only to downloading.< sup >
2016-07-08 04:37:40 +00:00
When downloading music, the system will fill out the specific meta-data so that it will appear organized in your player of choice. It parses the following pieces of meta-data:
- Title.
- Artist.
- Album.
- Album cover/art.*
- Year released.
- Tracknumber.*
< sup > \* Album art is slightly buggy, and tracknumber only works when downloading complete album.< sup >
2016-07-08 20:52:43 +00:00
2016-07-15 16:54:28 +00:00
On a personal judgement, we would say that the complete meta-data parsing works ~80% of the time.
2016-07-09 21:53:56 +00:00
2016-07-08 20:52:43 +00:00
### Usage
```bash
2016-07-10 04:05:32 +00:00
$ irs (stream | download) movie < movie-name >
$ irs (stream | download) tv < tv-show > < episode >
2016-07-15 19:05:20 +00:00
$ irs (stream | download) (song | album) < title > by < artist >
2016-07-14 20:06:53 +00:00
$ irs (stream | download) playlist < txt-file-name >
2016-07-15 19:05:20 +00:00
$ irs download (comic < title > < run > | book < title > by < author > )
2016-07-14 20:06:53 +00:00
```
#### Examples
2016-07-08 20:52:43 +00:00
```bash
2016-07-15 19:05:20 +00:00
$ irs download book I, Robot by Isaac Asimov
2016-07-10 04:05:32 +00:00
$ irs stream song Where Is My Mind by The Pixies
2016-07-15 19:05:20 +00:00
$ irs download album A Night At The Opera by Queen
$ irs stream movie Fight Club
2016-07-10 04:05:32 +00:00
$ irs download tv mr.robot s01e01
2016-07-15 19:05:20 +00:00
$ irs stream playlist "Rock Save The Queen.txt"
2016-07-15 16:54:28 +00:00
$ irs download comic Paper Girls 001
2016-07-08 20:52:43 +00:00
```
2016-07-15 16:54:28 +00:00
The text file should be formatted like so: `<song>: <artist>`
```
Good Times Bad Times: Led Zeppelin
I Want To Break Free: Queen
The Man Who Sold The World: David Bowie
```
2016-07-08 20:52:43 +00:00
### Disclaimer
Copyrighted content may be illegal to stream and/or download in your country.