Update README

pull/733/head
Omar Roth 6 years ago
parent 468e6b1c27
commit 294c168193

@ -18,7 +18,7 @@
- Set default player options (speed, quality, autoplay, loop) - Set default player options (speed, quality, autoplay, loop)
- Does not require JS to play videos - Does not require JS to play videos
- Support for Reddit comments in place of YT comments - Support for Reddit comments in place of YT comments
- Import/Export subscriptions, watch history, preference - Import/Export subscriptions, watch history, preferences
- Does not use any of the official YouTube APIs - Does not use any of the official YouTube APIs
Liberapay: https://liberapay.com/omarroth Liberapay: https://liberapay.com/omarroth
@ -51,47 +51,65 @@ $ docker volume rm invidious_postgresdata
$ docker-compose build $ docker-compose build
``` ```
### Installing [Crystal](https://github.com/crystal-lang/crystal): ### Arch Linux:
#### On Arch:
```bash ```bash
$ sudo pacman -S shards crystal # Install dependencies
$ sudo pacman -S shards crystal imagemagick librsvg
# Setup PostgresSQL
$ sudo systemctl enable postgresql
$ sudo systemctl start postgresql
$ sudo -i -u postgres
$ createuser -s YOUR_USER_NAME
$ createdb YOUR_USER_NAME
$ exit
# Setup Invidious
$ git clone https://github.com/omarroth/invidious
$ cd invidious
$ ./setup.sh
$ shards $ shards
$ crystal build src/invidious.cr --release
``` ```
#### On OSX: ### On Ubuntu:
```bash ```bash
$ brew update # Install dependencies
$ brew install shards crystal-lang $ curl -sSL https://dist.crystal-lang.org/apt/setup.sh | sudo bash
$ sudo apt update
$ sudo apt install crystal libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev librsvg2-dev postgresql imagemagick
# Setup PostgreSQL
$ sudo systemctl enable postgresql
$ sudo systemctl start postgresql
$ sudo -i -u postgres
$ createuser -s YOUR_USER_NAME_HERE
$ createdb YOUR_USER_NAME_HERE
$ exit
# Setup Invidious
$ git clone https://github.com/omarroth/invidious
$ cd invidious
$ ./setup.sh
$ shards $ shards
$ crystal build src/invidious.cr --release
``` ```
### Installing Postgres: ### On OSX:
#### On Arch:
Install according to the [wiki](https://wiki.archlinux.org/index.php/PostgreSQL#Installing_PostgreSQL)
#### On OSX:
```bash ```bash
$ brew install postgres # Install dependencies
``` $ brew update
$ brew install shards crystal-lang postgres imagemagick librsvg
### Setup Postgres:
```bash # Setup Invidious
$ git clone https://github.com/omarroth/invidious
$ cd invidious
$ ./setup.sh $ ./setup.sh
``` $ shards
$ crystal build src/invidious.cr --release
### Installing ImageMagick (required for CAPTCHA):
#### On Arch:
```bash
$ sudo pacman -S imagemagick librsvg
``` ```
## Usage: ## Usage:
@ -110,6 +128,8 @@ Usage: invidious [arguments]
Number of threads for crawling (default: 1) Number of threads for crawling (default: 1)
-c THREADS, --channel-threads=THREADS -c THREADS, --channel-threads=THREADS
Number of threads for refreshing channels (default: 1) Number of threads for refreshing channels (default: 1)
-f THREADS, --feed-threads=THREADS
Number of threads for refreshing feeds (default: 1)
-v THREADS, --video-threads=THREADS -v THREADS, --video-threads=THREADS
Number of threads for refreshing videos (default: 1) Number of threads for refreshing videos (default: 1)
``` ```

Loading…
Cancel
Save