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
Hand-overs from the browser while MDM is hidden: regression test and repro (#145) (#161)
Ahmed Nefzaoui4a8a6f812bc0
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5fe16b39..26d13d80 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -478,8 +478,10 @@ Each release's notes on GitHub come from its section here (`## [X.Y.Z]`, see- Bangla shows Bangladesh's flag instead of India's, in the language picker, on the website andin the README ([#27](https://github.com/anefzaoui/misterdownloadmanager/issues/27)).- MDM closed with an internal error when a window opened while the main window was minimized- or hidden, for example Download File Info for a browser download- ([#22](https://github.com/anefzaoui/misterdownloadmanager/issues/22)). The cause was in egui,+ or hidden in the notification area, for example Download File Info for a download from the+ browser, or Add torrent for a magnet link opened in the browser+ ([#22](https://github.com/anefzaoui/misterdownloadmanager/issues/22),+ [#145](https://github.com/anefzaoui/misterdownloadmanager/issues/145)). The cause was in egui,the toolkit MDM is drawn with ([emilk/egui#8470](https://github.com/emilk/egui/issues/8470)),and is fixed in MDM's copy of it.- **View → Dark Mode support** did nothing on Linux: MDM asked the window system for thediff --git a/ROADMAP.md b/ROADMAP.mdindex 47adc3f3..415ce55d 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -101,8 +101,10 @@ Everything below ships together, in one release.([#28](https://github.com/anefzaoui/misterdownloadmanager/issues/28))- ✅ The extension's Download video menu keeps its highlight inside its edge([#81](https://github.com/anefzaoui/misterdownloadmanager/issues/81))-- ✅ No crash when a window opens while MDM is minimized- ([#22](https://github.com/anefzaoui/misterdownloadmanager/issues/22))+- ✅ No crash when a window opens while MDM is minimized or in the notification area, such as a+ download or a magnet link from the browser+ ([#22](https://github.com/anefzaoui/misterdownloadmanager/issues/22),+ [#145](https://github.com/anefzaoui/misterdownloadmanager/issues/145))- ✅ Long file names stay inside the progress window: the Save to path is shortened in themiddle, in every language ([#62](https://github.com/anefzaoui/misterdownloadmanager/issues/62))- ✅ Every button translated: Download complete's Open with... no longer stays in Englishdiff --git a/crates/app/tests/handoff_hidden.rs b/crates/app/tests/handoff_hidden.rsnew file mode 100644index 00000000..c5495c58--- /dev/null+++ b/crates/app/tests/handoff_hidden.rs@@ -0,0 +1,119 @@+//! Issue #145: what the browser hands over while the main window is hidden in the notification+//! area. 0.2.4 closed on it ("egui backend is implemented incorrectly - the user callback was+//! never called"): Add torrent or Download File Info, opened in a pass that ran while no window+//! was being drawn, had no event loop to create its window with. The real app, off the screens+//! (MDM_OFFSCREEN), with a data folder of its own: hidden with `/show tray`, then handed a magnet+//! link (as Windows starts the program for one) and a download (`/d`, the channel the browser's+//! host uses). Both dialogs must open and the app must keep running.+//!+//! It opens windows, which needs OpenGL or Direct3D, so it runs on request:+//! `cargo test -p mdm-app --test handoff_hidden -- --ignored`. tools/lab/magnet-hidden.ps1 plays+//! the same on a release build, through the browser's native host too, in more window states.++use std::path::Path;+use std::process::{Child, Command};+use std::time::{Duration, Instant};++const APP: &str = env!("CARGO_BIN_EXE_misterdownloadmanager");++/// The app's log so far (every file of `logs/`).+fn log(data: &Path) -> String {+ let mut all = String::new();+ if let Ok(dir) = std::fs::read_dir(data.join("logs")) {+ for f in dir.flatten() {+ all += &std::fs::read_to_string(f.path()).unwrap_or_default();+ }+ }+ all+}++/// Wait until the log has `line`, failing if the app quits first or `wait` passes.+fn wait_for(app: &mut Child, data: &Path, line: &str, wait: Duration) {+ let until = Instant::now() + wait;+ loop {+ let text = log(data);+ assert!(!text.contains("panic"), "the app panicked:\n{text}");+ if text.contains(line) {+ return;+ }+ if let Some(status) = app.try_wait().unwrap() {+ panic!("the app closed ({status}) before '{line}':\n{text}");+ }+ assert!(+ Instant::now() < until,+ "no '{line}' after {wait:?}:\n{text}"+ );+ std::thread::sleep(Duration::from_millis(200));+ }+}++/// A second launch with `args`: it hands them to the running app and quits.+fn second_launch(data: &Path, args: &[&str]) {+ let status = Command::new(APP)+ .args(args)+ .env("MDM_DATA_DIR", data)+ .env("MDM_OFFSCREEN", "1")+ .status()+ .unwrap();+ assert!(status.success(), "second launch {args:?}: {status}");+}++#[test]+#[ignore = "opens the app's windows (off-screen): needs OpenGL or Direct3D; run with --ignored"]+fn browser_hand_overs_while_hidden_in_the_tray() {+ let dir = tempfile::tempdir().unwrap();+ let data = dir.path();+ // No update check, no first-start questions; the torrent engine stays on this computer+ // (the magnet names no tracker, so its look-up just waits).+ let settings = serde_json::json!({+ "update_check": false, "helpers_asked": true, "language_asked": true,+ "extension_never_ask": true,+ "torrent_dht": false, "torrent_lsd": false, "torrent_upnp": false,+ "torrent_incoming": false,+ });+ std::fs::write(+ data.join("downloads.json"),+ serde_json::json!({ "next_id": 1, "items": [], "version": 2, "settings": settings })+ .to_string(),+ )+ .unwrap();+ let mut app = Command::new(APP)+ .env("MDM_DATA_DIR", data)+ .env("MDM_OFFSCREEN", "1")+ .spawn()+ .unwrap();+ let wait = Duration::from_secs(60);+ let result = std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| {+ wait_for(&mut app, data, "window opened: main", wait);++ second_launch(data, &["/show", "tray"]);+ std::thread::sleep(Duration::from_millis(1500));+ let magnet = "magnet:?xt=urn:btih:5b4f0c3a9e1d27f86c0b3a4e9d1f2a7c6e8b0d14&dn=MDM%20test";+ second_launch(data, &[magnet]);+ wait_for(&mut app, data, "window opened: add-torrent", wait);++ second_launch(data, &["/show", "tray"]);+ std::thread::sleep(Duration::from_millis(1500));+ // Port 9 on this computer: nothing answers, and nothing leaves it.+ second_launch(data, &["/d", "http://127.0.0.1:9/mdm-test-145.zip"]);+ wait_for(&mut app, data, "window opened: file-info", wait);++ // Still running a moment later (the dialogs drew their first frames).+ std::thread::sleep(Duration::from_secs(2));+ wait_for(&mut app, data, "window opened: file-info", wait);+ }));+ let _ = Command::new(APP)+ .arg("/exit")+ .env("MDM_DATA_DIR", data)+ .env("MDM_OFFSCREEN", "1")+ .status();+ let until = Instant::now() + Duration::from_secs(15);+ while app.try_wait().unwrap().is_none() && Instant::now() < until {+ std::thread::sleep(Duration::from_millis(200));+ }+ let _ = app.kill();+ let _ = app.wait();+ if let Err(e) = result {+ std::panic::resume_unwind(e);+ }+}diff --git a/i18n/site/ar.json b/i18n/site/ar.jsonindex a2457752..b0cd1cc8 100644--- a/i18n/site/ar.json+++ b/i18n/site/ar.json@@ -862,6 +862,10 @@"source": "Yes. MDM accepts IDM's familiar command-line switches, comes with misterdownloadmanager-cli for downloads from a terminal, and has a local, token-protected…","text": "نعم. يقبل MDM مفاتيح سطر الأوامر المألوفة لـ IDM، ويأتي مع misterdownloadmanager-cli للتنزيلات من الطرفية، ولديه واجهة برمجة تطبيقات (API) أتمتة محلية محمية برمز مميز…"},+ "15e53ab6d7a4fe85": {+ "source": "A row with a <x1/> line above it was translated by machine. When you have checked it (and corrected it if needed), delete that <x2/> line.",+ "text": "الصف الذي يحتوي على سطر <x1/> فوقه تمت ترجمته بواسطة الآلة. عندما تراجعه (وتصححه إذا لزم الأمر)، احذف سطر <x2/> هذا."+ },"1610e7aea9f29651": {"source": "a <x1/> file or <x2/> link","text": "ملف <x1/> أو رابط <x2/>"@@ -1046,6 +1050,10 @@"source": "<g1>5.5 s</g1><g2></g2>","text": "<g1>5.5 ثانية</g1><g2></g2>"},+ "1ad91cd214e9ba4e": {+ "source": "On Windows the torrent engine can't bind to an adapter yet. So torrents don't start while one is chosen (\"torrents can't go through a chosen network adapter on Windows yet\"), rather than going around it. Tracker names are still looked up by the system's DNS.",+ "text": "على نظام Windows، لا يمكن لمحرك التورنت الربط بمحول بعد. لذلك لا تبدأ التورنتات بينما يتم اختيار واحد (\"لا يمكن للتورنتات المرور عبر محول شبكة مختار على Windows بعد\")، بدلا من تجاوزها. لا تزال أسماء المتتبعات تبحث بواسطة DNS الخاص بالنظام."+ },"1ae1f6b28d64deef": {"source": "The browser extension comes with the app and as its own download for <g1>Chrome, Edge, Brave, Opera and Vivaldi</g1> and <g2>Firefox</g2>. Store listings are on the way. Every file is built from the public source by GitHub Actions and listed with its SHA-256 checksum.","text": "يأتي ملحق المتصفح مع التطبيق وكتنزيل منفصل لمتصفحات <g1>Chrome و Edge و Brave و Opera و Vivaldi</g1> و <g2>Firefox</g2>. قوائم المتاجر قيد الإعداد. يتم بناء كل ملف من المصدر العام بواسطة GitHub Actions ويتم إدراجه مع مجموع التحقق SHA-256 الخاص به."@@ -4906,6 +4914,10 @@"source": "Firefox 140 or later is needed.","text": "يلزم Firefox 140 أو أحدث."},+ "7d9cbd5bf6ab33e4": {+ "source": "<g1>Options → Proxy / Socks → Network adapter</g1> holds MDM's connections to one adapter, usually a VPN's (<g2>Options</g2>). On Linux and macOS the torrent engine binds every socket to it: peers, trackers, the DHT and its listening port. UPnP and local peer discovery are turned off then, because they talk to the local network rather than through the adapter. If the adapter goes away, the engine stops, and it starts again through the adapter when it's back.",+ "text": "تبقي <g1>الخيارات ← الوكيل / SOCKS ← محول الشبكة</g1> اتصالات MDM على محول واحد، عادة ما يكون محول VPN (<g2>الخيارات</g2>). على نظامي Linux و macOS، يربط محرك التورنت كل مقبس به: الأقران، المتتبعات، DHT ومنفذ الاستماع الخاص به. يتم إيقاف تشغيل UPnP واكتشاف الأقران المحليين حينها، لأنهما يتحدثان إلى الشبكة المحلية بدلا من المرور عبر المحول. إذا اختفى المحول، يتوقف المحرك، ويبدأ مرة أخرى عبر المحول عند عودته."+ },"7db9ed501785d447": {"source": "<g1>Quality</g1> applies to every video: <g2>Best quality</g2>, <g3>Up to</g3> a height (each video at that height, or the nearest below it), <g4>Audio only, original</g4>, <g5>Audio only MP3</g5>, <g6>Audio only OPUS</g6> or <g7>Audio only FLAC</g7>. Without ffmpeg, only the qualities that come with their sound are offered, and no MP3, Opus or FLAC.","text": "<g1>الجودة</g1> تنطبق على كل فيديو: <g2>أفضل جودة</g2>، <g3>حتى</g3> ارتفاع معين (كل فيديو بهذا الارتفاع، أو الأقرب تحته)، <g4>صوت فقط، أصلي</g4>، <g5>صوت فقط MP3</g5>، <g6>صوت فقط OPUS</g6> أو <g7>صوت فقط FLAC</g7>. بدون ffmpeg، لا تعرض إلا الجودات التي تأتي مع صوتها، ولا يتوفر MP3 أو Opus أو FLAC."@@ -6714,6 +6726,10 @@"source": "<g1>Category</g1> — chosen from the file's type (Compressed, Documents, Music, Programs, Video or General). Each category has its own folder. <g2>+</g2> beside it makes a new category.","text": "<g1>الفئة</g1> — يتم اختيارها من نوع الملف (مضغوط، مستندات، موسيقى، برامج، فيديو أو عام). كل فئة لها مجلد خاص بها. <g2>+</g2> بجانبها ينشئ فئة جديدة."},+ "ad45e0dd35085a55": {+ "source": "<g1>Network adapter</g1> — <g2>Any (the system chooses)</g2> is the default. Pick an adapter, usually your VPN's, and every connection MDM opens goes out through it, or not at all. That covers downloads, FTP, the DNS you chose, MDM's own downloads and the update check. It works as a kill switch: when the adapter disconnects, or the VPN is switched off, nothing goes out through your normal connection. Running downloads stop with \"… is not connected\" and start again when the adapter is back. The line under the list shows the adapter's address, or that it isn't connected.",+ "text": "<g1>محول الشبكة</g1> — <g2>أي (يختاره النظام)</g2> هو الافتراضي. اختر محولا، وعادة ما يكون محول VPN الخاص بك، وستمر كل الاتصالات التي يفتحها MDM من خلاله، أو لن تمر على الإطلاق. وهذا يشمل التنزيلات، وFTP، وDNS الذي اخترته، وتنزيلات MDM الخاصة، وفحص التحديثات. يعمل هذا كمفتاح إيقاف: عندما ينقطع المحول، أو يتم إيقاف تشغيل VPN، لا يخرج أي شيء عبر اتصالك العادي. تتوقف التنزيلات الجارية مع رسالة \"… غير متصل\" وتبدأ مرة أخرى عندما يعود المحول. يعرض السطر الموجود أسفل القائمة عنوان المحول، أو أنه غير متصل."+ },"ad59a2dd8a67146e": {"source": "Click <g1>Find</g1>. The first match is selected.","text": "انقر على <g1>بحث</g1>. سيتم تحديد أول تطابق."diff --git a/i18n/site/bn.json b/i18n/site/bn.jsonindex c573a7f8..cade2ef3 100644--- a/i18n/site/bn.json+++ b/i18n/site/bn.json@@ -862,6 +862,10 @@"source": "Yes. MDM accepts IDM's familiar command-line switches, comes with misterdownloadmanager-cli for downloads from a terminal, and has a local, token-protected…","text": "হ্যাঁ। MDM, IDM-এর পরিচিত কমান্ড-লাইন সুইচগুলি গ্রহণ করে, টার্মিনাল থেকে ডাউনলোডের জন্য misterdownloadmanager-cli সহ আসে এবং একটি স্থানীয়, টোকেন-সুরক্ষিত…"},+ "15e53ab6d7a4fe85": {+ "source": "A row with a <x1/> line above it was translated by machine. When you have checked it (and corrected it if needed), delete that <x2/> line.",+ "text": "যে সারির উপরে একটি <x1/> লাইন আছে, সেটি মেশিন দ্বারা অনুবাদ করা হয়েছে। আপনি এটি পরীক্ষা করার পর (এবং প্রয়োজন হলে সংশোধন করার পর), সেই <x2/> লাইনটি মুছে দিন।"+ },"1610e7aea9f29651": {"source": "a <x1/> file or <x2/> link","text": "একটি <x1/> ফাইল বা <x2/> লিঙ্ক"@@ -1046,6 +1050,10 @@"source": "<g1>5.5 s</g1><g2></g2>","text": "<g1>5.5 সে</g1><g2></g2>"},+ "1ad91cd214e9ba4e": {+ "source": "On Windows the torrent engine can't bind to an adapter yet. So torrents don't start while one is chosen (\"torrents can't go through a chosen network adapter on Windows yet\"), rather than going around it. Tracker names are still looked up by the system's DNS.",+ "text": "Windows-এ টরেন্ট ইঞ্জিন এখনও একটি অ্যাডাপ্টারের সাথে আবদ্ধ হতে পারে না। তাই একটি অ্যাডাপ্টার নির্বাচন করা হলে টরেন্টগুলি শুরু হয় না (\"Windows-এ টরেন্টগুলি এখনও নির্বাচিত নেটওয়ার্ক অ্যাডাপ্টারের মাধ্যমে যেতে পারে না\"), বরং এটি এড়িয়ে যায়। ট্র্যাকার নামগুলি এখনও সিস্টেমের DNS দ্বারা দেখা হয়।"+ },"1ae1f6b28d64deef": {"source": "The browser extension comes with the app and as its own download for <g1>Chrome, Edge, Brave, Opera and Vivaldi</g1> and <g2>Firefox</g2>. Store listings are on the way. Every file is built from the public source by GitHub Actions and listed with its SHA-256 checksum.","text": "ব্রাউজার এক্সটেনশনটি অ্যাপের সাথে আসে এবং <g1>Chrome, Edge, Brave, Opera ও Vivaldi</g1> এবং <g2>Firefox</g2>-এর জন্য আলাদাভাবে ডাউনলোড করা যায়। স্টোর লিস্টিং প্রক্রিয়াধীন। প্রতিটি ফাইল GitHub Actions দ্বারা পাবলিক সোর্স থেকে তৈরি করা হয় এবং এর SHA-256 চেকিং সহ তালিকাভুক্ত করা হয়।"@@ -4906,6 +4914,10 @@"source": "Firefox 140 or later is needed.","text": "Firefox 140 বা তার পরের সংস্করণ প্রয়োজন।"},+ "7d9cbd5bf6ab33e4": {+ "source": "<g1>Options → Proxy / Socks → Network adapter</g1> holds MDM's connections to one adapter, usually a VPN's (<g2>Options</g2>). On Linux and macOS the torrent engine binds every socket to it: peers, trackers, the DHT and its listening port. UPnP and local peer discovery are turned off then, because they talk to the local network rather than through the adapter. If the adapter goes away, the engine stops, and it starts again through the adapter when it's back.",+ "text": "<g1>বিকল্প → প্রক্সি / SOCKS → নেটওয়ার্ক অ্যাডাপ্টার</g1> MDM-এর সংযোগগুলিকে একটি অ্যাডাপ্টারের সাথে ধরে রাখে, সাধারণত একটি VPN-এর (<g2>বিকল্প</g2>)। Linux এবং macOS-এ টরেন্ট ইঞ্জিন প্রতিটি সকেটকে এর সাথে আবদ্ধ করে: পিয়ার, ট্র্যাকার, DHT এবং এর লিসেনিং পোর্ট। UPnP এবং স্থানীয় পিয়ার ডিসকভারি তখন বন্ধ হয়ে যায়, কারণ তারা অ্যাডাপ্টারের মাধ্যমে না গিয়ে স্থানীয় নেটওয়ার্কের সাথে কথা বলে। যদি অ্যাডাপ্টারটি চলে যায়, ইঞ্জিন বন্ধ হয়ে যায় এবং এটি ফিরে এলে অ্যাডাপ্টারের মাধ্যমে আবার শুরু হয়।"+ },"7db9ed501785d447": {"source": "<g1>Quality</g1> applies to every video: <g2>Best quality</g2>, <g3>Up to</g3> a height (each video at that height, or the nearest below it), <g4>Audio only, original</g4>, <g5>Audio only MP3</g5>, <g6>Audio only OPUS</g6> or <g7>Audio only FLAC</g7>. Without ffmpeg, only the qualities that come with their sound are offered, and no MP3, Opus or FLAC.","text": "<g1>গুণমান</g1> প্রতিটি ভিডিওর জন্য প্রযোজ্য: <g2>সেরা গুণমান</g2>, একটি নির্দিষ্ট উচ্চতা <g3>পর্যন্ত</g3> (প্রতিটি ভিডিও সেই উচ্চতায়, অথবা তার নিকটতম নিচের উচ্চতায়), <g4>শুধুমাত্র অডিও, আসল</g4>, <g5>শুধুমাত্র অডিও MP3</g5>, <g6>শুধুমাত্র অডিও OPUS</g6> অথবা <g7>শুধুমাত্র অডিও FLAC</g7>। ffmpeg ছাড়া, শুধুমাত্র সেই গুণমানগুলি দেওয়া হয় যেগুলি তাদের শব্দ সহ আসে, এবং কোনো MP3, Opus বা FLAC দেওয়া হয় না।"@@ -6714,6 +6726,10 @@"source": "<g1>Category</g1> — chosen from the file's type (Compressed, Documents, Music, Programs, Video or General). Each category has its own folder. <g2>+</g2> beside it makes a new category.","text": "<g1>শ্রেণী</g1> — ফাইলের প্রকার থেকে বেছে নেওয়া হয় (সংকুচিত, ডকুমেন্টস, সঙ্গীত, প্রোগ্রাম, ভিডিও অথবা সাধারণ)। প্রতিটি শ্রেণীর নিজস্ব ফোল্ডার আছে। এর পাশে <g2>+</g2> একটি নতুন শ্রেণী তৈরি করে।"},+ "ad45e0dd35085a55": {+ "source": "<g1>Network adapter</g1> — <g2>Any (the system chooses)</g2> is the default. Pick an adapter, usually your VPN's, and every connection MDM opens goes out through it, or not at all. That covers downloads, FTP, the DNS you chose, MDM's own downloads and the update check. It works as a kill switch: when the adapter disconnects, or the VPN is switched off, nothing goes out through your normal connection. Running downloads stop with \"… is not connected\" and start again when the adapter is back. The line under the list shows the adapter's address, or that it isn't connected.",+ "text": "<g1>নেটওয়ার্ক অ্যাডাপ্টার</g1> — <g2>যেকোনো (সিস্টেম বেছে নেয়)</g2> হলো ডিফল্ট। একটি অ্যাডাপ্টার বেছে নিন, সাধারণত আপনার VPN-এর, এবং MDM যে সংযোগগুলি খোলে তার প্রতিটি এর মাধ্যমে যাবে, অথবা একেবারেই যাবে না। এটি ডাউনলোড, FTP, আপনার বেছে নেওয়া DNS, MDM-এর নিজস্ব ডাউনলোড এবং আপডেট চেক কভার করে। এটি একটি কিল সুইচের মতো কাজ করে: যখন অ্যাডাপ্টার সংযোগ বিচ্ছিন্ন হয়, বা VPN বন্ধ করা হয়, তখন আপনার স্বাভাবিক সংযোগের মাধ্যমে কিছুই যায় না। চলমান ডাউনলোডগুলি \"… সংযুক্ত নয়\" বার্তা দিয়ে বন্ধ হয়ে যায় এবং অ্যাডাপ্টার ফিরে এলে আবার শুরু হয়। তালিকার নিচের লাইনটি অ্যাডাপ্টারের ঠিকানা দেখায়, অথবা এটি সংযুক্ত নয় তা দেখায়।"+ },"ad59a2dd8a67146e": {"source": "Click <g1>Find</g1>. The first match is selected.","text": "<g1>খুঁজুন</g1> ক্লিক করুন। প্রথম মিলটি নির্বাচিত হবে।"diff --git a/i18n/site/es.json b/i18n/site/es.jsonindex 3ba28c6d..2573484b 100644--- a/i18n/site/es.json+++ b/i18n/site/es.json@@ -862,6 +862,10 @@"source": "Yes. MDM accepts IDM's familiar command-line switches, comes with misterdownloadmanager-cli for downloads from a terminal, and has a local, token-protected…","text": "Sí. MDM acepta los conocidos parámetros de línea de comandos de IDM, incluye misterdownloadmanager-cli para descargas desde un terminal y tiene una API de automatización local protegida por token…"},+ "15e53ab6d7a4fe85": {+ "source": "A row with a <x1/> line above it was translated by machine. When you have checked it (and corrected it if needed), delete that <x2/> line.",+ "text": "Una fila con una línea <x1/> encima fue traducida por máquina. Cuando la haya revisado (y corregido si es necesario), elimine esa línea <x2/>."+ },"1610e7aea9f29651": {"source": "a <x1/> file or <x2/> link","text": "un archivo <x1/> o un enlace <x2/>"@@ -1046,6 +1050,10 @@"source": "<g1>5.5 s</g1><g2></g2>","text": "<g1>5,5 s</g1><g2></g2>"},+ "1ad91cd214e9ba4e": {+ "source": "On Windows the torrent engine can't bind to an adapter yet. So torrents don't start while one is chosen (\"torrents can't go through a chosen network adapter on Windows yet\"), rather than going around it. Tracker names are still looked up by the system's DNS.",+ "text": "En Windows, el motor de torrents aún no puede vincularse a un adaptador. Por lo tanto, los torrents no se inician mientras se elige uno (\"los torrents aún no pueden pasar por un adaptador de red elegido en Windows\"), en lugar de evitarlo. Los nombres de los rastreadores siguen siendo buscados por el DNS del sistema."+ },"1ae1f6b28d64deef": {"source": "The browser extension comes with the app and as its own download for <g1>Chrome, Edge, Brave, Opera and Vivaldi</g1> and <g2>Firefox</g2>. Store listings are on the way. Every file is built from the public source by GitHub Actions and listed with its SHA-256 checksum.","text": "La extensión del navegador viene con la aplicación y como descarga independiente para <g1>Chrome, Edge, Brave, Opera y Vivaldi</g1> y <g2>Firefox</g2>. Los listados en las tiendas están en camino. Cada archivo se construye a partir del código fuente público mediante GitHub Actions y se lista con su suma de comprobación SHA-256."@@ -4906,6 +4914,10 @@"source": "Firefox 140 or later is needed.","text": "Se necesita Firefox 140 o posterior."},+ "7d9cbd5bf6ab33e4": {+ "source": "<g1>Options → Proxy / Socks → Network adapter</g1> holds MDM's connections to one adapter, usually a VPN's (<g2>Options</g2>). On Linux and macOS the torrent engine binds every socket to it: peers, trackers, the DHT and its listening port. UPnP and local peer discovery are turned off then, because they talk to the local network rather than through the adapter. If the adapter goes away, the engine stops, and it starts again through the adapter when it's back.",+ "text": "Las conexiones de MDM se mantienen en un adaptador, normalmente el de una VPN, en <g1>Opciones → Proxy/Socks → Adaptador de red</g1> (<g2>Opciones</g2>). En Linux y macOS, el motor de torrents vincula todos los sockets a él: pares, rastreadores, la DHT y su puerto de escucha. UPnP y el descubrimiento de pares locales se desactivan entonces, porque se comunican con la red local en lugar de a través del adaptador. Si el adaptador desaparece, el motor se detiene y se reinicia a través del adaptador cuando este vuelve."+ },"7db9ed501785d447": {"source": "<g1>Quality</g1> applies to every video: <g2>Best quality</g2>, <g3>Up to</g3> a height (each video at that height, or the nearest below it), <g4>Audio only, original</g4>, <g5>Audio only MP3</g5>, <g6>Audio only OPUS</g6> or <g7>Audio only FLAC</g7>. Without ffmpeg, only the qualities that come with their sound are offered, and no MP3, Opus or FLAC.","text": "<g1>Calidad</g1> se aplica a cada vídeo: <g2>Mejor calidad</g2>, <g3>Hasta</g3> una altura (cada vídeo a esa altura, o la más cercana por debajo), <g4>Solo audio, original</g4>, <g5>Solo audio MP3</g5>, <g6>Solo audio OPUS</g6> o <g7>Solo audio FLAC</g7>. Sin ffmpeg, solo se ofrecen las calidades que vienen con su sonido, y no MP3, Opus o FLAC."@@ -6714,6 +6726,10 @@"source": "<g1>Category</g1> — chosen from the file's type (Compressed, Documents, Music, Programs, Video or General). Each category has its own folder. <g2>+</g2> beside it makes a new category.","text": "<g1>Categoría</g1> — elegida según el tipo de archivo (Comprimido, Documentos, Música, Programas, Vídeo o General). Cada categoría tiene su propia carpeta. El signo <g2>+</g2> al lado crea una nueva categoría."},+ "ad45e0dd35085a55": {+ "source": "<g1>Network adapter</g1> — <g2>Any (the system chooses)</g2> is the default. Pick an adapter, usually your VPN's, and every connection MDM opens goes out through it, or not at all. That covers downloads, FTP, the DNS you chose, MDM's own downloads and the update check. It works as a kill switch: when the adapter disconnects, or the VPN is switched off, nothing goes out through your normal connection. Running downloads stop with \"… is not connected\" and start again when the adapter is back. The line under the list shows the adapter's address, or that it isn't connected.",+ "text": "<g1>Adaptador de red</g1>: <g2>Cualquiera (el sistema elige)</g2> es la opción predeterminada. Elija un adaptador, normalmente el de su VPN, y todas las conexiones que MDM abra saldrán a través de él, o no saldrán en absoluto. Esto cubre las descargas, FTP, el DNS que haya elegido, las propias descargas de MDM y la comprobación de actualizaciones. Funciona como un interruptor de seguridad: cuando el adaptador se desconecta, o la VPN se apaga, nada sale a través de su conexión normal. Las descargas en curso se detienen con «… no está conectado» y se reanudan cuando el adaptador vuelve a estar disponible. La línea debajo de la lista muestra la dirección del adaptador, o que no está conectado."+ },"ad59a2dd8a67146e": {"source": "Click <g1>Find</g1>. The first match is selected.","text": "Haz clic en <g1>Buscar</g1>. Se selecciona la primera coincidencia."diff --git a/i18n/site/fa.json b/i18n/site/fa.jsonindex 197ce836..5f91310b 100644--- a/i18n/site/fa.json+++ b/i18n/site/fa.json@@ -862,6 +862,10 @@"source": "Yes. MDM accepts IDM's familiar command-line switches, comes with misterdownloadmanager-cli for downloads from a terminal, and has a local, token-protected…","text": "بله. MDM سوئیچهای خط فرمان آشنای IDM را میپذیرد، برای بارگیری از ترمینال همراه با misterdownloadmanager-cli ارائه میشود و یک API اتوماسیون محلی و محافظتشده با توکن دارد که میتواند بارگیریها را فهرست، متوقف، شروع و حذف کند. این API تا زمانی که آن را روشن نکنید، خاموش است. به خط فرمان و اتوماسیون مراجعه کنید."},+ "15e53ab6d7a4fe85": {+ "source": "A row with a <x1/> line above it was translated by machine. When you have checked it (and corrected it if needed), delete that <x2/> line.",+ "text": "سطری که بالای آن یک خط <x1/> وجود دارد، توسط ماشین ترجمه شده است. هنگامی که آن را بررسی کردید (و در صورت نیاز تصحیح کردید)، آن خط <x2/> را حذف کنید."+ },"1610e7aea9f29651": {"source": "a <x1/> file or <x2/> link","text": "یک فایل <x1/> یا لینک <x2/>"@@ -1046,6 +1050,10 @@"source": "<g1>5.5 s</g1><g2></g2>","text": "<g1>5.5 ثانیه</g1><g2></g2>"},+ "1ad91cd214e9ba4e": {+ "source": "On Windows the torrent engine can't bind to an adapter yet. So torrents don't start while one is chosen (\"torrents can't go through a chosen network adapter on Windows yet\"), rather than going around it. Tracker names are still looked up by the system's DNS.",+ "text": "در Windows، موتور تورنت هنوز نمیتواند به یک آداپتور متصل شود. بنابراین، تورنتها در حالی که یک آداپتور انتخاب شده است، شروع نمیشوند (\"تورنتها هنوز نمیتوانند از طریق یک آداپتور شبکه انتخاب شده در Windows عبور کنند\")، به جای اینکه از آن عبور کنند. نام ردیابها همچنان توسط DNS سیستم جستجو میشوند."+ },"1ae1f6b28d64deef": {"source": "The browser extension comes with the app and as its own download for <g1>Chrome, Edge, Brave, Opera and Vivaldi</g1> and <g2>Firefox</g2>. Store listings are on the way. Every file is built from the public source by GitHub Actions and listed with its SHA-256 checksum.","text": "افزونه مرورگر همراه برنامه ارائه میشود و به صورت یک بارگیری جداگانه برای <g1>Chrome، Edge، Brave، Opera و Vivaldi</g1> و <g2>Firefox</g2> در دسترس است. لیستهای فروشگاهی در راه هستند. هر فایل از منبع عمومی توسط GitHub Actions ساخته شده و با کد هش SHA-256 آن لیست شده است."@@ -4906,6 +4914,10 @@"source": "Firefox 140 or later is needed.","text": "Firefox 140 یا جدیدتر لازم است."},+ "7d9cbd5bf6ab33e4": {+ "source": "<g1>Options → Proxy / Socks → Network adapter</g1> holds MDM's connections to one adapter, usually a VPN's (<g2>Options</g2>). On Linux and macOS the torrent engine binds every socket to it: peers, trackers, the DHT and its listening port. UPnP and local peer discovery are turned off then, because they talk to the local network rather than through the adapter. If the adapter goes away, the engine stops, and it starts again through the adapter when it's back.",+ "text": "<g1>گزینهها → پروکسی / SOCKS → آداپتور شبکه</g1> اتصالات MDM را به یک آداپتور، معمولا VPN، محدود میکند (<g2>گزینهها</g2>). در Linux و macOS، موتور تورنت هر سوکت را به آن متصل میکند: همتایان، ردیابها، DHT و پورت گوش دادن آن. UPnP و کشف همتایان محلی در این حالت خاموش میشوند، زیرا آنها به جای عبور از آداپتور، با شبکه محلی صحبت میکنند. اگر آداپتور از بین برود، موتور متوقف میشود و زمانی که آداپتور بازگردد، دوباره از طریق آن شروع به کار میکند."+ },"7db9ed501785d447": {"source": "<g1>Quality</g1> applies to every video: <g2>Best quality</g2>, <g3>Up to</g3> a height (each video at that height, or the nearest below it), <g4>Audio only, original</g4>, <g5>Audio only MP3</g5>, <g6>Audio only OPUS</g6> or <g7>Audio only FLAC</g7>. Without ffmpeg, only the qualities that come with their sound are offered, and no MP3, Opus or FLAC.","text": "<g1>کیفیت</g1> برای هر ویدئو اعمال میشود: <g2>بهترین کیفیت</g2>، <g3>تا</g3> یک ارتفاع (هر ویدئو با آن ارتفاع یا نزدیکترین ارتفاع پایینتر)، <g4>فقط صدا، اصلی</g4>، <g5>فقط صدا MP3</g5>، <g6>فقط صدا OPUS</g6> یا <g7>فقط صدا FLAC</g7>. بدون ffmpeg، فقط کیفیتهایی ارائه میشوند که همراه با صدای خود هستند و MP3، Opus یا FLAC ارائه نمیشوند."@@ -6714,6 +6726,10 @@"source": "<g1>Category</g1> — chosen from the file's type (Compressed, Documents, Music, Programs, Video or General). Each category has its own folder. <g2>+</g2> beside it makes a new category.","text": "<g1>دسته</g1> — از نوع فایل (فشرده، اسناد، موسیقی، برنامهها، ویدئو یا عمومی) انتخاب میشود. هر دسته پوشه مخصوص به خود را دارد. <g2>+</g2> کنار آن یک دسته جدید ایجاد میکند."},+ "ad45e0dd35085a55": {+ "source": "<g1>Network adapter</g1> — <g2>Any (the system chooses)</g2> is the default. Pick an adapter, usually your VPN's, and every connection MDM opens goes out through it, or not at all. That covers downloads, FTP, the DNS you chose, MDM's own downloads and the update check. It works as a kill switch: when the adapter disconnects, or the VPN is switched off, nothing goes out through your normal connection. Running downloads stop with \"… is not connected\" and start again when the adapter is back. The line under the list shows the adapter's address, or that it isn't connected.",+ "text": "<g1>کارت شبکه</g1> — <g2>هر کدام (سیستم انتخاب میکند)</g2> پیشفرض است. یک کارت شبکه، معمولا کارت شبکه VPN شما، را انتخاب کنید تا هر اتصالی که MDM باز میکند از طریق آن برقرار شود، یا اصلا برقرار نشود. این شامل دانلودها، FTP، DNS انتخابی شما، دانلودهای خود MDM و بررسی بهروزرسانی میشود. این ویژگی مانند یک سوئیچ قطعکننده عمل میکند: وقتی کارت شبکه قطع میشود یا VPN خاموش میشود، هیچ چیزی از طریق اتصال عادی شما خارج نمیشود. دانلودهای در حال اجرا با پیام «… متصل نیست» متوقف میشوند و با بازگشت کارت شبکه دوباره شروع میشوند. خط زیر لیست، آدرس کارت شبکه را نشان میدهد، یا اینکه متصل نیست."+ },"ad59a2dd8a67146e": {"source": "Click <g1>Find</g1>. The first match is selected.","text": "روی <g1>یافتن</g1> کلیک کنید. اولین مورد منطبق انتخاب میشود."diff --git a/i18n/site/fr.json b/i18n/site/fr.jsonindex 241ba8f4..c1788149 100644--- a/i18n/site/fr.json+++ b/i18n/site/fr.json@@ -862,6 +862,10 @@"source": "Yes. MDM accepts IDM's familiar command-line switches, comes with misterdownloadmanager-cli for downloads from a terminal, and has a local, token-protected…","text": "Oui. MDM accepte les commutateurs de ligne de commande familiers d'IDM, est livré avec misterdownloadmanager-cli pour les téléchargements depuis un terminal, et dispose d'une API d'automatisation locale, protégée par un jeton…"},+ "15e53ab6d7a4fe85": {+ "source": "A row with a <x1/> line above it was translated by machine. When you have checked it (and corrected it if needed), delete that <x2/> line.",+ "text": "Une ligne avec une ligne <x1/> au-dessus a été traduite par machine. Lorsque vous l'avez vérifiée (et corrigée si nécessaire), supprimez cette ligne <x2/>."+ },"1610e7aea9f29651": {"source": "a <x1/> file or <x2/> link","text": "un fichier <x1/> ou un lien <x2/>"@@ -1046,6 +1050,10 @@"source": "<g1>5.5 s</g1><g2></g2>","text": "<g1>5,5 s</g1><g2></g2>"},+ "1ad91cd214e9ba4e": {+ "source": "On Windows the torrent engine can't bind to an adapter yet. So torrents don't start while one is chosen (\"torrents can't go through a chosen network adapter on Windows yet\"), rather than going around it. Tracker names are still looked up by the system's DNS.",+ "text": "Sous Windows, le moteur de torrent ne peut pas encore se lier à une carte. Ainsi, les torrents ne démarrent pas tant qu’une carte est choisie (« les torrents ne peuvent pas encore passer par une carte réseau choisie sous Windows »), plutôt que de la contourner. Les noms des traqueurs sont toujours résolus par le DNS du système."+ },"1ae1f6b28d64deef": {"source": "The browser extension comes with the app and as its own download for <g1>Chrome, Edge, Brave, Opera and Vivaldi</g1> and <g2>Firefox</g2>. Store listings are on the way. Every file is built from the public source by GitHub Actions and listed with its SHA-256 checksum.","text": "L'extension de navigateur est fournie avec l'application et en téléchargement séparé pour <g1>Chrome, Edge, Brave, Opera et Vivaldi</g1> ainsi que <g2>Firefox</g2>. Les listes de magasins sont en cours. Chaque fichier est construit à partir de la source publique par GitHub Actions et listé avec son empreinte SHA-256."@@ -4906,6 +4914,10 @@"source": "Firefox 140 or later is needed.","text": "Firefox 140 ou une version ultérieure est nécessaire."},+ "7d9cbd5bf6ab33e4": {+ "source": "<g1>Options → Proxy / Socks → Network adapter</g1> holds MDM's connections to one adapter, usually a VPN's (<g2>Options</g2>). On Linux and macOS the torrent engine binds every socket to it: peers, trackers, the DHT and its listening port. UPnP and local peer discovery are turned off then, because they talk to the local network rather than through the adapter. If the adapter goes away, the engine stops, and it starts again through the adapter when it's back.",+ "text": "L’option <g1>Options → Proxy / Socks → Carte réseau</g1> lie les connexions de MDM à une seule carte, généralement celle d’un VPN (<g2>Options</g2>). Sous Linux et macOS, le moteur de torrent lie toutes les sockets à cette carte : les pairs, les traqueurs, le DHT et son port d’écoute. L’UPnP et la découverte de pairs locaux sont alors désactivés, car ils communiquent avec le réseau local plutôt qu’à travers la carte. Si la carte disparaît, le moteur s’arrête, et il redémarre via la carte quand elle est de retour."+ },"7db9ed501785d447": {"source": "<g1>Quality</g1> applies to every video: <g2>Best quality</g2>, <g3>Up to</g3> a height (each video at that height, or the nearest below it), <g4>Audio only, original</g4>, <g5>Audio only MP3</g5>, <g6>Audio only OPUS</g6> or <g7>Audio only FLAC</g7>. Without ffmpeg, only the qualities that come with their sound are offered, and no MP3, Opus or FLAC.","text": "<g1>Qualité</g1> s'applique à chaque vidéo : <g2>Meilleure qualité</g2>, <g3>Jusqu'à</g3> une hauteur (chaque vidéo à cette hauteur, ou la plus proche en dessous), <g4>Audio seulement, original</g4>, <g5>Audio seulement MP3</g5>, <g6>Audio seulement OPUS</g6> ou <g7>Audio seulement FLAC</g7>. Sans ffmpeg, seules les qualités qui incluent leur son sont proposées, et pas de MP3, Opus ou FLAC."@@ -6714,6 +6726,10 @@"source": "<g1>Category</g1> — chosen from the file's type (Compressed, Documents, Music, Programs, Video or General). Each category has its own folder. <g2>+</g2> beside it makes a new category.","text": "<g1>Catégorie</g1> — choisie en fonction du type de fichier (Compressé, Documents, Musique, Programmes, Vidéo ou Général). Chaque catégorie a son propre dossier. Le <g2>+</g2> à côté crée une nouvelle catégorie."},+ "ad45e0dd35085a55": {+ "source": "<g1>Network adapter</g1> — <g2>Any (the system chooses)</g2> is the default. Pick an adapter, usually your VPN's, and every connection MDM opens goes out through it, or not at all. That covers downloads, FTP, the DNS you chose, MDM's own downloads and the update check. It works as a kill switch: when the adapter disconnects, or the VPN is switched off, nothing goes out through your normal connection. Running downloads stop with \"… is not connected\" and start again when the adapter is back. The line under the list shows the adapter's address, or that it isn't connected.",+ "text": "<g1>Carte réseau</g1> — <g2>N’importe laquelle (le système choisit)</g2> est le réglage par défaut. Choisissez une carte, généralement celle de votre VPN, et toutes les connexions ouvertes par MDM passeront par elle, ou pas du tout. Cela inclut les téléchargements, le FTP, le DNS que vous avez choisi, les propres téléchargements de MDM et la vérification des mises à jour. Cela fonctionne comme un coupe-circuit : lorsque la carte se déconnecte, ou que le VPN est désactivé, rien ne passe par votre connexion normale. Les téléchargements en cours s’arrêtent avec « … n’est pas connecté » et reprennent lorsque la carte est de nouveau disponible. La ligne sous la liste indique l’adresse de la carte, ou qu’elle n’est pas connectée."+ },"ad59a2dd8a67146e": {"source": "Click <g1>Find</g1>. The first match is selected.","text": "Cliquez sur <g1>Rechercher</g1>. La première correspondance est sélectionnée."diff --git a/i18n/site/hi.json b/i18n/site/hi.jsonindex d830997c..7a6be4f8 100644--- a/i18n/site/hi.json+++ b/i18n/site/hi.json@@ -862,6 +862,10 @@"source": "Yes. MDM accepts IDM's familiar command-line switches, comes with misterdownloadmanager-cli for downloads from a terminal, and has a local, token-protected…","text": "हाँ। MDM, IDM के परिचित कमांड-लाइन स्विच स्वीकार करता है, टर्मिनल से डाउनलोड के लिए misterdownloadmanager-cli के साथ आता है, और इसमें एक स्थानीय, टोकन-सुरक्षित…"},+ "15e53ab6d7a4fe85": {+ "source": "A row with a <x1/> line above it was translated by machine. When you have checked it (and corrected it if needed), delete that <x2/> line.",+ "text": "जिस पंक्ति के ऊपर <x1/> लाइन है, उसका अनुवाद मशीन द्वारा किया गया था। जब आप इसकी जाँच कर लें (और यदि आवश्यक हो तो इसे ठीक कर लें), तो उस <x2/> लाइन को हटा दें।"+ },"1610e7aea9f29651": {"source": "a <x1/> file or <x2/> link","text": "एक <x1/> फ़ाइल या <x2/> लिंक"@@ -1046,6 +1050,10 @@"source": "<g1>5.5 s</g1><g2></g2>","text": "<g1>5.5 से</g1><g2></g2>"},+ "1ad91cd214e9ba4e": {+ "source": "On Windows the torrent engine can't bind to an adapter yet. So torrents don't start while one is chosen (\"torrents can't go through a chosen network adapter on Windows yet\"), rather than going around it. Tracker names are still looked up by the system's DNS.",+ "text": "Windows पर टॉरेंट इंजन अभी तक किसी एडाप्टर से जुड़ नहीं सकता है। इसलिए जब कोई एडाप्टर चुना जाता है तो टॉरेंट शुरू नहीं होते हैं (\"Windows पर टॉरेंट अभी तक चुने हुए नेटवर्क एडाप्टर के ज़रिए नहीं जा सकते हैं\"), बजाय इसके कि वे उसके चारों ओर जाएँ। ट्रैकर के नाम अभी भी सिस्टम के DNS द्वारा देखे जाते हैं।"+ },"1ae1f6b28d64deef": {"source": "The browser extension comes with the app and as its own download for <g1>Chrome, Edge, Brave, Opera and Vivaldi</g1> and <g2>Firefox</g2>. Store listings are on the way. Every file is built from the public source by GitHub Actions and listed with its SHA-256 checksum.","text": "ब्राउज़र एक्सटेंशन ऐप के साथ आता है और <g1>Chrome, Edge, Brave, Opera और Vivaldi</g1> और <g2>Firefox</g2> के लिए अपने स्वयं के डाउनलोड के रूप में आता है। स्टोर लिस्टिंग जल्द ही आ रही हैं। प्रत्येक फ़ाइल GitHub Actions द्वारा सार्वजनिक स्रोत से बनाई गई है और इसकी SHA-256 चेकसम के साथ सूचीबद्ध है।"@@ -4906,6 +4914,10 @@"source": "Firefox 140 or later is needed.","text": "Firefox 140 या उसके बाद का संस्करण आवश्यक है।"},+ "7d9cbd5bf6ab33e4": {+ "source": "<g1>Options → Proxy / Socks → Network adapter</g1> holds MDM's connections to one adapter, usually a VPN's (<g2>Options</g2>). On Linux and macOS the torrent engine binds every socket to it: peers, trackers, the DHT and its listening port. UPnP and local peer discovery are turned off then, because they talk to the local network rather than through the adapter. If the adapter goes away, the engine stops, and it starts again through the adapter when it's back.",+ "text": "<g1>विकल्प → प्रॉक्सी / SOCKS → नेटवर्क एडाप्टर</g1> MDM के कनेक्शन को एक एडाप्टर से जोड़ता है, आमतौर पर VPN के (<g2>विकल्प</g2>)। Linux और macOS पर टॉरेंट इंजन हर सॉकेट को इससे जोड़ता है: पीयर, ट्रैकर, DHT और उसका लिसनिंग पोर्ट। UPnP और लोकल पीयर डिस्कवरी तब बंद हो जाते हैं, क्योंकि वे एडाप्टर के बजाय लोकल नेटवर्क से बात करते हैं। अगर एडाप्टर चला जाता है, तो इंजन रुक जाता है, और जब वह वापस आता है तो एडाप्टर के ज़रिए फिर से शुरू होता है।"+ },"7db9ed501785d447": {"source": "<g1>Quality</g1> applies to every video: <g2>Best quality</g2>, <g3>Up to</g3> a height (each video at that height, or the nearest below it), <g4>Audio only, original</g4>, <g5>Audio only MP3</g5>, <g6>Audio only OPUS</g6> or <g7>Audio only FLAC</g7>. Without ffmpeg, only the qualities that come with their sound are offered, and no MP3, Opus or FLAC.","text": "<g1>गुणवत्ता</g1> हर वीडियो पर लागू होती है: <g2>सर्वोत्तम गुणवत्ता</g2>, एक ऊँचाई <g3>तक</g3> (प्रत्येक वीडियो उस ऊँचाई पर, या उसके ठीक नीचे), <g4>केवल ऑडियो, मूल</g4>, <g5>केवल ऑडियो MP3</g5>, <g6>केवल ऑडियो OPUS</g6> या <g7>केवल ऑडियो FLAC</g7>। ffmpeg के बिना, केवल वही गुणवत्ताएँ पेश की जाती हैं जो अपनी ध्वनि के साथ आती हैं, और कोई MP3, Opus या FLAC नहीं।"@@ -6714,6 +6726,10 @@"source": "<g1>Category</g1> — chosen from the file's type (Compressed, Documents, Music, Programs, Video or General). Each category has its own folder. <g2>+</g2> beside it makes a new category.","text": "<g1>श्रेणी</g1> — फ़ाइल के प्रकार (संपीड़ित, दस्तावेज़, संगीत, प्रोग्राम, वीडियो या सामान्य) से चुनी गई। प्रत्येक श्रेणी का अपना फ़ोल्डर होता है। इसके बगल में <g2>+</g2> एक नई श्रेणी बनाता है।"},+ "ad45e0dd35085a55": {+ "source": "<g1>Network adapter</g1> — <g2>Any (the system chooses)</g2> is the default. Pick an adapter, usually your VPN's, and every connection MDM opens goes out through it, or not at all. That covers downloads, FTP, the DNS you chose, MDM's own downloads and the update check. It works as a kill switch: when the adapter disconnects, or the VPN is switched off, nothing goes out through your normal connection. Running downloads stop with \"… is not connected\" and start again when the adapter is back. The line under the list shows the adapter's address, or that it isn't connected.",+ "text": "<g1>नेटवर्क एडाप्टर</g1> — <g2>कोई भी (सिस्टम चुनता है)</g2> डिफ़ॉल्ट है। एक एडाप्टर चुनें, आमतौर पर आपके VPN का, और MDM द्वारा खोला गया हर कनेक्शन उसी के माध्यम से जाएगा, या बिल्कुल नहीं जाएगा। इसमें डाउनलोड, FTP, आपके द्वारा चुना गया DNS, MDM के अपने डाउनलोड और अपडेट जांच शामिल हैं। यह एक किल स्विच के रूप में काम करता है: जब एडाप्टर डिस्कनेक्ट हो जाता है, या VPN बंद हो जाता है, तो आपके सामान्य कनेक्शन के माध्यम से कुछ भी बाहर नहीं जाता है। चल रहे डाउनलोड \"...कनेक्टेड नहीं है\" के साथ रुक जाते हैं और एडाप्टर के वापस आने पर फिर से शुरू हो जाते हैं। सूची के नीचे की पंक्ति एडाप्टर का पता दिखाती है, या यह कि यह कनेक्टेड नहीं है।"+ },"ad59a2dd8a67146e": {"source": "Click <g1>Find</g1>. The first match is selected.","text": "<g1>ढूंढें</g1> पर क्लिक करें। पहला मिलान चुना जाता है।"diff --git a/i18n/site/nl.json b/i18n/site/nl.jsonindex 01edf2b5..3138cd4f 100644--- a/i18n/site/nl.json+++ b/i18n/site/nl.json@@ -862,6 +862,10 @@"source": "Yes. MDM accepts IDM's familiar command-line switches, comes with misterdownloadmanager-cli for downloads from a terminal, and has a local, token-protected…","text": "Ja. MDM accepteert de bekende opdrachtregelschakelaars van IDM, wordt geleverd met misterdownloadmanager-cli voor downloads vanaf een terminal, en heeft een lokale, met tokens beveiligde…"},+ "15e53ab6d7a4fe85": {+ "source": "A row with a <x1/> line above it was translated by machine. When you have checked it (and corrected it if needed), delete that <x2/> line.",+ "text": "Een rij met een <x1/>-regel erboven is machinaal vertaald. Wanneer u deze hebt gecontroleerd (en indien nodig gecorrigeerd), verwijdert u die <x2/>-regel."+ },"1610e7aea9f29651": {"source": "a <x1/> file or <x2/> link","text": "een <x1/> bestand of <x2/> link"@@ -1046,6 +1050,10 @@"source": "<g1>5.5 s</g1><g2></g2>","text": "<g1>5,5 s</g1><g2></g2>"},+ "1ad91cd214e9ba4e": {+ "source": "On Windows the torrent engine can't bind to an adapter yet. So torrents don't start while one is chosen (\"torrents can't go through a chosen network adapter on Windows yet\"), rather than going around it. Tracker names are still looked up by the system's DNS.",+ "text": "Op Windows kan de torrent-engine nog niet aan een adapter binden. Torrents starten dus niet wanneer er een is gekozen (\"torrents kunnen nog niet via een gekozen netwerkadapter op Windows\"), in plaats van eromheen te gaan. Tracker-namen worden nog steeds opgezocht door de DNS van het systeem."+ },"1ae1f6b28d64deef": {"source": "The browser extension comes with the app and as its own download for <g1>Chrome, Edge, Brave, Opera and Vivaldi</g1> and <g2>Firefox</g2>. Store listings are on the way. Every file is built from the public source by GitHub Actions and listed with its SHA-256 checksum.","text": "De browserextensie wordt meegeleverd met de app en als aparte download voor <g1>Chrome, Edge, Brave, Opera en Vivaldi</g1> en <g2>Firefox</g2>. Vermeldingen in app-stores zijn onderweg. Elk bestand is gebouwd vanuit de openbare broncode door GitHub Actions en wordt vermeld met de SHA-256-checksum."@@ -4906,6 +4914,10 @@"source": "Firefox 140 or later is needed.","text": "Firefox 140 of nieuwer is vereist."},+ "7d9cbd5bf6ab33e4": {+ "source": "<g1>Options → Proxy / Socks → Network adapter</g1> holds MDM's connections to one adapter, usually a VPN's (<g2>Options</g2>). On Linux and macOS the torrent engine binds every socket to it: peers, trackers, the DHT and its listening port. UPnP and local peer discovery are turned off then, because they talk to the local network rather than through the adapter. If the adapter goes away, the engine stops, and it starts again through the adapter when it's back.",+ "text": "<g1>Opties → Proxy/Socks → Netwerkadapter</g1> verbindt MDM met één adapter, meestal die van een VPN (<g2>Opties</g2>). Op Linux en macOS bindt de torrent-engine elke socket eraan: peers, trackers, de DHT en de luisterpoort. UPnP en lokale peer-detectie worden dan uitgeschakeld, omdat ze met het lokale netwerk communiceren in plaats van via de adapter. Als de adapter wegvalt, stopt de engine, en start deze weer via de adapter wanneer deze terug is."+ },"7db9ed501785d447": {"source": "<g1>Quality</g1> applies to every video: <g2>Best quality</g2>, <g3>Up to</g3> a height (each video at that height, or the nearest below it), <g4>Audio only, original</g4>, <g5>Audio only MP3</g5>, <g6>Audio only OPUS</g6> or <g7>Audio only FLAC</g7>. Without ffmpeg, only the qualities that come with their sound are offered, and no MP3, Opus or FLAC.","text": "<g1>Kwaliteit</g1> is van toepassing op elke video: <g2>Beste kwaliteit</g2>, <g3>Tot</g3> een bepaalde hoogte (elke video op die hoogte, of de dichtstbijzijnde daaronder), <g4>Alleen audio, origineel</g4>, <g5>Alleen audio MP3</g5>, <g6>Alleen audio OPUS</g6> of <g7>Alleen audio FLAC</g7>. Zonder ffmpeg worden alleen de kwaliteiten aangeboden die met hun geluid komen, en geen MP3, Opus of FLAC."@@ -6714,6 +6726,10 @@"source": "<g1>Category</g1> — chosen from the file's type (Compressed, Documents, Music, Programs, Video or General). Each category has its own folder. <g2>+</g2> beside it makes a new category.","text": "<g1>Categorie</g1> — gekozen op basis van het bestandstype (Gecomprimeerd, Documenten, Muziek, Programma's, Video of Algemeen). Elke categorie heeft zijn eigen map. <g2>+</g2> ernaast maakt een nieuwe categorie."},+ "ad45e0dd35085a55": {+ "source": "<g1>Network adapter</g1> — <g2>Any (the system chooses)</g2> is the default. Pick an adapter, usually your VPN's, and every connection MDM opens goes out through it, or not at all. That covers downloads, FTP, the DNS you chose, MDM's own downloads and the update check. It works as a kill switch: when the adapter disconnects, or the VPN is switched off, nothing goes out through your normal connection. Running downloads stop with \"… is not connected\" and start again when the adapter is back. The line under the list shows the adapter's address, or that it isn't connected.",+ "text": "<g1>Netwerkadapter</g1> — <g2>Elke (het systeem kiest)</g2> is de standaardinstelling. Kies een adapter, meestal die van uw VPN, en elke verbinding die MDM opent, gaat erdoorheen, of helemaal niet. Dit omvat downloads, FTP, de DNS die u hebt gekozen, MDM's eigen downloads en de updatecontrole. Het werkt als een kill switch: wanneer de adapter de verbinding verbreekt, of de VPN wordt uitgeschakeld, gaat er niets meer via uw normale verbinding. Lopende downloads stoppen met \"… is niet verbonden\" en starten opnieuw wanneer de adapter weer beschikbaar is. De regel onder de lijst toont het adres van de adapter, of dat deze niet is verbonden."+ },"ad59a2dd8a67146e": {"source": "Click <g1>Find</g1>. The first match is selected.","text": "Klik op <g1>Zoeken</g1>. De eerste overeenkomst wordt geselecteerd."diff --git a/i18n/site/ru.json b/i18n/site/ru.jsonindex f25c5e0c..98cc6f13 100644--- a/i18n/site/ru.json+++ b/i18n/site/ru.json@@ -862,6 +862,10 @@"source": "Yes. MDM accepts IDM's familiar command-line switches, comes with misterdownloadmanager-cli for downloads from a terminal, and has a local, token-protected…","text": "Да. MDM поддерживает привычные параметры командной строки IDM, поставляется с misterdownloadmanager-cli для загрузок из терминала и имеет локальный API автоматизации, защищенный токеном…"},+ "15e53ab6d7a4fe85": {+ "source": "A row with a <x1/> line above it was translated by machine. When you have checked it (and corrected it if needed), delete that <x2/> line.",+ "text": "Строка с символом <x1/> над ней была переведена машиной. После того как вы ее проверили (и исправили при необходимости), удалите эту строку <x2/>."+ },"1610e7aea9f29651": {"source": "a <x1/> file or <x2/> link","text": "файл <x1/> или ссылка <x2/>"@@ -1046,6 +1050,10 @@"source": "<g1>5.5 s</g1><g2></g2>","text": "<g1>5.5 с</g1><g2></g2>"},+ "1ad91cd214e9ba4e": {+ "source": "On Windows the torrent engine can't bind to an adapter yet. So torrents don't start while one is chosen (\"torrents can't go through a chosen network adapter on Windows yet\"), rather than going around it. Tracker names are still looked up by the system's DNS.",+ "text": "В Windows торрент-движок пока не может привязываться к адаптеру. Поэтому торренты не запускаются, пока выбран адаптер («торренты пока не могут проходить через выбранный сетевой адаптер в Windows»), вместо того чтобы обходить его. Имена трекеров по-прежнему ищутся через системный DNS."+ },"1ae1f6b28d64deef": {"source": "The browser extension comes with the app and as its own download for <g1>Chrome, Edge, Brave, Opera and Vivaldi</g1> and <g2>Firefox</g2>. Store listings are on the way. Every file is built from the public source by GitHub Actions and listed with its SHA-256 checksum.","text": "Расширение для браузера поставляется вместе с приложением и доступно для <g1>Chrome, Edge, Brave, Opera и Vivaldi</g1>, а также для <g2>Firefox</g2>. Скоро появятся в магазинах приложений. Каждый файл собран из публичного исходного кода с помощью GitHub Actions и указан с контрольной суммой SHA-256."@@ -4906,6 +4914,10 @@"source": "Firefox 140 or later is needed.","text": "Требуется Firefox 140 или новее."},+ "7d9cbd5bf6ab33e4": {+ "source": "<g1>Options → Proxy / Socks → Network adapter</g1> holds MDM's connections to one adapter, usually a VPN's (<g2>Options</g2>). On Linux and macOS the torrent engine binds every socket to it: peers, trackers, the DHT and its listening port. UPnP and local peer discovery are turned off then, because they talk to the local network rather than through the adapter. If the adapter goes away, the engine stops, and it starts again through the adapter when it's back.",+ "text": "<g1>Параметры → Прокси / Socks → Сетевой адаптер</g1> привязывает соединения MDM к одному адаптеру, обычно VPN (<g2>Параметры</g2>). В Linux и macOS торрент-движок привязывает к нему все сокеты: пиры, трекеры, DHT и его порт для прослушивания. UPnP и обнаружение локальных пиров при этом отключаются, так как они взаимодействуют с локальной сетью, а не через адаптер. Если адаптер исчезает, движок останавливается и снова запускается через адаптер, когда тот возвращается."+ },"7db9ed501785d447": {"source": "<g1>Quality</g1> applies to every video: <g2>Best quality</g2>, <g3>Up to</g3> a height (each video at that height, or the nearest below it), <g4>Audio only, original</g4>, <g5>Audio only MP3</g5>, <g6>Audio only OPUS</g6> or <g7>Audio only FLAC</g7>. Without ffmpeg, only the qualities that come with their sound are offered, and no MP3, Opus or FLAC.","text": "<g1>Качество</g1> применяется ко всем видео: <g2>Лучшее качество</g2>, <g3>До</g3> определённой высоты (каждое видео этой высоты или ближайшее ниже), <g4>Только аудио, оригинал</g4>, <g5>Только аудио MP3</g5>, <g6>Только аудио OPUS</g6> или <g7>Только аудио FLAC</g7>. Без ffmpeg предлагаются только те качества, которые идут со звуком, и нет MP3, Opus или FLAC."@@ -6714,6 +6726,10 @@"source": "<g1>Category</g1> — chosen from the file's type (Compressed, Documents, Music, Programs, Video or General). Each category has its own folder. <g2>+</g2> beside it makes a new category.","text": "<g1>Категория</g1> — выбирается по типу файла (Сжатые, Документы, Музыка, Программы, Видео или Общие). Каждая категория имеет свою папку. <g2>+</g2> рядом с ней создает новую категорию."},+ "ad45e0dd35085a55": {+ "source": "<g1>Network adapter</g1> — <g2>Any (the system chooses)</g2> is the default. Pick an adapter, usually your VPN's, and every connection MDM opens goes out through it, or not at all. That covers downloads, FTP, the DNS you chose, MDM's own downloads and the update check. It works as a kill switch: when the adapter disconnects, or the VPN is switched off, nothing goes out through your normal connection. Running downloads stop with \"… is not connected\" and start again when the adapter is back. The line under the list shows the adapter's address, or that it isn't connected.",+ "text": "<g1>Сетевой адаптер</g1> — по умолчанию <g2>Любой (система выбирает)</g2>. Выберите адаптер, обычно это адаптер вашего VPN, и все соединения, открываемые MDM, будут проходить через него или не будут проходить вовсе. Это касается загрузок, FTP, выбранного вами DNS, собственных загрузок MDM и проверки обновлений. Это работает как аварийный выключатель: когда адаптер отключается или VPN выключается, ничего не выходит через ваше обычное соединение. Запущенные загрузки останавливаются с сообщением «… не подключен» и возобновляются, когда адаптер снова доступен. Строка под списком показывает адрес адаптера или то, что он не подключен."+ },"ad59a2dd8a67146e": {"source": "Click <g1>Find</g1>. The first match is selected.","text": "Нажмите <g1>Найти</g1>. Будет выбрано первое совпадение."diff --git a/i18n/site/th.json b/i18n/site/th.jsonindex 3a97820c..41060d87 100644--- a/i18n/site/th.json+++ b/i18n/site/th.json@@ -862,6 +862,10 @@"source": "Yes. MDM accepts IDM's familiar command-line switches, comes with misterdownloadmanager-cli for downloads from a terminal, and has a local, token-protected…","text": "ได้ MDM รองรับสวิตช์บรรทัดคำสั่งที่คุ้นเคยของ IDM มาพร้อมกับ misterdownloadmanager-cli สำหรับการดาวน์โหลดจากเทอร์มินัล และมี API ระบบอัตโนมัติในเครื่องที่ป้องกันด้วยโทเค็น…"},+ "15e53ab6d7a4fe85": {+ "source": "A row with a <x1/> line above it was translated by machine. When you have checked it (and corrected it if needed), delete that <x2/> line.",+ "text": "แถวที่มีเส้น <x1/> อยู่ด้านบนถูกแปลโดยเครื่องจักร เมื่อคุณตรวจสอบแล้ว (และแก้ไขหากจำเป็น) ให้ลบเส้น <x2/> นั้นออก"+ },"1610e7aea9f29651": {"source": "a <x1/> file or <x2/> link","text": "ไฟล์ <x1/> หรือลิงก์ <x2/>"@@ -1046,6 +1050,10 @@"source": "<g1>5.5 s</g1><g2></g2>","text": "<g1>5.5 วินาที</g1><g2></g2>"},+ "1ad91cd214e9ba4e": {+ "source": "On Windows the torrent engine can't bind to an adapter yet. So torrents don't start while one is chosen (\"torrents can't go through a chosen network adapter on Windows yet\"), rather than going around it. Tracker names are still looked up by the system's DNS.",+ "text": "บน Windows เอ็นจิ้นทอร์เรนต์ยังไม่สามารถผูกกับอะแดปเตอร์ได้ ดังนั้น ทอร์เรนต์จะไม่เริ่มทำงานในขณะที่เลือกอะแดปเตอร์ไว้ (\"ทอร์เรนต์ยังไม่สามารถผ่านอะแดปเตอร์เครือข่ายที่เลือกบน Windows ได้\") แทนที่จะเลี่ยงผ่านมัน ชื่อตัวติดตามยังคงถูกค้นหาโดย DNS ของระบบ"+ },"1ae1f6b28d64deef": {"source": "The browser extension comes with the app and as its own download for <g1>Chrome, Edge, Brave, Opera and Vivaldi</g1> and <g2>Firefox</g2>. Store listings are on the way. Every file is built from the public source by GitHub Actions and listed with its SHA-256 checksum.","text": "ส่วนขยายเบราว์เซอร์มาพร้อมกับแอป และดาวน์โหลดแยกต่างหากสำหรับ <g1>Chrome, Edge, Brave, Opera และ Vivaldi</g1> และ <g2>Firefox</g2> รายการในสโตร์กำลังจะมา ไฟล์ทั้งหมดสร้างจากซอร์สโค้ดสาธารณะโดย GitHub Actions และแสดงพร้อมกับ SHA-256 checksum"@@ -4906,6 +4914,10 @@"source": "Firefox 140 or later is needed.","text": "ต้องใช้ Firefox เวอร์ชัน 140 หรือใหม่กว่า"},+ "7d9cbd5bf6ab33e4": {+ "source": "<g1>Options → Proxy / Socks → Network adapter</g1> holds MDM's connections to one adapter, usually a VPN's (<g2>Options</g2>). On Linux and macOS the torrent engine binds every socket to it: peers, trackers, the DHT and its listening port. UPnP and local peer discovery are turned off then, because they talk to the local network rather than through the adapter. If the adapter goes away, the engine stops, and it starts again through the adapter when it's back.",+ "text": "<g1>ตัวเลือก → พร็อกซี / SOCKS → อะแดปเตอร์เครือข่าย</g1> จะเชื่อมต่อ MDM กับอะแดปเตอร์หนึ่งตัว ซึ่งมักจะเป็นของ VPN (<g2>ตัวเลือก</g2>) บน Linux และ macOS เอ็นจิ้นทอร์เรนต์จะผูกทุกซ็อกเก็ตเข้ากับอะแดปเตอร์นั้น: เพียร์, ตัวติดตาม, DHT และพอร์ตการฟังของมัน UPnP และการค้นหาเพียร์ในเครื่องจะถูกปิดใช้งาน เนื่องจากจะสื่อสารกับเครือข่ายในเครื่องแทนที่จะผ่านอะแดปเตอร์ หากอะแดปเตอร์หายไป เอ็นจิ้นจะหยุดทำงาน และจะเริ่มทำงานอีกครั้งผ่านอะแดปเตอร์เมื่อกลับมา"+ },"7db9ed501785d447": {"source": "<g1>Quality</g1> applies to every video: <g2>Best quality</g2>, <g3>Up to</g3> a height (each video at that height, or the nearest below it), <g4>Audio only, original</g4>, <g5>Audio only MP3</g5>, <g6>Audio only OPUS</g6> or <g7>Audio only FLAC</g7>. Without ffmpeg, only the qualities that come with their sound are offered, and no MP3, Opus or FLAC.","text": "<g1>คุณภาพ</g1> ใช้กับทุกวิดีโอ: <g2>คุณภาพดีที่สุด</g2>, <g3>สูงสุด</g3> ตามความสูง (แต่ละวิดีโอที่ความสูงนั้น หรือใกล้เคียงที่สุดที่ต่ำกว่า), <g4>เฉพาะเสียง, ต้นฉบับ</g4>, <g5>เฉพาะเสียง MP3</g5>, <g6>เฉพาะเสียง OPUS</g6> หรือ <g7>เฉพาะเสียง FLAC</g7> หากไม่มี ffmpeg จะมีเฉพาะคุณภาพที่มีเสียงมาด้วย และไม่มี MP3, Opus หรือ FLAC ให้เลือก"@@ -6714,6 +6726,10 @@"source": "<g1>Category</g1> — chosen from the file's type (Compressed, Documents, Music, Programs, Video or General). Each category has its own folder. <g2>+</g2> beside it makes a new category.","text": "<g1>หมวดหมู่</g1> — เลือกจากประเภทของไฟล์ (บีบอัด, เอกสาร, เพลง, โปรแกรม, วิดีโอ หรือทั่วไป) แต่ละหมวดหมู่มีโฟลเดอร์ของตัวเอง เครื่องหมาย <g2>+</g2> ข้าง ๆ จะสร้างหมวดหมู่ใหม่"},+ "ad45e0dd35085a55": {+ "source": "<g1>Network adapter</g1> — <g2>Any (the system chooses)</g2> is the default. Pick an adapter, usually your VPN's, and every connection MDM opens goes out through it, or not at all. That covers downloads, FTP, the DNS you chose, MDM's own downloads and the update check. It works as a kill switch: when the adapter disconnects, or the VPN is switched off, nothing goes out through your normal connection. Running downloads stop with \"… is not connected\" and start again when the adapter is back. The line under the list shows the adapter's address, or that it isn't connected.",+ "text": "<g1>อะแดปเตอร์เครือข่าย</g1> — <g2>ใดก็ได้ (ระบบเลือกเอง)</g2> คือค่าเริ่มต้น เลือกอะแดปเตอร์ โดยปกติคือของ VPN ของคุณ และการเชื่อมต่อทุกครั้งที่ MDM เปิดจะส่งผ่านอะแดปเตอร์นั้น หรือไม่ส่งเลย ซึ่งครอบคลุมการดาวน์โหลด, FTP, DNS ที่คุณเลือก, การดาวน์โหลดของ MDM เอง และการตรวจสอบการอัปเดต มันทำงานเหมือนสวิตช์ตัดการทำงาน: เมื่ออะแดปเตอร์ตัดการเชื่อมต่อ หรือ VPN ถูกปิด จะไม่มีอะไรส่งออกผ่านการเชื่อมต่อปกติของคุณ การดาวน์โหลดที่กำลังดำเนินอยู่จะหยุดด้วยข้อความ \"… ไม่ได้เชื่อมต่อ\" และจะเริ่มใหม่เมื่ออะแดปเตอร์กลับมาใช้งานได้ บรรทัดใต้รายการจะแสดงที่อยู่ของอะแดปเตอร์ หรือสถานะว่าไม่ได้เชื่อมต่อ"+ },"ad59a2dd8a67146e": {"source": "Click <g1>Find</g1>. The first match is selected.","text": "คลิก <g1>ค้นหา</g1> รายการที่ตรงกันรายการแรกจะถูกเลือก"diff --git a/i18n/site/uk.json b/i18n/site/uk.jsonindex 57f116f2..3f6fbb39 100644--- a/i18n/site/uk.json+++ b/i18n/site/uk.json@@ -862,6 +862,10 @@"source": "Yes. MDM accepts IDM's familiar command-line switches, comes with misterdownloadmanager-cli for downloads from a terminal, and has a local, token-protected…","text": "Так. MDM підтримує звичні параметри командного рядка IDM, постачається з misterdownloadmanager-cli для завантажень з терміналу та має локальний, захищений токеном…"},+ "15e53ab6d7a4fe85": {+ "source": "A row with a <x1/> line above it was translated by machine. When you have checked it (and corrected it if needed), delete that <x2/> line.",+ "text": "Рядок з рядком <x1/> над ним був перекладений машиною. Коли ви його перевірили (і виправили, якщо потрібно), видаліть цей рядок <x2/>."+ },"1610e7aea9f29651": {"source": "a <x1/> file or <x2/> link","text": "файл <x1/> або посилання <x2/>"@@ -1046,6 +1050,10 @@"source": "<g1>5.5 s</g1><g2></g2>","text": "<g1>5.5 с</g1><g2></g2>"},+ "1ad91cd214e9ba4e": {+ "source": "On Windows the torrent engine can't bind to an adapter yet. So torrents don't start while one is chosen (\"torrents can't go through a chosen network adapter on Windows yet\"), rather than going around it. Tracker names are still looked up by the system's DNS.",+ "text": "У Windows торрент-рушій ще не може прив’язуватися до адаптера. Тому торренти не запускаються, поки вибрано адаптер (\"торренти ще не можуть проходити через вибраний мережевий адаптер у Windows\"), замість того, щоб обходити його. Імена трекерів все ще шукаються за допомогою системного DNS."+ },"1ae1f6b28d64deef": {"source": "The browser extension comes with the app and as its own download for <g1>Chrome, Edge, Brave, Opera and Vivaldi</g1> and <g2>Firefox</g2>. Store listings are on the way. Every file is built from the public source by GitHub Actions and listed with its SHA-256 checksum.","text": "Розширення для браузера постачається разом із програмою та як окреме завантаження для <g1>Chrome, Edge, Brave, Opera та Vivaldi</g1>, а також <g2>Firefox</g2>. Списки магазинів незабаром. Кожен файл створюється з відкритого джерела за допомогою GitHub Actions та перелічується з його контрольною сумою SHA-256."@@ -4906,6 +4914,10 @@"source": "Firefox 140 or later is needed.","text": "Потрібен Firefox 140 або новішої версії."},+ "7d9cbd5bf6ab33e4": {+ "source": "<g1>Options → Proxy / Socks → Network adapter</g1> holds MDM's connections to one adapter, usually a VPN's (<g2>Options</g2>). On Linux and macOS the torrent engine binds every socket to it: peers, trackers, the DHT and its listening port. UPnP and local peer discovery are turned off then, because they talk to the local network rather than through the adapter. If the adapter goes away, the engine stops, and it starts again through the adapter when it's back.",+ "text": "У <g1>Параметри → Проксі / Socks → Мережевий адаптер</g1> MDM прив’язує свої з’єднання до одного адаптера, зазвичай VPN (<g2>Параметри</g2>). У Linux та macOS торрент-рушій прив’язує до нього кожен сокет: піри, трекери, DHT та його порт для прослуховування. UPnP та виявлення локальних пірів вимикаються, оскільки вони спілкуються з локальною мережею, а не через адаптер. Якщо адаптер зникає, рушій зупиняється і знову запускається через адаптер, коли той повертається."+ },"7db9ed501785d447": {"source": "<g1>Quality</g1> applies to every video: <g2>Best quality</g2>, <g3>Up to</g3> a height (each video at that height, or the nearest below it), <g4>Audio only, original</g4>, <g5>Audio only MP3</g5>, <g6>Audio only OPUS</g6> or <g7>Audio only FLAC</g7>. Without ffmpeg, only the qualities that come with their sound are offered, and no MP3, Opus or FLAC.","text": "<g1>Якість</g1> застосовується до кожного відео: <g2>Найкраща якість</g2>, <g3>До</g3> певної висоти (кожне відео цієї висоти або найближчої нижчої), <g4>Лише аудіо, оригінал</g4>, <g5>Лише аудіо MP3</g5>, <g6>Лише аудіо OPUS</g6> або <g7>Лише аудіо FLAC</g7>. Без ffmpeg пропонуються лише якості, які мають власний звук, і немає MP3, Opus або FLAC."@@ -6714,6 +6726,10 @@"source": "<g1>Category</g1> — chosen from the file's type (Compressed, Documents, Music, Programs, Video or General). Each category has its own folder. <g2>+</g2> beside it makes a new category.","text": "<g1>Категорія</g1> — обирається за типом файлу (Стиснуті, Документи, Музика, Програми, Відео або Загальні). Кожна категорія має власну папку. <g2>+</g2> поруч створює нову категорію."},+ "ad45e0dd35085a55": {+ "source": "<g1>Network adapter</g1> — <g2>Any (the system chooses)</g2> is the default. Pick an adapter, usually your VPN's, and every connection MDM opens goes out through it, or not at all. That covers downloads, FTP, the DNS you chose, MDM's own downloads and the update check. It works as a kill switch: when the adapter disconnects, or the VPN is switched off, nothing goes out through your normal connection. Running downloads stop with \"… is not connected\" and start again when the adapter is back. The line under the list shows the adapter's address, or that it isn't connected.",+ "text": "<g1>Мережевий адаптер</g1> — <g2>Будь-який (система вибирає)</g2> є типовим. Виберіть адаптер, зазвичай ваш VPN, і кожне з'єднання, яке відкриває MDM, проходить через нього або не проходить взагалі. Це стосується завантажень, FTP, обраного вами DNS, власних завантажень MDM та перевірки оновлень. Це працює як аварійний вимикач: коли адаптер відключається або VPN вимикається, нічого не проходить через ваше звичайне з'єднання. Завантаження, що виконуються, зупиняються з повідомленням «… не підключено» і відновлюються, коли адаптер знову підключається. Рядок під списком показує адресу адаптера або те, що він не підключений."+ },"ad59a2dd8a67146e": {"source": "Click <g1>Find</g1>. The first match is selected.","text": "Натисніть <g1>Знайти</g1>. Буде вибрано перший збіг."diff --git a/i18n/site/vi.json b/i18n/site/vi.jsonindex 192208c8..cb79d513 100644--- a/i18n/site/vi.json+++ b/i18n/site/vi.json@@ -862,6 +862,10 @@"source": "Yes. MDM accepts IDM's familiar command-line switches, comes with misterdownloadmanager-cli for downloads from a terminal, and has a local, token-protected…","text": "Có. MDM chấp nhận các tùy chọn dòng lệnh quen thuộc của IDM, đi kèm với misterdownloadmanager-cli để tải xuống từ terminal, và có một API tự động hóa cục bộ, được bảo vệ bằng token…"},+ "15e53ab6d7a4fe85": {+ "source": "A row with a <x1/> line above it was translated by machine. When you have checked it (and corrected it if needed), delete that <x2/> line.",+ "text": "Một hàng có dòng <x1/> phía trên nó đã được dịch bằng máy. Khi bạn đã kiểm tra nó (và sửa nếu cần), hãy xóa dòng <x2/> đó."+ },"1610e7aea9f29651": {"source": "a <x1/> file or <x2/> link","text": "một tệp <x1/> hoặc liên kết <x2/>"@@ -1046,6 +1050,10 @@"source": "<g1>5.5 s</g1><g2></g2>","text": "<g1>5,5 giây</g1><g2></g2>"},+ "1ad91cd214e9ba4e": {+ "source": "On Windows the torrent engine can't bind to an adapter yet. So torrents don't start while one is chosen (\"torrents can't go through a chosen network adapter on Windows yet\"), rather than going around it. Tracker names are still looked up by the system's DNS.",+ "text": "Trên Windows, công cụ torrent chưa thể liên kết với bộ điều hợp. Vì vậy, torrent không khởi động khi một bộ điều hợp được chọn (\"torrent chưa thể đi qua bộ điều hợp mạng đã chọn trên Windows\"), thay vì đi vòng qua nó. Tên trình theo dõi vẫn được tra cứu bởi DNS của hệ thống."+ },"1ae1f6b28d64deef": {"source": "The browser extension comes with the app and as its own download for <g1>Chrome, Edge, Brave, Opera and Vivaldi</g1> and <g2>Firefox</g2>. Store listings are on the way. Every file is built from the public source by GitHub Actions and listed with its SHA-256 checksum.","text": "Tiện ích mở rộng trình duyệt đi kèm với ứng dụng và có thể tải xuống riêng cho <g1>Chrome, Edge, Brave, Opera và Vivaldi</g1> cũng như <g2>Firefox</g2>. Các danh sách trên cửa hàng đang được triển khai. Mọi tệp đều được xây dựng từ mã nguồn công khai bởi GitHub Actions và được liệt kê cùng với tổng kiểm SHA-256 của chúng."@@ -4906,6 +4914,10 @@"source": "Firefox 140 or later is needed.","text": "Cần có Firefox 140 trở lên."},+ "7d9cbd5bf6ab33e4": {+ "source": "<g1>Options → Proxy / Socks → Network adapter</g1> holds MDM's connections to one adapter, usually a VPN's (<g2>Options</g2>). On Linux and macOS the torrent engine binds every socket to it: peers, trackers, the DHT and its listening port. UPnP and local peer discovery are turned off then, because they talk to the local network rather than through the adapter. If the adapter goes away, the engine stops, and it starts again through the adapter when it's back.",+ "text": "<g1>Tùy chọn → Proxy / Socks → Bộ điều hợp mạng</g1> giữ các kết nối của MDM với một bộ điều hợp, thường là của VPN (<g2>Tùy chọn</g2>). Trên Linux và macOS, công cụ torrent liên kết mọi socket với nó: các peer, trình theo dõi, DHT và cổng nghe của nó. UPnP và khám phá peer cục bộ sau đó bị tắt, vì chúng nói chuyện với mạng cục bộ thay vì qua bộ điều hợp. Nếu bộ điều hợp biến mất, công cụ sẽ dừng và nó sẽ khởi động lại qua bộ điều hợp khi nó trở lại."+ },"7db9ed501785d447": {"source": "<g1>Quality</g1> applies to every video: <g2>Best quality</g2>, <g3>Up to</g3> a height (each video at that height, or the nearest below it), <g4>Audio only, original</g4>, <g5>Audio only MP3</g5>, <g6>Audio only OPUS</g6> or <g7>Audio only FLAC</g7>. Without ffmpeg, only the qualities that come with their sound are offered, and no MP3, Opus or FLAC.","text": "<g1>Chất lượng</g1> áp dụng cho mọi video: <g2>Chất lượng tốt nhất</g2>, <g3>Tối đa</g3> chiều cao (mỗi video ở chiều cao đó, hoặc gần nhất bên dưới), <g4>Chỉ âm thanh, gốc</g4>, <g5>Chỉ âm thanh MP3</g5>, <g6>Chỉ âm thanh OPUS</g6> hoặc <g7>Chỉ âm thanh FLAC</g7>. Nếu không có ffmpeg, chỉ những chất lượng có sẵn âm thanh mới được cung cấp, và không có MP3, Opus hoặc FLAC."@@ -6714,6 +6726,10 @@"source": "<g1>Category</g1> — chosen from the file's type (Compressed, Documents, Music, Programs, Video or General). Each category has its own folder. <g2>+</g2> beside it makes a new category.","text": "<g1>Danh mục</g1> — được chọn từ loại tệp (Đã nén, Tài liệu, Nhạc, Chương trình, Video hoặc Chung). Mỗi danh mục có thư mục riêng. <g2>+</g2> bên cạnh nó tạo một danh mục mới."},+ "ad45e0dd35085a55": {+ "source": "<g1>Network adapter</g1> — <g2>Any (the system chooses)</g2> is the default. Pick an adapter, usually your VPN's, and every connection MDM opens goes out through it, or not at all. That covers downloads, FTP, the DNS you chose, MDM's own downloads and the update check. It works as a kill switch: when the adapter disconnects, or the VPN is switched off, nothing goes out through your normal connection. Running downloads stop with \"… is not connected\" and start again when the adapter is back. The line under the list shows the adapter's address, or that it isn't connected.",+ "text": "<g1>Bộ điều hợp mạng</g1> — <g2>Bất kỳ (hệ thống tự chọn)</g2> là mặc định. Chọn một bộ điều hợp, thường là của VPN của bạn, và mọi kết nối MDM mở ra sẽ đi qua đó, hoặc không đi đâu cả. Điều đó bao gồm các lượt tải xuống, FTP, DNS bạn đã chọn, các lượt tải xuống của MDM và kiểm tra cập nhật. Nó hoạt động như một công tắc ngắt mạch: khi bộ điều hợp bị ngắt kết nối, hoặc VPN bị tắt, không có gì đi ra qua kết nối thông thường của bạn. Các lượt tải xuống đang chạy sẽ dừng với “… không được kết nối” và bắt đầu lại khi bộ điều hợp hoạt động trở lại. Dòng bên dưới danh sách hiển thị địa chỉ của bộ điều hợp, hoặc cho biết nó không được kết nối."+ },"ad59a2dd8a67146e": {"source": "Click <g1>Find</g1>. The first match is selected.","text": "Nhấp vào <g1>Tìm</g1>. Kết quả khớp đầu tiên sẽ được chọn."diff --git a/i18n/site/zh-hans.json b/i18n/site/zh-hans.jsonindex 0ae09ff4..f24a55bb 100644--- a/i18n/site/zh-hans.json+++ b/i18n/site/zh-hans.json@@ -862,6 +862,10 @@"source": "Yes. MDM accepts IDM's familiar command-line switches, comes with misterdownloadmanager-cli for downloads from a terminal, and has a local, token-protected…","text": "是。MDM 接受 IDM 熟悉的命令行开关,附带 misterdownloadmanager-cli 用于从终端下载,并具有一个本地的、受令牌保护的…"},+ "15e53ab6d7a4fe85": {+ "source": "A row with a <x1/> line above it was translated by machine. When you have checked it (and corrected it if needed), delete that <x2/> line.",+ "text": "上方有<x1/>行的行是机器翻译的。当您检查完(并根据需要更正)后,请删除该<x2/>行。"+ },"1610e7aea9f29651": {"source": "a <x1/> file or <x2/> link","text": "一个 <x1/> 文件或 <x2/> 链接"@@ -1046,6 +1050,10 @@"source": "<g1>5.5 s</g1><g2></g2>","text": "<g1>5.5 秒</g1><g2></g2>"},+ "1ad91cd214e9ba4e": {+ "source": "On Windows the torrent engine can't bind to an adapter yet. So torrents don't start while one is chosen (\"torrents can't go through a chosen network adapter on Windows yet\"), rather than going around it. Tracker names are still looked up by the system's DNS.",+ "text": "在Windows上,洪流引擎尚无法绑定到适配器。因此,在选择适配器时,洪流不会启动(“洪流尚无法通过Windows上选定的网络适配器”),而不是绕过它。跟踪器名称仍然由系统的DNS查找。"+ },"1ae1f6b28d64deef": {"source": "The browser extension comes with the app and as its own download for <g1>Chrome, Edge, Brave, Opera and Vivaldi</g1> and <g2>Firefox</g2>. Store listings are on the way. Every file is built from the public source by GitHub Actions and listed with its SHA-256 checksum.","text": "浏览器扩展程序随应用提供,也可单独下载,支持 <g1>Chrome、Edge、Brave、Opera 和 Vivaldi</g1> 以及 <g2>Firefox</g2>。应用商店上架正在进行中。所有文件均由 GitHub Actions 从公共源代码构建,并列出其 SHA-256 校验和。"@@ -4906,6 +4914,10 @@"source": "Firefox 140 or later is needed.","text": "需要 Firefox 140 或更高版本。"},+ "7d9cbd5bf6ab33e4": {+ "source": "<g1>Options → Proxy / Socks → Network adapter</g1> holds MDM's connections to one adapter, usually a VPN's (<g2>Options</g2>). On Linux and macOS the torrent engine binds every socket to it: peers, trackers, the DHT and its listening port. UPnP and local peer discovery are turned off then, because they talk to the local network rather than through the adapter. If the adapter goes away, the engine stops, and it starts again through the adapter when it's back.",+ "text": "<g1>选项 → 代理/Socks → 网络适配器</g1>将MDM的连接绑定到一个适配器,通常是VPN的(<g2>选项</g2>)。在Linux和macOS上,洪流引擎会将每个套接字绑定到它:对等点、跟踪器、DHT及其监听端口。UPnP和本地对等点发现功能将关闭,因为它们与本地网络通信,而不是通过适配器。如果适配器消失,引擎将停止,并在适配器恢复时再次通过它启动。"+ },"7db9ed501785d447": {"source": "<g1>Quality</g1> applies to every video: <g2>Best quality</g2>, <g3>Up to</g3> a height (each video at that height, or the nearest below it), <g4>Audio only, original</g4>, <g5>Audio only MP3</g5>, <g6>Audio only OPUS</g6> or <g7>Audio only FLAC</g7>. Without ffmpeg, only the qualities that come with their sound are offered, and no MP3, Opus or FLAC.","text": "<g1>质量</g1>适用于所有视频:<g2>最佳质量</g2>、<g3>最高</g3>高度(每个视频都以此高度或最接近的较低高度下载)、<g4>仅音频,原始</g4>、<g5>仅音频 MP3</g5>、<g6>仅音频 OPUS</g6> 或 <g7>仅音频 FLAC</g7>。如果没有 ffmpeg,则只提供自带声音的质量选项,不提供 MP3、Opus 或 FLAC。"@@ -6714,6 +6726,10 @@"source": "<g1>Category</g1> — chosen from the file's type (Compressed, Documents, Music, Programs, Video or General). Each category has its own folder. <g2>+</g2> beside it makes a new category.","text": "<g1>类别</g1> — 根据文件类型(压缩文件、文档、音乐、程序、视频或常规)选择。每个类别都有自己的文件夹。<g2>+</g2> 旁边可创建新类别。"},+ "ad45e0dd35085a55": {+ "source": "<g1>Network adapter</g1> — <g2>Any (the system chooses)</g2> is the default. Pick an adapter, usually your VPN's, and every connection MDM opens goes out through it, or not at all. That covers downloads, FTP, the DNS you chose, MDM's own downloads and the update check. It works as a kill switch: when the adapter disconnects, or the VPN is switched off, nothing goes out through your normal connection. Running downloads stop with \"… is not connected\" and start again when the adapter is back. The line under the list shows the adapter's address, or that it isn't connected.",+ "text": "<g1>网络适配器</g1> — <g2>任何(系统选择)</g2>是默认设置。选择一个适配器,通常是您的 VPN 适配器,MDM 打开的每个连接都将通过它发出,否则就无法发出。这包括下载、FTP、您选择的 DNS、MDM 自己的下载和更新检查。它起到一个终止开关的作用:当适配器断开连接,或 VPN 关闭时,任何数据都不会通过您的正常连接发出。正在进行的下载会显示“……未连接”并停止,当适配器恢复时会重新开始。列表下方的行显示适配器的地址,或显示其未连接。"+ },"ad59a2dd8a67146e": {"source": "Click <g1>Find</g1>. The first match is selected.","text": "点击 <g1>查找</g1>。第一个匹配项将被选中。"diff --git a/tools/lab/magnet-hidden.ps1 b/tools/lab/magnet-hidden.ps1new file mode 100644index 00000000..8f6210a9--- /dev/null+++ b/tools/lab/magnet-hidden.ps1@@ -0,0 +1,222 @@+# Issue #145: a magnet link or a download handed over from the browser while MDM's main window was+# hidden (closed to the notification area) crashed 0.2.4 ("egui backend is implemented incorrectly+# - the user callback was never called"). This script plays it on a test copy, off the screens:+#+# powershell -File tools/lab/magnet-hidden.ps1 -Exe <dir>\misterdownloadmanager.exe [-State hidden] [-Send magnet]+#+# -Send: what the browser hands over.+# magnet the browser gives a magnet link to Windows, which starts the program with it (the file+# association); that second launch passes it to the running copy, which opens Add torrent.+# download the extension gives a download to the native host (misterdownloadmanager-nmhost.exe,+# beside -Exe), started as Firefox starts it (the manifest's path, then the add-on's+# ID) with one native message; the host passes it on and the copy opens Download File+# Info. The address is on 127.0.0.1 port 9, where nothing answers.+# -State: visible (the window as it opens), hidden (ShowWindow hides it, as the notification area+# does), tray (MDM hides it there itself: `/show tray`, after 0.2.4), minimized,+# dialog (Options open, the main window minimized), twice (two in a row, hidden), restoring (a+# plain second launch, which shows the window again, right before), all (each in turn).+# -Renderer: glow or direct3d (MDM_RENDERER; after 0.2.4).+#+# Each run has its own data folder (MDM_DATA_DIR, deleted after unless -Keep), so nothing touches+# an installed MDM, its registrations or the browsers. Nothing goes to the internet: the magnet+# names no tracker, the update check is off, and the torrent engine's DHT, local discovery, UPnP+# and incoming connections are off. A release that can't turn them off (0.2.4 and older) needs+# -NoTorrentEngine: a file named `torrents` in its data folder, so its torrent engine can't start.+# No mouse, keyboard or focus is used: the test copy's own main window is only minimized (without+# activating anything) or hidden with ShowWindow. After a crash, the crash monitor's report window+# (a process of the test copy) is closed.+#+# Prints, per state: whether the copy survived, which dialog opened, and the panic line of its log.+param(+ [Parameter(Mandatory)][string]$Exe,+ [ValidateSet("visible", "hidden", "tray", "minimized", "dialog", "twice", "restoring", "all")]+ [string]$State = "all",+ [ValidateSet("magnet", "download")]+ [string]$Send = "magnet",+ [string]$Renderer = "",+ [string]$Magnet = "magnet:?xt=urn:btih:5b4f0c3a9e1d27f86c0b3a4e9d1f2a7c6e8b0d14&dn=MDM%20test%20145",+ [string]$Url = "http://127.0.0.1:9/mdm-test-145.zip",+ [int]$WaitSec = 6,+ [switch]$NoTorrentEngine,+ [switch]$Keep,+ # One line of JSON per state, for scripts.+ [switch]$Json+)+$ErrorActionPreference = "Stop"+$Exe = (Resolve-Path $Exe).Path+$Host_ = Join-Path (Split-Path $Exe) "misterdownloadmanager-nmhost.exe"+if ($Send -eq "download" -and -not (Test-Path $Host_)) { throw "no native host beside -Exe: $Host_" }+Add-Type @"+using System; using System.Text; using System.Collections.Generic; using System.Runtime.InteropServices;+public static class MagWin {+ [DllImport("user32.dll")] public static extern bool ShowWindow(IntPtr h, int cmd);+ [DllImport("user32.dll")] public static extern bool IsIconic(IntPtr h);+ [DllImport("user32.dll")] public static extern bool IsWindowVisible(IntPtr h);+ [DllImport("user32.dll")] public static extern bool PostMessage(IntPtr h, uint m, IntPtr w, IntPtr l);+ [DllImport("user32.dll")] static extern uint GetWindowThreadProcessId(IntPtr h, out uint p);+ [DllImport("user32.dll", CharSet=CharSet.Unicode)] static extern int GetWindowText(IntPtr h, StringBuilder s, int n);+ delegate bool EnumProc(IntPtr h, IntPtr l);+ [DllImport("user32.dll")] static extern bool EnumWindows(EnumProc f, IntPtr l);+ public static string Title(IntPtr h) { var sb = new StringBuilder(512); GetWindowText(h, sb, 512); return sb.ToString(); }+ // Titled top-level windows of one process, shown or not.+ public static List<IntPtr> Of(uint pid) {+ var o = new List<IntPtr>();+ EnumWindows((h, l) => { uint p; GetWindowThreadProcessId(h, out p); if (p == pid && Title(h).Length > 0) o.Add(h); return true; }, IntPtr.Zero);+ return o;+ }+}+"@+$SW_HIDE = 0; $SW_SHOWMINNOACTIVE = 7; $WM_CLOSE = 0x10+# Windows of the test copy that aren't MDM's own (OpenGL's and the input method's helpers).+$Helpers = "__wglDummyWindowFodder", "NVOGLDC invisible", "Default IME", "MSCTFIME UI"++function Windows-Of([int]$ProcId) {+ [MagWin]::Of([uint32]$ProcId) | Where-Object { $Helpers -notcontains [MagWin]::Title($_) } | ForEach-Object {+ $how = if (-not [MagWin]::IsWindowVisible($_)) { "hidden" } elseif ([MagWin]::IsIconic($_)) { "minimized" } else { "shown" }+ [pscustomobject]@{ Handle = $_; Title = [MagWin]::Title($_); How = $how }+ }+}++# The first shown window of the test copy whose title is like -Title and that isn't one of -Except.+function Wait-Window([int]$ProcId, [string]$Title, [int]$Sec = 20, [IntPtr[]]$Except = @()) {+ $until = (Get-Date).AddSeconds($Sec)+ while ((Get-Date) -lt $until) {+ $w = @(Windows-Of $ProcId | Where-Object { $_.Title -like $Title -and $_.How -eq "shown" -and $Except -notcontains $_.Handle })+ if ($w.Count -ge 1) { return $w[0] }+ Start-Sleep -Milliseconds 200+ }+ throw "no window '$Title' of process $ProcId after $Sec s"+}++# A second launch of the test copy (what Windows starts for a magnet link): it hands its arguments+# to the running copy and quits.+function Second-Launch([string[]]$ArgList) {+ $p = Start-Process -FilePath $Exe -ArgumentList $ArgList -PassThru -WindowStyle Hidden+ if (-not $p.WaitForExit(15000)) {+ # No copy took it (it had crashed): this launch became one. It goes, with its crash monitor.+ Get-CimInstance Win32_Process -Filter "ParentProcessId = $($p.Id)" | ForEach-Object { Stop-Process -Id $_.ProcessId -Force -ErrorAction SilentlyContinue }+ Stop-Process -Id $p.Id -Force+ throw "the second launch didn't quit"+ }+}++# The native host as Firefox starts it (manifest path, add-on ID), with one native message (a+# 32-bit length, then the JSON) on its input; its reply is returned. Through files and cmd's+# redirections: a .NET input stream would put a byte-order mark before the length.+function Native-Message([hashtable]$Message) {+ $json = [Text.Encoding]::UTF8.GetBytes(($Message | ConvertTo-Json -Compress))+ $msg = [IO.Path]::GetTempFileName(); $out = [IO.Path]::GetTempFileName()+ try {+ [IO.File]::WriteAllBytes($msg, [BitConverter]::GetBytes([uint32]$json.Length) + $json)+ $manifest = Join-Path (Split-Path $Exe) "firefox-host.json"+ $p = Start-Process -FilePath "cmd.exe" -PassThru -WindowStyle Hidden -ArgumentList "/d /c `"`"$Host_`" `"$manifest`" [email protected] < `"$msg`" > `"$out`"`""+ if (-not $p.WaitForExit(15000)) { throw "the native host didn't quit" }+ $bytes = [IO.File]::ReadAllBytes($out)+ if ($bytes.Length -lt 4) { return "(no reply)" }+ [Text.Encoding]::UTF8.GetString($bytes, 4, $bytes.Length - 4)+ } finally { Remove-Item $msg, $out -ErrorAction SilentlyContinue }+}++function Hand-Over {+ if ($Send -eq "magnet") {+ Second-Launch @("`"$Magnet`"")+ return "second launch"+ }+ # What the extension sends for a download it takes over from Firefox (background.js).+ Native-Message @{+ url = $Url; filename = "mdm-test-145.zip"; mime = "application/zip"; size = 10485760+ referrer = "http://127.0.0.1:9/"; user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:144.0) Gecko/20100101 Firefox/144.0"+ brands = @(); v = "0.2.4"; explicit = $true+ }+}++function Run-State([string]$St) {+ $data = Join-Path ([IO.Path]::GetTempPath()) ("mdm-145-" + [guid]::NewGuid().ToString("N").Substring(0, 8))+ New-Item -ItemType Directory -Force $data | Out-Null+ # The list's settings: no update check, no first-start questions, the torrent engine kept local.+ $settings = @{+ update_check = $false; helpers_asked = $true; language_asked = $true; extension_never_ask = $true+ torrent_dht = $false; torrent_lsd = $false; torrent_upnp = $false; torrent_incoming = $false+ }+ @{ next_id = 1; items = @(); version = 2; settings = $settings } | ConvertTo-Json -Depth 4 |+ Set-Content -Encoding Ascii (Join-Path $data "downloads.json")+ if ($NoTorrentEngine) {+ Set-Content -Encoding Ascii (Join-Path $data "torrents") "not a folder (tools/lab/magnet-hidden.ps1)"+ }+ $env:MDM_DATA_DIR = $data+ $env:MDM_OFFSCREEN = "1"+ if ($Renderer) { $env:MDM_RENDERER = $Renderer } else { Remove-Item Env:MDM_RENDERER -ErrorAction SilentlyContinue }+ $app = Start-Process -FilePath $Exe -PassThru+ $reply = ""+ try {+ # The main window: the copy's first (its title has the version, Options' starts the same).+ $main = Wait-Window $app.Id "Mister Download Manager*"+ Start-Sleep -Milliseconds 800+ switch ($St) {+ "visible" { }+ "hidden" { [MagWin]::ShowWindow($main.Handle, $SW_HIDE) | Out-Null }+ "tray" { Second-Launch @("/show", "tray") }+ "minimized" { [MagWin]::ShowWindow($main.Handle, $SW_SHOWMINNOACTIVE) | Out-Null }+ "dialog" {+ $had = @(Windows-Of $app.Id | ForEach-Object { $_.Handle })+ Second-Launch @("/show", "options")+ Wait-Window $app.Id "*" -Except $had | Out-Null+ Start-Sleep -Milliseconds 500+ [MagWin]::ShowWindow($main.Handle, $SW_SHOWMINNOACTIVE) | Out-Null+ }+ "twice" { [MagWin]::ShowWindow($main.Handle, $SW_HIDE) | Out-Null }+ "restoring" { [MagWin]::ShowWindow($main.Handle, $SW_HIDE) | Out-Null }+ }+ Start-Sleep -Milliseconds 1500+ $before = (Windows-Of $app.Id | Where-Object { $_.Handle -eq $main.Handle }).How+ if ($St -eq "restoring") {+ # A plain second launch shows the window again; the hand-over follows before it has.+ Start-Process -FilePath $Exe -WindowStyle Hidden | Out-Null+ }+ $reply = Hand-Over+ if ($St -eq "twice") {+ Start-Sleep -Milliseconds 300+ $app.Refresh()+ $reply += " / " + $(if ($app.HasExited) { "(none: the copy had closed)" } else { Hand-Over })+ }+ Start-Sleep -Seconds $WaitSec+ $app.Refresh()+ $alive = -not $app.HasExited+ $wins = if ($alive) { (Windows-Of $app.Id | ForEach-Object { "$($_.Title) [$($_.How)]" }) -join "; " } else { "" }+ $log = Get-ChildItem (Join-Path $data "logs") -Filter *.log -ErrorAction SilentlyContinue |+ Get-Content -ErrorAction SilentlyContinue+ $panic = @($log | Select-String "panic: " | ForEach-Object { $_.Line -replace '^.*panic: ', '' })+ $opened = @($log | Select-String "window opened: " | ForEach-Object { $_.Line -replace '^.*window opened: ', '' } |+ Where-Object { $_ -ne "main" })+ $reports = @(Get-ChildItem (Join-Path $data "crashes") -Filter *.txt -ErrorAction SilentlyContinue).Name+ $row = [pscustomobject]@{+ State = $St; Send = $Send; Exe = $Exe; Renderer = $(if ($Renderer) { $Renderer } else { "default" })+ MainBefore = $before; HandOver = $reply; Survived = $alive; Opened = ($opened -join ", "); Windows = $wins+ Panic = ($panic -join " | "); CrashReports = ($reports -join ", "); Data = $data+ }+ if ($Json) { $row | ConvertTo-Json -Compress } else { $row }+ } finally {+ $app.Refresh()+ if (-not $app.HasExited) {+ # The test copy quits, and its crash monitor with it.+ Second-Launch @("/exit")+ if (-not $app.WaitForExit(15000)) { Stop-Process -Id $app.Id -Force }+ }+ # Its crash monitor: gone with it, or showing a crash report, closed here.+ Start-Sleep -Milliseconds 1500+ Get-CimInstance Win32_Process -Filter "Name = '$([IO.Path]::GetFileName($Exe))'" | Where-Object {+ $_.ExecutablePath -eq $Exe -and [int]$_.ParentProcessId -eq $app.Id+ } | ForEach-Object {+ $p = Get-Process -Id $_.ProcessId -ErrorAction SilentlyContinue+ if ($p) {+ Windows-Of $p.Id | ForEach-Object { [MagWin]::PostMessage($_.Handle, $WM_CLOSE, [IntPtr]::Zero, [IntPtr]::Zero) | Out-Null }+ if (-not $p.WaitForExit(10000)) { Stop-Process -Id $p.Id -Force }+ }+ }+ if (-not $Keep) { Remove-Item -Recurse -Force $data -ErrorAction SilentlyContinue }+ Remove-Item Env:MDM_DATA_DIR, Env:MDM_OFFSCREEN, Env:MDM_RENDERER -ErrorAction SilentlyContinue+ }+}++$states = if ($State -eq "all") { "visible", "hidden", "tray", "minimized", "dialog", "twice", "restoring" } else { @($State) }+foreach ($s in $states) { Run-State $s }