Implement restoring backups and auto-delete unused videos

This commit is contained in:
Bnyro
2023-06-15 23:03:57 +02:00
parent a52c511d29
commit 4056c44fbb
2 changed files with 23 additions and 7 deletions

View File

@@ -80,7 +80,7 @@ export default {
if (!db.objectStoreNames.contains("playlists")) {
const playlistStore = db.createObjectStore("playlists", { keyPath: "playlistId" });
playlistStore.createIndex("playlistId", "playlistId", { unique: true });
const playlistVideosStore = db.createObjectStore("playlistVideos", { keyPath: "videoId" });
const playlistVideosStore = db.createObjectStore("playlist_videos", { keyPath: "videoId" });
playlistVideosStore.createIndex("videoId", "videoId", { unique: true });
}
};