Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

fix(courses): friendly update-plugin error when commands are missing; macOS Gatekeeper note in release notes (#193, #186)

tonhowtf55641713aa1b
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index a3d06e84..0baf69a4 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -91,6 +91,20 @@ jobs:
**Easier alternative**: download the `.deb` instead — works out of the
box on Debian 12+ and Ubuntu 22.04+.
+
+ ---
+
+ ### macOS users — "OmniGet is damaged and can't be opened"
+
+ The app is not notarized with Apple yet, so Gatekeeper quarantines it.
+ After moving the app to `/Applications`, run:
+
+ ```bash
+ xattr -cr /Applications/omniget.app
+ ```
+
+ Then open it normally. If it still refuses, allow it under
+ **System Settings → Privacy & Security**.
releaseDraft: true
prerelease: false
includeUpdaterJson: false
diff --git a/src/routes/courses/+page.svelte b/src/routes/courses/+page.svelte
index 5967e86a..cdacea7f 100644
--- a/src/routes/courses/+page.svelte
+++ b/src/routes/courses/+page.svelte
@@ -107,6 +107,10 @@
if (!usingFallback) {
for (const platform of platforms) {
authStatus[platform.id] = { checked: false, email: null, error: false };
+ if (!platform.commands?.check_session) {
+ authStatus[platform.id] = { checked: true, email: null, error: true };
+ continue;
+ }
pluginInvoke<string>("courses", platform.commands.check_session)
.then((email) => {
console.log(`[courses] ${platform.id} session:`, email);
diff --git a/src/routes/courses/[platform]/+page.svelte b/src/routes/courses/[platform]/+page.svelte
index e0266d81..af53b293 100644
--- a/src/routes/courses/[platform]/+page.svelte
+++ b/src/routes/courses/[platform]/+page.svelte
@@ -380,7 +380,11 @@
showToast("info", $t("toast.download_preparing"));
} catch (e: any) {
const msg = typeof e === "string" ? e : e.message ?? $t("common.error");
- showToast("error", msg);
+ if (msg.includes("Unknown command") || msg.includes("not found") || msg.includes("No handler")) {
+ showToast("error", $t("courses.update_plugin_for_platform"));
+ } else {
+ showToast("error", msg);
+ }
}
}