diff --git a/src/app.d.ts b/src/app.d.ts index 8e5623a..fe99225 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -43,6 +43,7 @@ export interface Native { setActionHandler: (action: MediaSessionAction | 'enterpictureinpicture', handler: MediaSessionActionHandler | null) => void checkAvailableSpace: (_?: unknown) => Promise checkIncomingConnections: (_?: unknown) => Promise + updatePeerCounts: (hashes: string[]) => Promise> isApp: boolean } diff --git a/src/lib/components/SearchModal.svelte b/src/lib/components/SearchModal.svelte index fe2374a..dadad8e 100644 --- a/src/lib/components/SearchModal.svelte +++ b/src/lib/components/SearchModal.svelte @@ -4,7 +4,7 @@ import * as Dialog from '$lib/components/ui/dialog' import { Input } from './ui/input' import { MagnifyingGlass } from 'svelte-radix' - import { settings } from '$lib/modules/settings' + import { settings, videoResolutions } from '$lib/modules/settings' import { SingleCombo } from './ui/combobox' import { title, type Media } from '$lib/modules/anilist' import type { AnitomyResult } from 'anitomyscript' @@ -13,13 +13,6 @@ import { BadgeCheck, Database } from 'lucide-svelte' import type { TorrentResult } from 'hayase-extensions' - const resolutions = { - 1080: '1080p', - 720: '720p', - 480: '480p', - '': 'Any' - } - const termMapping: Record = {} termMapping['5.1'] = termMapping['5.1CH'] = { text: '5.1', color: '#f67255' } termMapping['TRUEHD5.1'] = { text: 'TrueHD 5.1', color: '#f67255' } @@ -68,10 +61,11 @@ +
@@ -155,7 +157,7 @@
Resolution - +
-