Remove youtube.js from web app

This commit is contained in:
Brahim Hadriche committed 2024-12-24 11:36:57 -05:00
1 parent e20fb7df90
commit 0f6266afa4
10 files changed
+15 -262

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@
import { onDestroy, onMount } from "svelte";
import { playletStateStore, tr } from "lib/Stores";
import { InvidiousApi } from "lib/Api/InvidiousApi";
import { YoutubeJs } from "./Api/YoutubeJs";
import { PlayletApi } from "./Api/PlayletApi";
import VideoCastDialog from "./VideoFeed/VideoCastDialog.svelte";
import ChannelCastDialog from "./VideoFeed/ChannelCastDialog.svelte";
import PlaylistCastDialog from "./VideoFeed/PlaylistCastDialog.svelte";
@@ -109,7 +109,7 @@
async function searchForVideoById(videoId, timestamp) {
try {
isLoading = true;
videoMetadata = await YoutubeJs.getVideoInfo(videoId);
videoMetadata = await PlayletApi.getVideoInfo(videoId);
videoStartAtChecked = timestamp !== undefined;
if (videoStartAtChecked) {
videoStartAtTimestamp = timestamp;