Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #81

Merged
merged 2 commits into from
Nov 12, 2023
Merged

Dev #81

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nodemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"watch": ["src", "utils", "vite.config.ts", "public", "public/locales"],
"ext": "ts,tsx,css,html,json",
"ignore": ["src/**/*.spec.ts", "public/locales/en-US.json.d.ts"],
"exec": "concurrently \"vite build\" -- \"ts-json-as-const public/locales/en-US.json\" -- \"prettier --write public/locales/en-US.json.d.ts\""
"exec": "concurrently \"vite build\" \"ts-json-as-const public/locales/en-US.json\" \"prettier --write public/locales/en-US.json.d.ts\""
}
3 changes: 3 additions & 0 deletions src/features/videoHistory/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export async function setupVideoHistory() {
const playerContainer = isWatchPage() ? (document.querySelector("div#movie_player") as YouTubePlayerDiv | null) : isShortsPage() ? null : null;
// If player container is not available, return
if (!playerContainer) return;
const playerVideoData = await playerContainer.getVideoData();
// If the video is live return
if (playerVideoData.isLive) return;
const { video_id: videoId } = await playerContainer.getVideoData();
if (!videoId) return;
const videoElement = document.querySelector("video.video-stream.html5-main-video") as HTMLVideoElement | null;
Expand Down
Loading