mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Update README
This commit is contained in:
parent
468e6b1c27
commit
294c168193
1 changed files with 53 additions and 33 deletions
86
README.md
86
README.md
|
@ -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
|
||||||
$ shards
|
$ sudo pacman -S shards crystal imagemagick librsvg
|
||||||
```
|
|
||||||
|
|
||||||
#### On OSX:
|
# Setup PostgresSQL
|
||||||
|
$ sudo systemctl enable postgresql
|
||||||
|
$ sudo systemctl start postgresql
|
||||||
|
$ sudo -i -u postgres
|
||||||
|
$ createuser -s YOUR_USER_NAME
|
||||||
|
$ createdb YOUR_USER_NAME
|
||||||
|
$ exit
|
||||||
|
|
||||||
```bash
|
# Setup Invidious
|
||||||
$ brew update
|
$ git clone https://github.com/omarroth/invidious
|
||||||
$ brew install shards crystal-lang
|
$ cd invidious
|
||||||
$ shards
|
|
||||||
```
|
|
||||||
|
|
||||||
### Installing Postgres:
|
|
||||||
|
|
||||||
#### On Arch:
|
|
||||||
|
|
||||||
Install according to the [wiki](https://wiki.archlinux.org/index.php/PostgreSQL#Installing_PostgreSQL)
|
|
||||||
|
|
||||||
#### On OSX:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ brew install postgres
|
|
||||||
```
|
|
||||||
|
|
||||||
### Setup Postgres:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ ./setup.sh
|
$ ./setup.sh
|
||||||
|
$ shards
|
||||||
|
$ crystal build src/invidious.cr --release
|
||||||
```
|
```
|
||||||
|
|
||||||
### Installing ImageMagick (required for CAPTCHA):
|
### On Ubuntu:
|
||||||
|
|
||||||
#### On Arch:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ sudo pacman -S imagemagick librsvg
|
# Install dependencies
|
||||||
|
$ 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
|
||||||
|
$ crystal build src/invidious.cr --release
|
||||||
|
```
|
||||||
|
|
||||||
|
### On OSX:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install dependencies
|
||||||
|
$ brew update
|
||||||
|
$ brew install shards crystal-lang postgres imagemagick librsvg
|
||||||
|
|
||||||
|
# Setup Invidious
|
||||||
|
$ git clone https://github.com/omarroth/invidious
|
||||||
|
$ cd invidious
|
||||||
|
$ ./setup.sh
|
||||||
|
$ shards
|
||||||
|
$ crystal build src/invidious.cr --release
|
||||||
```
|
```
|
||||||
|
|
||||||
## 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…
Reference in a new issue