+
@@ -588,11 +588,11 @@
- {fastPrettyBits($torrentstats.down)}/s
+ {fastPrettyBits($torrentstats.down * 8)}/s
- {fastPrettyBits($torrentstats.up)}/s
+ {fastPrettyBits($torrentstats.up * 8)}/s
{#if seeking}
diff --git a/src/lib/components/ui/player/seekbar.svelte b/src/lib/components/ui/player/seekbar.svelte
index d582d50..c0803e4 100644
--- a/src/lib/components/ui/player/seekbar.svelte
+++ b/src/lib/components/ui/player/seekbar.svelte
@@ -69,6 +69,8 @@
}
}
+ if (!barSegments.length) barSegments.push({ size: 100, text: '', offset: 0, scale: 100 })
+
return barSegments
}
// seeking
diff --git a/src/lib/modules/auth/client.ts b/src/lib/modules/auth/client.ts
index 040bb55..8186441 100644
--- a/src/lib/modules/auth/client.ts
+++ b/src/lib/modules/auth/client.ts
@@ -82,7 +82,7 @@ export default new class AuthAggregator {
if (totalEps < progress) return // woah, bad data from resolver?!
const currentProgress = media.mediaListEntry?.progress ?? 0
- if (currentProgress <= progress) return
+ if (currentProgress >= progress) return
const status =
totalEps === progress
diff --git a/src/lib/modules/irc.ts b/src/lib/modules/irc.ts
index 7c8072e..3089d43 100644
--- a/src/lib/modules/irc.ts
+++ b/src/lib/modules/irc.ts
@@ -7,6 +7,9 @@ import { decryptMessage, encryptMessage } from './crypt'
import type IrcChannel from '@thaunknown/web-irc/channel'
import type { ChatMessage, ChatUser } from '$lib/components/ui/chat'
+
+import { dev } from '$app/environment'
+
export interface IRCUser { nick: string, ident: string, hostname: string, modes: string[], tags: object }
export interface PrivMessage {
from_server: boolean
@@ -110,7 +113,7 @@ export default class MessageClient extends EventEmitter {
gecos: 'https://kiwiirc.com/',
encoding: 'utf8',
auto_reconnect: true,
- transport: createChannelConstructor('http://do-e.clients.kiwiirc.com/webirc/kiwiirc/', '', '1') // this people are dumb enough to not refresh the ssl cert so don't use https
+ transport: createChannelConstructor(`http${dev ? '' : 's'}://do-e.clients.kiwiirc.com/webirc/kiwiirc/`, '', '1') // this people are dumb enough to not refresh the ssl cert so don't use https
})
})
diff --git a/src/lib/modules/settings/defaults.ts b/src/lib/modules/settings/defaults.ts
index 6e513aa..92ddd62 100644
--- a/src/lib/modules/settings/defaults.ts
+++ b/src/lib/modules/settings/defaults.ts
@@ -32,7 +32,7 @@ export default {
showDetailsInRPC: true,
torrentPath: '',
angle: 'default' as 'default' | 'd3d11'| 'd3d9' | 'warp' | 'gl' | 'gles' | 'swiftshader' | 'vulkan' | 'metal',
- idleAnimation: 'fancy' as 'fancy' | 'fast' | 'off',
+ idleAnimation: 'fast' as 'fancy' | 'fast' | 'off',
enableExternal: false,
playerPath: '',
playerSeek: 2,
diff --git a/src/lib/modules/settings/util.ts b/src/lib/modules/settings/util.ts
index 3044ac3..acdf694 100644
--- a/src/lib/modules/settings/util.ts
+++ b/src/lib/modules/settings/util.ts
@@ -32,7 +32,7 @@ export const languageCodes = {
per: 'Persian',
mal: 'Malayalam',
'': 'None'
-}
+} as const
export const subtitleResolutions = {
'0': 'None',
@@ -40,7 +40,7 @@ export const subtitleResolutions = {
'1080': '1080p',
'720': '720p',
'480': '480p'
-}
+} as const
export const videoResolutions = {
'2160': '2160p',
@@ -48,10 +48,10 @@ export const videoResolutions = {
'720': '720p',
'480': '480p',
'': 'Any'
-}
+} as const
export const lookupPreferences = {
quality: 'Quality',
size: 'Size',
seeders: 'Availability'
-}
+} as const
diff --git a/src/routes/app/client/+page.svelte b/src/routes/app/client/+page.svelte
index 3b02f61..bceca6a 100644
--- a/src/routes/app/client/+page.svelte
+++ b/src/routes/app/client/+page.svelte
@@ -29,9 +29,9 @@
{(progress * 100).toFixed(1)}%
{fastPrettyBytes(size)}
{fastPrettyBytes(size * progress)}
-
{fastPrettyBits(down)}/s
-
{fastPrettyBits(up)}/s
-
{_eta(new Date(Date.now() + eta * 1000))}
+
{fastPrettyBits(down * 8)}/s
+
{fastPrettyBits(up * 8)}/s
+
{_eta(new Date(Date.now() + eta)) ?? 'Done'}
{seeders}/{peers}
{leechers}/{peers}