Fix getBestThumbnail

This commit is contained in:
WardPearce
2024-09-18 19:08:40 +12:00
parent 2aa87999ea
commit 7e1bbed2cf
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ android {
applicationId "us.materialio.app"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 39
versionName "1.4.2"
versionCode 40
versionName "1.4.3"
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.4.2",
"version": "1.4.3",
"description": "Modern material design for Invidious.",
"author": {
"name": "Ward Pearce",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "materialious",
"version": "1.4.2",
"version": "1.4.3",
"private": true,
"scripts": {
"dev": "vite dev",
+1 -1
View File
@@ -246,7 +246,7 @@ export function getBestThumbnail(
return b.width * b.height - a.width * a.height;
});
return images[0].url;
return imagesFiltered[0].url;
} else {
return '';
}
+1 -1
View File
@@ -5,7 +5,7 @@ import json
import os
import re
LATEST_VERSION = "1.4.2"
LATEST_VERSION = "1.4.3"
WORKING_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "materialious")
ROOT_PACKAGE = os.path.join(WORKING_DIR, "package.json")