{video.author}
- {#if !('publishedText' in video) && 'viewCountText' in video}
-
- • {video.viewCountText}
- {$_('views')}
-
- {/if}
+ {#if !('publishedText' in video) && 'viewCountText' in video}
+
+ {video.viewCountText}
+ {$_('views')}
+
+ {/if}
+
{#if 'publishedText' in video}
{cleanNumber(video.viewCount)} • {video.publishedText}
@@ -280,9 +281,10 @@
.sideways-root .video-title span {
display: block;
- white-space: nowrap;
+ white-space: normal;
overflow: hidden;
- text-overflow: ellipsis;
+ word-wrap: break-word;
+ line-height: 1.2;
}
.video-title {
diff --git a/materialious/src/lib/patches/youtubejs.ts b/materialious/src/lib/patches/youtubejs.ts
index d3e51f51..bd49b591 100644
--- a/materialious/src/lib/patches/youtubejs.ts
+++ b/materialious/src/lib/patches/youtubejs.ts
@@ -121,8 +121,6 @@ export async function patchYoutubeJs(videoId: string): Promise {
return;
}
- console.log(recommended);
-
recommendedVideos.push({
videoThumbnails: (recommended?.content_image?.image as Thumbnail[]) || [],
videoId: recommended?.content_id || '',
diff --git a/materialious/src/lib/playlist.ts b/materialious/src/lib/playlist.ts
index 244c638e..3ef60bb3 100644
--- a/materialious/src/lib/playlist.ts
+++ b/materialious/src/lib/playlist.ts
@@ -8,7 +8,6 @@ export async function loadEntirePlaylist(
): Promise<{ videos: PlaylistPageVideo[]; info: PlaylistPage }> {
const cachedPlaylists = get(playlistCacheStore);
if (playlistId in cachedPlaylists) {
- console.log('Using cache');
return cachedPlaylists[playlistId];
}
diff --git a/materialious/src/routes/(app)/search/[slug]/+page.ts b/materialious/src/routes/(app)/search/[slug]/+page.ts
index ed03be4a..7a120b98 100644
--- a/materialious/src/routes/(app)/search/[slug]/+page.ts
+++ b/materialious/src/routes/(app)/search/[slug]/+page.ts
@@ -30,13 +30,13 @@ export async function load({ params, url }) {
} else {
getSearch(params.slug, { type: type }).then((newSearch) => {
searchCacheStore.set({
- ...get(searchCacheStore),
[searchStoreId]: excludeDuplicateFeeds(search, newSearch) as (
| Channel
| Video
| Playlist
| HashTag
- )[]
+ )[],
+ ...get(searchCacheStore)
});
});
}
diff --git a/update_versions.py b/update_versions.py
index 557d9af2..cb614caf 100644
--- a/update_versions.py
+++ b/update_versions.py
@@ -3,7 +3,7 @@ import os
import re
from datetime import datetime
-LATEST_VERSION = "1.10.5"
+LATEST_VERSION = "1.10.6"
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")