Minor fixes

This commit is contained in:
WardPearce
2025-10-08 03:48:23 +13:00
parent da6665fbb0
commit c4e2f5a8f1
5 changed files with 6 additions and 3 deletions
@@ -65,6 +65,6 @@ if (Capacitor.getPlatform() === 'android') {
if (hasReloaded || !isAndroidTv) return;
hasReloaded = true;
setTimeout(() => goto('/', { replaceState: true }), 1000);
setTimeout(() => goto('/', { replaceState: true }), 2000);
});
}
@@ -19,6 +19,7 @@
import ChannelThumbnail from './ChannelThumbnail.svelte';
import PlaylistThumbnail from './PlaylistThumbnail.svelte';
import HashtagThumbnail from './HashtagThumbnail.svelte';
interface Props {
items?:
| (VideoBase | Video | PlaylistPageVideo | Channel | Playlist | HashTag)[]
+2 -1
View File
@@ -135,7 +135,8 @@ export async function patchYoutubeJs(videoId: string): Promise<VideoPlay> {
author: recommended.metadata.metadata.metadata_rows[0]?.metadata_parts[0]?.text.text || '',
authorId:
recommended.metadata?.image?.renderer_context?.command_context?.on_tap.payload?.browseId ||
''
'',
type: 'video'
});
});
+1
View File
@@ -27,6 +27,7 @@ export async function loadEntirePlaylist(
}
newVideos = newVideos.filter((playlistVideo) => {
playlistVideo.type = 'video';
return playlistVideo.lengthSeconds > 0 && !ignoreVideos.includes(playlistVideo.videoId);
});
+1 -1
View File
@@ -55,7 +55,7 @@ export function phaseDescription(
// Handle youtubejs timestamps
if (
fallbackPatch === 'youtubejs' &&
href.includes(`https://www.youtube.com/watch?v=${videoId}`)
href.includes(`https://www.youtube.com/watch?v=${videoId}&t=`)
) {
const url = new URL(href);
const timeParam = url.searchParams.get('t') || '0';