ソースを参照

chore: build dev

Sv443 1 ヶ月 前
コミット
b92400d818
1 ファイル変更7 行追加2 行削除
  1. 7 2
      dist/BetterYTM.user.js

+ 7 - 2
dist/BetterYTM.user.js

@@ -8,7 +8,7 @@
 // @license           AGPL-3.0-only
 // @author            Sv443
 // @copyright         Sv443 (https://github.com/Sv443)
-// @icon              https://cdn.jsdelivr.net/gh/Sv443/BetterYTM@b3b490ad/assets/images/logo/logo_dev_48.png
+// @icon              https://cdn.jsdelivr.net/gh/Sv443/BetterYTM@4ca0c620/assets/images/logo/logo_dev_48.png
 // @match             https://music.youtube.com/*
 // @match             https://www.youtube.com/*
 // @run-at            document-start
@@ -313,7 +313,7 @@ const rawConsts = {
     mode: "development",
     branch: "develop",
     host: "github",
-    buildNumber: "b3b490ad",
+    buildNumber: "4ca0c620",
     assetSource: "jsdelivr",
     devServerPort: "8710",
 };
@@ -1651,6 +1651,11 @@ async function initRememberSongTime() {
         await GM.setValue("bytm-rem-songs", "[]");
         remVids = [];
     }
+    if (remVids.some(e => "watchID" in e)) {
+        remVids = remVids.filter(e => "id" in e);
+        await GM.setValue("bytm-rem-songs", JSON.stringify(remVids));
+        log(`Removed ${remVids.length} ${UserUtils.autoPlural("entry", remVids)} with an outdated format from the video time cache`);
+    }
     log(`Initialized video time restoring with ${remVids.length} initial ${UserUtils.autoPlural("entry", remVids)}:`, remVids);
     await remTimeRestoreTime();
     try {