diff --git a/web/i18n/en/button.json b/web/i18n/en/button.json index 4ef169ae..849ac98d 100644 --- a/web/i18n/en/button.json +++ b/web/i18n/en/button.json @@ -13,5 +13,7 @@ "star": "star", "follow": "follow", "save": "save", - "export": "export" + "export": "export", + "yes": "yes", + "no": "no" } diff --git a/web/i18n/en/dialog.json b/web/i18n/en/dialog.json index 43fb622c..12b3652d 100644 --- a/web/i18n/en/dialog.json +++ b/web/i18n/en/dialog.json @@ -17,5 +17,8 @@ "api.override.title": "processing instance override", "api.override.body": "{{ value }} is now the processing instance. if you don't trust it, press \"cancel\" and it'll be ignored.\n\nyou can change your choice later in processing settings.", - "safety.custom_instance.body": "custom instances can potentially pose privacy & safety risks.\n\nbad instances can:\n1. redirect you away from cobalt and try to scam you.\n2. log all information about your requests, store it forever, and use it to track you.\n3. serve you malicious files (such as malware).\n4. force you to watch ads, or make you pay for downloading.\n\nafter this point, we can't protect you. please be mindful of what instances to use and always trust your gut. if anything feels off, come back to this page, reset the custom instance, and report it to us on github." + "safety.custom_instance.body": "custom instances can potentially pose privacy & safety risks.\n\nbad instances can:\n1. redirect you away from cobalt and try to scam you.\n2. log all information about your requests, store it forever, and use it to track you.\n3. serve you malicious files (such as malware).\n4. force you to watch ads, or make you pay for downloading.\n\nafter this point, we can't protect you. please be mindful of what instances to use and always trust your gut. if anything feels off, come back to this page, reset the custom instance, and report it to us on github.", + + "processing.ongoing": "cobalt is currently processing media in this tab. going away will abort it. are you sure you want to do this?", + "processing.title.ongoing": "processing will be cancelled" } diff --git a/web/src/lib/libav.ts b/web/src/lib/libav.ts index 26cd7f29..93ad930a 100644 --- a/web/src/lib/libav.ts +++ b/web/src/lib/libav.ts @@ -24,6 +24,13 @@ export default class LibAVWrapper { } } + async terminate() { + if (this.libav) { + const libav = await this.libav; + libav.terminate(); + } + } + async probe(blob: Blob) { if (!this.libav) throw new Error("LibAV wasn't initialized"); const libav = await this.libav; @@ -173,7 +180,7 @@ export default class LibAVWrapper { await libav.unlink(outputName); await libav.unlink('progress.txt'); await libav.unlinkreadaheadfile("input"); - } catch {} + } catch { /* catch & ignore */ } } } diff --git a/web/src/routes/remux/+page.svelte b/web/src/routes/remux/+page.svelte index b3360c79..7c2e3687 100644 --- a/web/src/routes/remux/+page.svelte +++ b/web/src/routes/remux/+page.svelte @@ -1,10 +1,8 @@