Updated how dearrow local fallback processing works

This commit is contained in:
WardPearce
2024-05-13 15:59:42 +12:00
parent 04e0dbde0f
commit 6583953fcc
5 changed files with 12 additions and 11 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ android {
applicationId "us.materialio.app"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 9
versionName "1.0.9"
versionCode 10
versionName "1.0.10"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
aaptOptions {
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "Materialious",
"version": "1.0.9",
"version": "1.0.10",
"description": "Modern material design for Invidious.",
"author": {
"name": "Ward Pearce",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "materialious",
"version": "1.0.9",
"version": "1.0.10",
"private": true,
"scripts": {
"dev": "vite dev",
+7 -6
View File
@@ -69,7 +69,7 @@
return;
}
let imageSrc = getBestThumbnail(video.videoThumbnails);
let imageSrc = getBestThumbnail(video.videoThumbnails) as string;
if (get(deArrowEnabledStore)) {
let locatedThumbnail = false;
@@ -107,13 +107,14 @@
mockVideo.preload = 'auto';
mockVideo.id = 'video';
const videoToThumbnail = (await getVideo(video.videoId)).formatStreams[0].url;
mockVideo.src = get(playerProxyVideosStore)
? proxyVideoUrl(videoToThumbnail)
: videoToThumbnail;
mockVideo.crossOrigin = 'anonymous';
const videoDetails = (await getVideo(video.videoId)).formatStreams[0];
mockVideo.src = proxyVideoUrl(videoDetails.url);
mockVideo.addEventListener('loadeddata', () => {
mockVideo.currentTime = mockVideo.duration / 100;
mockVideo.currentTime = mockVideo.duration / 50;
mockVideo.addEventListener('seeked', () => {
if (context) {
+1 -1
View File
@@ -5,7 +5,7 @@ import json
import os
import re
LATEST_VERSION = "1.0.9"
LATEST_VERSION = "1.0.10"
WORKING_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "materialious")
ROOT_PACKAGE = os.path.join(WORKING_DIR, "package.json")