Skip to content

Commit 5e26910

Browse files
committed
添加注释
1 parent 551ace1 commit 5e26910

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

entrypoints/popup/App.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,11 @@ function getPlexInfo() {
4545
const episode = episodeElement?.innerText?.trim() || "未知集数";
4646
console.log("集数与副标题:", episode);
4747
48+
// 选中视频元素并获取当前时间
4849
const video = document.querySelector("video");
4950
const currentTime = video ? formatTime(video.currentTime) : "未知时间";
5051
52+
// 格式化时间为 hh_mm_ss
5153
function formatTime(t: number) {
5254
const h = String(Math.floor(t / 3600)).padStart(2, "0");
5355
const m = String(Math.floor((t % 3600) / 60)).padStart(2, "0");

0 commit comments

Comments
 (0)