From 4021745a56ec50b2461a7cfc5c6ec73db9260612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Wed, 17 Mar 2021 10:47:38 +0100 Subject: [PATCH] YT: set the same user agent as in player client --- src/youtube.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/youtube.js b/src/youtube.js index 525efa57..b22b159d 100644 --- a/src/youtube.js +++ b/src/youtube.js @@ -25,6 +25,9 @@ var YouTubeClient = GObject.registerClass({ { super._init({ timeout: 5, + max_conns_per_host: 1, + /* TODO: share this with GstClapper lib (define only once) */ + user_agent: 'Mozilla/5.0 (X11; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0', }); this.initAsyncState = InitAsyncState.NONE;