From fb43148cfaaa9397471928fead3f0c5a3f6688fc Mon Sep 17 00:00:00 2001 From: Oliver Cervera Date: Mon, 20 Sep 2021 15:15:51 +0200 Subject: [PATCH] Add cookies how to Add procedure to use cookies with this container --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 010a740..0816f7a 100644 --- a/README.md +++ b/README.md @@ -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