Fix history cache, show percent watched in web app
This commit is contained in:
1 parent
e9c2ab9f76
commit
f681a7024c
4 files changed
+14
-4
No files matched your search
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
- Fix cache issue for watch history
|
||||
- Video progress not showing in web app
|
||||
|
||||
## [0.38.0] - 2025-05-19
|
||||
|
||||
### Added
|
||||
|
||||
-4
@@ -219,10 +219,6 @@ namespace Http
|
||||
|
||||
response.Json(result.feeds[0])
|
||||
|
||||
if result.DoesExist("cache-control")
|
||||
response.headers["cache-control"] = result["cache-control"]
|
||||
end if
|
||||
|
||||
return true
|
||||
end function
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
export let lengthText: string | undefined = undefined;
|
||||
export let liveNow: boolean = undefined;
|
||||
export let lines: string[] | undefined = undefined;
|
||||
export let percentDurationWatched: number | undefined = undefined;
|
||||
|
||||
// svelte-ignore unused-export-let
|
||||
export let type: string = undefined;
|
||||
@@ -207,6 +208,7 @@
|
||||
bind:lengthText
|
||||
bind:viewCount
|
||||
bind:invidiousInstance
|
||||
bind:percentDurationWatched
|
||||
/>
|
||||
<div class="card-body">
|
||||
<h3 class="card-title text-base line-clamp-2 min-h-12">{title || ""}</h3>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
export let viewCount: number | undefined = undefined;
|
||||
export let isUpcoming: boolean | undefined = undefined;
|
||||
export let premiereTimestamp: number | undefined = undefined;
|
||||
export let percentDurationWatched: number | undefined = undefined;
|
||||
|
||||
export let invidiousInstance;
|
||||
|
||||
@@ -92,4 +93,10 @@
|
||||
{getFormattedTime(lengthText, lengthSeconds)}
|
||||
</div>
|
||||
{/if}
|
||||
{#if percentDurationWatched}
|
||||
<div
|
||||
class="absolute left-0 bottom-0 h-1 bg-red-600 rounded-box"
|
||||
style="width: {Math.min(percentDurationWatched, 100)}%;"
|
||||
></div>
|
||||
{/if}
|
||||
</figure>
|
||||
Reference in new issue
Block a user