Merge pull request #560 from Materialious/update/1.4.1

Update/1.4.1
This commit is contained in:
Ward
2024-09-18 18:26:30 +12:00
committed by GitHub
5 changed files with 18 additions and 13 deletions
+2 -2
View File
@@ -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.
+2 -2
View File
@@ -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"
]
}
}
+2 -2
View File
@@ -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"
}
}
}
+11 -6
View File
@@ -17,12 +17,16 @@ export async function patchYoutubeJs(videoId: string): Promise<VideoPlay> {
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('<EssentialProperty', '<SupplementalProperty');
const dashUri = URL.createObjectURL(new Blob([manifest], { type: 'application/dash+xml;charset=utf8' }));
if (!video.basic_info.is_live) {
let manifest = await video.toDash();
// Hack to fix video not displaying.
// Thanks to absidue & Andrews54757
manifest = manifest.replaceAll('<EssentialProperty', '<SupplementalProperty');
dashUri = URL.createObjectURL(new Blob([manifest], { type: 'application/dash+xml;charset=utf8' }));
}
const descString = video.secondary_info.description.toString();
@@ -73,7 +77,8 @@ export async function patchYoutubeJs(videoId: string): Promise<VideoPlay> {
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,
+1 -1
View File
@@ -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")