From d473b95c6d79e9e69afbf53e8814b05ca0ef65f9 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 24 May 2023 01:37:19 +0530 Subject: [PATCH] Little optimization and add a Bengali translation --- src/store/watched-videos-db.js | 2 +- src/translations/bn-IN.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/store/watched-videos-db.js b/src/store/watched-videos-db.js index 7362970..0233fa8 100644 --- a/src/store/watched-videos-db.js +++ b/src/store/watched-videos-db.js @@ -24,7 +24,7 @@ export function updateWatchedVideoProgress (videoID, prog, dur) { } export async function findLastWatch (videoId) { - const v = await PMDB.watchedVideos.where('videoId').equals(videoId).reverse().sortBy('progressPcnt') + const v = await PMDB.watchedVideos.where('videoId').equals(videoId).reverse().sortBy('progressPcnt').limit(1) return v[0] } diff --git a/src/translations/bn-IN.json b/src/translations/bn-IN.json index e5cbb0e..8d4ff43 100644 --- a/src/translations/bn-IN.json +++ b/src/translations/bn-IN.json @@ -98,7 +98,8 @@ "related_comments": "অন্যদের মন্তব্য", "autoplay_next_video": "এই videoটি শেষ হয়ে গেলে কি আপনি প্রথম সম্পর্কিত videoতে চলে যেতে চান?", "loop_this_video": "এই videoটি শেষ হয়ে গেলে, videoটি কে আবার সুরু থেকে চালাব? (loop করব?)", - "unauthenticated_rss": "এই channelটির RSS বার্তা URL (আপনার নথির সঙ্গে অসম্পর্কিত)" + "unauthenticated_rss": "এই channelটির RSS বার্তা URL (আপনার নথির সঙ্গে অসম্পর্কিত)", + "enable_dark_mode": "কৃষ্ণাভ রূপে দেখবেন?" }, "preferences": { "colorScheme": "কি রঙে আপনি দেখতে চান",