diff --git a/materialious/android/app/build.gradle b/materialious/android/app/build.gradle index c24798ed..b9e25f83 100644 --- a/materialious/android/app/build.gradle +++ b/materialious/android/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "us.materialio.app" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 37 - versionName "1.4.0" + versionCode 38 + versionName "1.4.1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" aaptOptions { // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. diff --git a/materialious/electron/package.json b/materialious/electron/package.json index cc127024..e91988d6 100644 --- a/materialious/electron/package.json +++ b/materialious/electron/package.json @@ -1,6 +1,6 @@ { "name": "Materialious", - "version": "1.4.0", + "version": "1.4.1", "description": "Modern material design for Invidious.", "author": { "name": "Ward Pearce", @@ -40,4 +40,4 @@ "capacitor", "electron" ] -} +} \ No newline at end of file diff --git a/materialious/package.json b/materialious/package.json index 1ec4350f..90b4bedb 100644 --- a/materialious/package.json +++ b/materialious/package.json @@ -1,6 +1,6 @@ { "name": "materialious", - "version": "1.4.0", + "version": "1.4.1", "private": true, "scripts": { "dev": "vite dev", @@ -66,4 +66,4 @@ "svelte-persisted-store": "^0.11.0", "vidstack": "^1.12.9" } -} +} \ No newline at end of file diff --git a/materialious/src/lib/patches/youtubejs.ts b/materialious/src/lib/patches/youtubejs.ts index b081eb0f..6f9534e2 100644 --- a/materialious/src/lib/patches/youtubejs.ts +++ b/materialious/src/lib/patches/youtubejs.ts @@ -17,12 +17,16 @@ export async function patchYoutubeJs(videoId: string): Promise { throw new Error('Unable to pull video info from youtube.js'); } - let manifest = await video.toDash(); + let dashUri: string = ''; - // Hack to fix video not displaying. - // Thanks to absidue & Andrews54757 - manifest = manifest.replaceAll(' { published: 0, publishedText: video.primary_info.published.toString(), premiereTimestamp: 0, - liveNow: false, + hlsUrl: video.streaming_data?.hls_manifest_url || undefined, + liveNow: video.basic_info.is_live || false, premium: false, isUpcoming: false, videoId: videoId, diff --git a/update_versions.py b/update_versions.py index ad4ad5f1..0d31a2a0 100644 --- a/update_versions.py +++ b/update_versions.py @@ -5,7 +5,7 @@ import json import os import re -LATEST_VERSION = "1.4.0" +LATEST_VERSION = "1.4.1" WORKING_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "materialious") ROOT_PACKAGE = os.path.join(WORKING_DIR, "package.json")