From f74498574a5f296e3274e04ebb2fcf7c0830c25f Mon Sep 17 00:00:00 2001 From: Fijxu Date: Thu, 10 Oct 2024 19:28:02 -0300 Subject: [PATCH] Add Generate a po_token and visitor_data for inv.nadeko.net --- ...ken-and-visitor_data-for-inv.nadeko.net.md | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Generate-a-po_token-and-visitor_data-for-inv.nadeko.net.md diff --git a/Generate-a-po_token-and-visitor_data-for-inv.nadeko.net.md b/Generate-a-po_token-and-visitor_data-for-inv.nadeko.net.md new file mode 100644 index 0000000..68eb01c --- /dev/null +++ b/Generate-a-po_token-and-visitor_data-for-inv.nadeko.net.md @@ -0,0 +1,29 @@ +`po_token` and `visitor_data` gets revoked after really fast making Invidious fail with `This content isn't available, try again later.` I did a workaround to allow users supply their own `po_token` and `visitor_data` into preferences. This works really well for now :b + +# **NOTE: THIS IS A WORKAROUND ONLY FOR MY INSTANCE, DO NOT REPORT ANY ISSUES TO https://github.com/iv-org/invidious/issues IF THIS DOESN'T WORK FOR YOU!** + + +# Linux + +## Tutorial without Docker +1. Install Chromium or Google Chrome. +2. Clone `https://github.com/iv-org/youtube-trusted-session-generator` and open a terminal on it +2. Create a new virtualenv: `virtualenv venv` +3. Activate the virtualenv: `source venv/bin/activate` +4. Install the dependencies: `pip install -r requirements.txt` +5. Run the script: `python index.py` +6. Copy paste the values of these the two parameters (`po_token` and `visitor_data`) in https://inv.nadeko.net/preferences + +## Tutorial with Docker +1. Run the script: `docker run quay.io/invidious/youtube-trusted-session-generator` +2. Copy paste the values of these the two parameters (`po_token` and `visitor_data`) in https://inv.nadeko.net/preferences + +![](https://culiao.lol/sKw) + +# Windows + +No idea. I don't use Windows, but if you have python installed just follow the instructions from [Tutorial without Docker](#Tutorial without docker) + +# MacOS + +Same, I don't use MacOS, but if you have python installed just follow the instructions from [Tutorial without Docker](#Tutorial without docker)