We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 551ace1 commit 5e26910Copy full SHA for 5e26910
1 file changed
entrypoints/popup/App.vue
@@ -45,9 +45,11 @@ function getPlexInfo() {
45
const episode = episodeElement?.innerText?.trim() || "未知集数";
46
console.log("集数与副标题:", episode);
47
48
+ // 选中视频元素并获取当前时间
49
const video = document.querySelector("video");
50
const currentTime = video ? formatTime(video.currentTime) : "未知时间";
51
52
+ // 格式化时间为 hh_mm_ss
53
function formatTime(t: number) {
54
const h = String(Math.floor(t / 3600)).padStart(2, "0");
55
const m = String(Math.floor((t % 3600) / 60)).padStart(2, "0");
0 commit comments