misterdownloadmanager: The ultimate open-source, clean-room download manager written from scratch in pure Rust for Windows, Mac, and Linux
Rust bittorrent-clientdebriddownload-acceleratordownload-managerdownloadmanagereguifile-downloadergallery-dlidmidm-alternativeinternet-download-managerm3u8-downloadermagnetplaylist-downloaderreal-debridrusttorrent-clientvideo-downloaderyoutube-downloaderyt-dlp
The add-on asks for a newer MDM only when a whole release separates them (#410)
Ahmed Nefzaoui8a87d4794f1e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f6b1b767..7134739d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,7 @@ Each release's notes on GitHub come from its section here (`## [X.Y.Z]`, see### Fixed+- The extension no longer asks you to update MDM when only a bug-fix version separates them, which it did even when there was no update to get.- **Download video** shows a plain file's size, from its server, instead of "size unknown" ([#320](https://github.com/anefzaoui/misterdownloadmanager/issues/320)).- **Download video** finds the video on pages whose player loads a `.mpd` or `.m3u8` address that answers something else first, as SVT Play does ([#377](https://github.com/anefzaoui/misterdownloadmanager/issues/377)).- RSS feeds: the boxes on the **Download rules** tab (**Episodes**, **Must contain** and the others) keep the keyboard while you type, instead of losing it after each key ([#353](https://github.com/anefzaoui/misterdownloadmanager/issues/353)).diff --git a/ROADMAP.md b/ROADMAP.mdindex 34ebe2a2..955de2ca 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -130,6 +130,8 @@ Everything below ships together, in version 0.5.0.- ✅ Far more file types taken by default: AI models and datasets, 3D and CAD, design and cameraRAW, ebooks, Office, disk images and split archives; a list never edited gains them([#382](https://github.com/anefzaoui/misterdownloadmanager/issues/382))+- ✅ The extension asks for a newer MDM only when a whole release separates them, not over a+ bug-fix version- ✅ Add URL: a YouTube playlist opens the video window; Dailymotion's embedded player is lookedup as the video's own page ([#338](https://github.com/anefzaoui/misterdownloadmanager/issues/338),[#359](https://github.com/anefzaoui/misterdownloadmanager/issues/359))diff --git a/docs/browser-help.md b/docs/browser-help.mdindex 0bf0bb68..6e34f3d4 100644--- a/docs/browser-help.md+++ b/docs/browser-help.md@@ -54,6 +54,8 @@ MDM's helper serves only its own extension. The browser says this copy isn't oneDownloads still work, but some of the extension's features need a newer MDM. Update it with **Help → Check for updates...** in MDM.+If MDM says it's up to date, there's nothing for you to do. The extension updates by itself through its store and can get ahead of the app for a while. Everything keeps working, and the message goes away with the next version of MDM.+## A download's details were too large {#too-large}A download carries its site's cookies (and a form's data) to MDM. A few sites set so many that together they exceed what MDM accepts from the browser (1 MB). The browser kept this one. Signing out and back in to the site usually trims them.diff --git a/extension/background.js b/extension/background.jsindex 0d3af933..434d43e6 100644--- a/extension/background.js+++ b/extension/background.js@@ -163,10 +163,12 @@ async function remoteOff() {}// a < b, both "x.y.z".+// Is version `a` an older release than `b`? Only the first two numbers count: the store can publish+// a bug-fix add-on before its app is out, and nothing it offers needs that app.function older(a, b) {const pa = String(a).split(/[.-]/).map(Number);const pb = String(b).split(/[.-]/).map(Number);- for (let i = 0; i < 3; i++) {+ for (let i = 0; i < 2; i++) {if ((pa[i] || 0) !== (pb[i] || 0)) return (pa[i] || 0) < (pb[i] || 0);}return false;diff --git a/tools/extension/test.mjs b/tools/extension/test.mjsindex da0a691a..1a1e486e 100644--- a/tools/extension/test.mjs+++ b/tools/extension/test.mjs@@ -516,6 +516,16 @@ const ok = (what) => {ok("an older app: update-app");}+// Only a bug-fix version apart (the store publishing the add-on first): no nudge, no update exists.+{+ const { api, store, listeners } = fakeApi({ firefox: false, rules: { version: "0.2.4" } });+ load(api, false);+ listeners.startup();+ await settle();+ assert.notEqual(store.status && store.status.why, "update-app");+ ok("a bug-fix version behind: no update-app");+}+// Files the browser would open (a PDF): a session rule makes them downloads, for the listed types// only; none when the app says not to.{