mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-01-12 01:51:26 +00:00
fix: chapters not capitalized in video player
This commit is contained in:
parent
313be6bfd1
commit
bd5aa6652d
5 changed files with 8 additions and 8 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ui",
|
||||
"version": "6.4.108",
|
||||
"version": "6.4.109",
|
||||
"license": "BUSL-1.1",
|
||||
"private": true,
|
||||
"packageManager": "pnpm@9.15.5",
|
||||
|
|
|
|||
|
|
@ -20,11 +20,11 @@
|
|||
REPEATING: 'Re-Watching'
|
||||
}
|
||||
|
||||
let status = { value: list(media) ?? 'CURRENT', label: STATUS_LABELS[list(media) ?? 'CURRENT'] }
|
||||
let score = { value: Number(_score(media) ?? 0), label: '' + (_score(media) ?? 0) }
|
||||
$: status = { value: list(media) ?? 'CURRENT', label: STATUS_LABELS[list(media) ?? 'CURRENT'] }
|
||||
$: score = { value: Number(_score(media) ?? 0), label: '' + (_score(media) ?? 0) }
|
||||
|
||||
let progress = _progress(media) ?? 0
|
||||
let repeat = _repeat(media) ?? 0
|
||||
$: progress = _progress(media) ?? 0
|
||||
$: repeat = _repeat(media) ?? 0
|
||||
|
||||
function deleteEntry () {
|
||||
authAggregator.delete(media)
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@
|
|||
{#each chapters as { text, start }, i (i)}
|
||||
<Tree.Item on:click={() => { seekTo(start); open = false }}>
|
||||
<div class='flex justify-between w-full pr-2'>
|
||||
<span>{text || '?'}</span>
|
||||
<span class='capitalize'>{text || '?'}</span>
|
||||
<span class='text-muted-foreground'>{toTS(start || 0)}</span>
|
||||
</div>
|
||||
</Tree.Item>
|
||||
|
|
|
|||
|
|
@ -921,7 +921,7 @@
|
|||
Skip {currentSkippable}
|
||||
</Button>
|
||||
{/if}
|
||||
<div class='text-[rgba(217,217,217,0.6)] text-sm leading-none font-light line-clamp-1'>{getChapterTitle(seeking ? seekPercent * safeduration / 100 : currentTime, chapters) || ''}</div>
|
||||
<div class='text-[rgba(217,217,217,0.6)] text-sm leading-none font-light line-clamp-1 capitalize'>{getChapterTitle(seeking ? seekPercent * safeduration / 100 : currentTime, chapters) || ''}</div>
|
||||
<div class='ml-auto self-end text-sm leading-none font-light text-nowrap'>{toTS(seeking ? seekPercent * safeduration / 100 : currentTime)} / {toTS(safeduration)}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ export const extensions = new class Extensions {
|
|||
const library = await native.library()
|
||||
const entry = library.find(lib => lib.mediaID === media.id && lib.episode === episode)
|
||||
if (entry) {
|
||||
results.push({ accuracy: 'high', date: new Date(entry.date), downloads: 0, hash: entry.hash, extension: new Set(['local']), leechers: 0, link: entry.hash, seeders: 0, size: entry.size, title: entry.name ?? entry.hash, type: entry.files > 1 ? 'batch' : undefined, parseObject: {} as unknown as AnitomyResult })
|
||||
results.push({ accuracy: 'medium', date: new Date(entry.date), downloads: 0, hash: entry.hash, extension: new Set(['local']), leechers: 0, link: entry.hash, seeders: 0, size: entry.size, title: entry.name ?? entry.hash, type: entry.files > 1 ? 'batch' : undefined, parseObject: {} as unknown as AnitomyResult })
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue