From 5d5c0646e02dc3516dca6ca61dc465c87d18c10b Mon Sep 17 00:00:00 2001 From: PikachuEXE Date: Tue, 30 Jul 2024 08:33:19 +0800 Subject: [PATCH] debug --- .github/workflows/build.yml | 1 - src/renderer/helpers/api/local.js | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f726d5aaff36a..0df1f8444ca4d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,7 +55,6 @@ jobs: node-version: ${{ matrix.node-version }} cache: "yarn" - run: yarn run ci - - run: yarn run lint - name: Get Version Number id: getPackageInfo uses: jaywcjlove/github-action-package@main diff --git a/src/renderer/helpers/api/local.js b/src/renderer/helpers/api/local.js index e9120cd17603a..786626a08dd8a 100644 --- a/src/renderer/helpers/api/local.js +++ b/src/renderer/helpers/api/local.js @@ -83,6 +83,9 @@ async function createInnertube({ withPlayer = false, location = undefined, safet const clientVersion = randomArrayItem(YOUTUBE_IOS_CLIENT_VERSIONS) const iosVersion = randomArrayItem(IOS_VERSIONS) + console.debug('clientVersion: ', clientVersion) + console.debug('iosVersion: ', iosVersion) + init.headers.set('x-youtube-client-version', clientVersion) // We can't set the user-agent here, but in the main process we take the x-user-agent and set it as the user-agent