+
+
+ https://github.com/Materialious/Materialious/releases/tag/1.11.10
+
https://github.com/Materialious/Materialious/releases/tag/1.11.9
diff --git a/materialious/electron/package.json b/materialious/electron/package.json
index bdb43eb5..82a01dc1 100644
--- a/materialious/electron/package.json
+++ b/materialious/electron/package.json
@@ -1,6 +1,6 @@
{
"name": "Materialious",
- "version": "1.11.9",
+ "version": "1.11.10",
"description": "Modern material design for Invidious.",
"author": {
"name": "Ward Pearce",
diff --git a/materialious/package.json b/materialious/package.json
index 796ab139..d9a7c54e 100644
--- a/materialious/package.json
+++ b/materialious/package.json
@@ -1,6 +1,6 @@
{
"name": "materialious",
- "version": "1.11.9",
+ "version": "1.11.10",
"private": true,
"scripts": {
"dev": "vite dev",
@@ -73,4 +73,4 @@
"svelte-infinite-loading": "^1.4.0",
"youtubei.js": "^16.0.1"
}
-}
+}
\ No newline at end of file
diff --git a/materialious/src/lib/api/model.ts b/materialious/src/lib/api/model.ts
index a3cf0683..3c4dbbcf 100644
--- a/materialious/src/lib/api/model.ts
+++ b/materialious/src/lib/api/model.ts
@@ -22,6 +22,7 @@ export interface VideoBase {
authorId: string;
lengthSeconds: number;
viewCountText: string;
+ viewCount?: number;
}
export interface ResolvedUrl {
diff --git a/materialious/src/lib/components/Thumbnail.svelte b/materialious/src/lib/components/Thumbnail.svelte
index a7259eef..c7f5ba2c 100644
--- a/materialious/src/lib/components/Thumbnail.svelte
+++ b/materialious/src/lib/components/Thumbnail.svelte
@@ -2,7 +2,7 @@
import { resolve } from '$app/paths';
import { getBestThumbnail } from '$lib/images';
import { letterCase } from '$lib/letterCasing';
- import { videoLength } from '$lib/numbers';
+ import { cleanNumber, videoLength } from '$lib/numbers';
import { onDestroy, onMount } from 'svelte';
import { _ } from '$lib/i18n';
import { get } from 'svelte/store';
@@ -226,13 +226,13 @@
{#if !('publishedText' in video) && 'viewCountText' in video}
•
- {video.viewCountText}
+ {video.viewCountText ?? cleanNumber(video.viewCount ?? 0)}
{$_('views')}
{/if}
{#if 'publishedText' in video}
- {video.viewCountText} • {video.publishedText}
+ {video.viewCountText ?? cleanNumber(video.viewCount ?? 0)} • {video.publishedText}
{/if}
diff --git a/update_versions.py b/update_versions.py
index d1b886ab..cb3532d0 100644
--- a/update_versions.py
+++ b/update_versions.py
@@ -3,7 +3,7 @@ import os
import re
from datetime import datetime
-LATEST_VERSION = "1.11.9"
+LATEST_VERSION = "1.11.10"
RELEASE_DATE = datetime.now().strftime("%Y-%-m-%d") # Format: YYYY-M-D
WORKING_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "materialious")