mirror of
https://github.com/TeamPiped/Piped.git
synced 2026-03-15 13:07:00 +00:00
feat: mark as watched button in feed (#3746)
* feat: add mark as watched/unwatched button * fix: remove from trending page and hide if watch history is diabled remove the button from trending page because it only works in feed page. * fix: missing thumbnail url in watch_history when using mark as watched * fix: missing uploadername in watch_history when using mark as watched * refactor: make mark as watched consistent with other app elements * refactor: simplify setting "watched" property for videos --------- Co-authored-by: Bnyro <bnyro@tutanota.com>
This commit is contained in:
@@ -144,7 +144,7 @@ const mixin = {
|
||||
var request = store.get(video.url.substr(-11));
|
||||
request.onsuccess = function (event) {
|
||||
if (event.target.result) {
|
||||
video.watched = true;
|
||||
video.watched = event.target.result.currentTime != 0;
|
||||
video.currentTime = event.target.result.currentTime;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user