diff --git a/README.md b/README.md index 141e7877..fd4b1b60 100644 --- a/README.md +++ b/README.md @@ -236,7 +236,7 @@ brew install --cask spotube - Every dependency in [package.json](/materialious/package.json). - [LuanRT](https://github.com/LuanRT) for YouTube.js & SABR implementation. - [FreeTube](https://github.com/FreeTubeApp/FreeTube) for their subtitle fix. -- [spotube](https://github.com/KRTirtho/spotube) for using their README layout for local installation.free +- [spotube](https://github.com/KRTirtho/spotube) for using their README layout for local installation. # Developers - [How Materialious is built](./docs/BUILDING.md) diff --git a/fastlane/metadata/android/en-US/full_description.txt b/fastlane/metadata/android/en-US/full_description.txt index 05bd7247..602703eb 100644 --- a/fastlane/metadata/android/en-US/full_description.txt +++ b/fastlane/metadata/android/en-US/full_description.txt @@ -1 +1,26 @@ -

Materialious is a client for Invidious using material design. It lets you browse and watch videos, manage playlists and use channels.


Features:

\ No newline at end of file +Materialious is a client for Invidious using material design. +It lets you browse and watch videos, manage playlists and use channels. + +Features: + diff --git a/materialious/electron/materialious.metainfo.xml b/materialious/electron/materialious.metainfo.xml index 77e5c853..806dc9c9 100644 --- a/materialious/electron/materialious.metainfo.xml +++ b/materialious/electron/materialious.metainfo.xml @@ -53,26 +53,10 @@ intense - - - - - - - - - - - - - - - - - + https://github.com/Materialious/Materialious/releases/tag/1.8.4 - + https://github.com/Materialious/Materialious/releases/tag/1.8.3 @@ -127,4 +111,4 @@ https://github.com/Materialious/Materialious/releases/tag/1.6.18 - \ No newline at end of file + diff --git a/materialious/electron/package.json b/materialious/electron/package.json index 6c2847c1..eb41388f 100644 --- a/materialious/electron/package.json +++ b/materialious/electron/package.json @@ -44,4 +44,4 @@ "capacitor", "electron" ] -} \ No newline at end of file +} diff --git a/materialious/package.json b/materialious/package.json index 16aa8645..32640e0d 100644 --- a/materialious/package.json +++ b/materialious/package.json @@ -71,4 +71,4 @@ "terser": "^5.34.1", "youtubei.js": "^13.4.0" } -} \ No newline at end of file +} diff --git a/materialious/src/lib/patches/youtubejs.ts b/materialious/src/lib/patches/youtubejs.ts index 78b8cdfd..ecc6e638 100644 --- a/materialious/src/lib/patches/youtubejs.ts +++ b/materialious/src/lib/patches/youtubejs.ts @@ -29,23 +29,21 @@ export async function patchYoutubeJs(videoId: string): Promise { enable_session_cache: false }); - if (!get(poTokenCacheStore)) { - const visitorData = youtube.session.context.client.visitorData ?? ''; + const visitorData = youtube.session.context.client.visitorData ?? ''; - const requestKey = 'O43z0dpjhgX20SCx4KAo'; - const challengeResponse = await youtube.getAttestationChallenge('ENGAGEMENT_TYPE_UNBOUND'); + const requestKey = 'O43z0dpjhgX20SCx4KAo'; + const challengeResponse = await youtube.getAttestationChallenge('ENGAGEMENT_TYPE_UNBOUND'); - if (!challengeResponse.bg_challenge) throw new Error('Could not get challenge'); + if (!challengeResponse.bg_challenge) throw new Error('Could not get challenge'); - const platformMinter = - Capacitor.getPlatform() === 'android' - ? androidPoTokenMinter - : window.electronAPI.generatePoToken; + const platformMinter = + Capacitor.getPlatform() === 'android' + ? androidPoTokenMinter + : window.electronAPI.generatePoToken; - poTokenCacheStore.set( - await platformMinter(challengeResponse.bg_challenge, requestKey, visitorData) - ); - } + poTokenCacheStore.set( + await platformMinter(challengeResponse.bg_challenge, requestKey, visitorData) + ); const extraArgs: Record = { playbackContext: {