Add cookies how to

Add procedure to use cookies with this container
This commit is contained in:
Oliver Cervera 2021-09-20 15:15:51 +02:00 committed by GitHub
parent 574ed747eb
commit fb43148cfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -28,6 +28,24 @@ services:
volumes:
- /path/to/downloads:/downloads
```
### Cookies
In case you need to use cookies with this container:
* Add the following to your docker-compose
```yaml
volumes:
- /some/path/to/your/cookies:/app/cookies
environment:
- YTDL_OPTIONS={"cookiefile":"/app/cookies/cookies.txt"}
```
* Install in your browser an extension to extract Cookies
* [Firefox](https://addons.mozilla.org/en-US/firefox/addon/export-cookies-txt/)
* [Chrome](https://chrome.google.com/webstore/detail/get-cookiestxt/bgaddhkoddajcdgocldbbfleckgcbcid)
* Extract the cookies you need with the extension and rename the file `cookies.txt`
* Drop the file in the folder you configured in the docker-compose above
* Restart the container
## Configuration via environment variables