Merge pull request #522 from Materialious/update/1.2.3

Update/1.2.3
This commit is contained in:
Ward
2024-09-09 19:44:27 +12:00
committed by GitHub
6 changed files with 25 additions and 7 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ android {
applicationId "us.materialio.app"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 27
versionName "1.2.2"
versionCode 28
versionName "1.2.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.2.2",
"version": "1.2.3",
"description": "Modern material design for Invidious.",
"author": {
"name": "Ward Pearce",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "materialious",
"version": "1.2.2",
"version": "1.2.3",
"private": true,
"scripts": {
"dev": "vite dev",
@@ -17,6 +17,9 @@
videos = data.playlist.videos.sort((a: PlaylistPageVideo, b: PlaylistPageVideo) => {
return a.index < b.index ? -1 : 1;
});
videos = videos.filter((playlistVideo) => {
return playlistVideo.lengthSeconds > 0;
});
onMount(async () => {
for (let page = 1; page++; ) {
@@ -29,6 +32,9 @@
return a.index < b.index ? -1 : 1;
}
);
videos = videos.filter((playlistVideo) => {
return playlistVideo.lengthSeconds > 0;
});
}
});
}
@@ -320,6 +320,10 @@
return a.index < b.index ? -1 : 1;
}
);
playlistVideos = playlistVideos.filter((playlistVideo) => {
return playlistVideo.lengthSeconds > 0;
});
}
}
@@ -641,7 +645,11 @@
{/each}
{/if}
{:else}
<article style="height: 85vh; position: relative;" id="playlist" class="scroll no-padding">
<article
style="height: 85vh; position: relative;"
id="playlist"
class="scroll no-padding surface-container-high"
>
<article class="no-elevate" style="position: sticky; top: 0; z-index: 3;">
<h6>{playlist.title}</h6>
<p>
@@ -697,7 +705,11 @@
class:border={playlistVideo.videoId === data.video.videoId}
>
{#key playlistVideo.videoId}
<Thumbnail video={playlistVideo} playlistId={data.playlistId || undefined} />
<Thumbnail
video={playlistVideo}
sideways={true}
playlistId={data.playlistId || undefined}
/>
{/key}
</article>
{/each}
+1 -1
View File
@@ -5,7 +5,7 @@ import json
import os
import re
LATEST_VERSION = "1.2.2"
LATEST_VERSION = "1.2.3"
WORKING_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "materialious")
ROOT_PACKAGE = os.path.join(WORKING_DIR, "package.json")