summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2024-08-13 20:35:43 +0200
committerSamantaz Fox <coding@samantaz.fr>2024-08-13 20:35:43 +0200
commit2d18ff1f80aa804a11108f346a7a3a20f4eb191d (patch)
tree8d7bde219f794480af8810475f6e13ce41a9eedf /config
parent2d7869b48ba1c1aca04fd66c52d37853321775cf (diff)
parente6c39f9e3a29b1b701f18875f57114cb30c4b8dc (diff)
downloadinvidious-2d18ff1f80aa804a11108f346a7a3a20f4eb191d.tar.gz
invidious-2d18ff1f80aa804a11108f346a7a3a20f4eb191d.tar.bz2
invidious-2d18ff1f80aa804a11108f346a7a3a20f4eb191d.zip
Add ability to set po_token and visitordata ID (#4789)
This PR adds two new config option, to pass a PO token (config 'po_token') and a visitor ID (config 'visitor_data') to Youtube. These two strings are required to play videos using the WEB client. Warning: These strings gives much more identifiable information to Google! If the po_token setting is filled in, then the WEB client is used. If not, the Android client is used. TvHtml5ScreenEmbed will still be used as a fallback. Script for generating po_token and visitor_data: https://github.com/iv-org/youtube-trusted-session-generator Helps with issue 4734
Diffstat (limited to 'config')
-rw-r--r--config/config.example.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/config/config.example.yml b/config/config.example.yml
index 2f5228a6..219aa03f 100644
--- a/config/config.example.yml
+++ b/config/config.example.yml
@@ -186,6 +186,18 @@ https_only: false
##
# use_innertube_for_captions: false
+##
+## Send Google session informations. This is useful when Invidious is blocked
+## by the message "This helps protect our community."
+## See https://github.com/iv-org/invidious/issues/4734.
+##
+## Warning: These strings gives much more identifiable information to Google!
+##
+## Accepted values: String
+## Default: <none>
+##
+# po_token: ""
+# visitor_data: ""
# -----------------------------
# Logging