Minor fixes
This commit is contained in:
@@ -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)[]
|
||||
|
||||
@@ -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'
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ export async function loadEntirePlaylist(
|
||||
}
|
||||
|
||||
newVideos = newVideos.filter((playlistVideo) => {
|
||||
playlistVideo.type = 'video';
|
||||
return playlistVideo.lengthSeconds > 0 && !ignoreVideos.includes(playlistVideo.videoId);
|
||||
});
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user