diff --git a/res/static/img/slow_down.xcf b/res/static/img/slow_down.xcf new file mode 100644 index 0000000..8e6aff3 Binary files /dev/null and b/res/static/img/slow_down.xcf differ diff --git a/svelte/src/file_viewer/viewers/FilePreview.svelte b/svelte/src/file_viewer/viewers/FilePreview.svelte index 8386497..2e2d2bd 100644 --- a/svelte/src/file_viewer/viewers/FilePreview.svelte +++ b/svelte/src/file_viewer/viewers/FilePreview.svelte @@ -27,7 +27,7 @@ export const set_file = async file => { file.availability === "ip_download_limited_captcha_required" ) { viewer_type = "rate_limit" - } else if (file.download_speed_limit > 0) { + } else if (file.download_speed_limit > 0 && file.download_speed_limit <= 1<<20) { viewer_type = "speed_limit" } else { viewer_type = file_type(file) diff --git a/svelte/src/file_viewer/viewers/SpeedLimit.svelte b/svelte/src/file_viewer/viewers/SpeedLimit.svelte index 5503a71..8d9668a 100644 --- a/svelte/src/file_viewer/viewers/SpeedLimit.svelte +++ b/svelte/src/file_viewer/viewers/SpeedLimit.svelte @@ -14,7 +14,7 @@ let file = { let limits = { download_limit: 1000, download_limit_used: 0, - transfer_limit: 50e9, + transfer_limit: 10e9, transfer_limit_used: 0, } onMount(async () => { @@ -34,11 +34,11 @@ onMount(async () => { Yea, I'm gonna need you to slow down a bit

- Yea, so pixeldrain's free tier is supported by advertisements. And - there's only so much that you can do with the budget those ads provide - (spoiler: it's not a lot). {formatDataVolume(limits.transfer_limit, 3)} - every 48 hours is about the most I can give away for free, according to - our records you have already downloaded + Pixeldrain's free tier is supported by advertisements. There's only so + much that you can do with the budget those ads provide (spoiler: it's + not a lot). {formatDataVolume(limits.transfer_limit, 3)} per day is + about the most I can give away for free, and according to our records + you have already downloaded {formatDataVolume(limits.transfer_limit_used, 3)}.

@@ -48,10 +48,11 @@ onMount(async () => { a few options: