Fix casting timestamp

This commit is contained in:
Brahim Hadriche committed 2023-10-27 20:01:18 -04:00
1 parent 200fb68ab9
commit f58137b326
3 files changed
+12 -4

No files matched your search

+4 -2
View File
@@ -187,17 +187,19 @@
}
async function playVideoOnTv() {
const timestamp = videoStartAtChecked ? videoStartAtTimestamp : undefined;
await PlayletApi.playVideo(
videoMetadata?.videoId,
videoStartAtTimestamp,
timestamp,
videoMetadata?.title,
videoMetadata?.author
);
}
async function queueVideoOnTv() {
const timestamp = videoStartAtChecked ? videoStartAtTimestamp : undefined;
await PlayletApi.queueVideo(
videoMetadata?.videoId,
videoStartAtTimestamp,
timestamp,
videoMetadata?.title,
videoMetadata?.author
);
@@ -180,11 +180,13 @@
}
async function playVideoOnTv() {
await PlayletApi.playVideo(videoId, videoStartAtTimestamp, title, author);
const timestamp = videoStartAtChecked ? videoStartAtTimestamp : undefined;
await PlayletApi.playVideo(videoId, timestamp, title, author);
}
async function queueVideoOnTv() {
await PlayletApi.queueVideo(videoId, videoStartAtTimestamp, title, author);
const timestamp = videoStartAtChecked ? videoStartAtTimestamp : undefined;
await PlayletApi.queueVideo(videoId, timestamp, title, author);
}
function openInvidiousInNewTab() {