Skip to content

misterdownloadmanager: The ultimate open-source, clean-room download manager written from scratch in pure Rust for Windows, Mac, and Linux

Video button: qualities in a menu on the page, with Video/Audio tabs and fast look-ups; HLS sizes, duplicate videos, a smooth progress bar (#449)

JuanF00797e31ad5810e
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 98bc4e47..af7dec8a 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
### Added
+- **The video's qualities in the page:** a click on the Download video button opens a menu over the video that lists its qualities with their sizes, video and audio in their own tabs (looked up by MDM with yt-dlp). The one you pick downloads at once with only its progress window; MDM's main window stays where it is. **Open in Mister Download Manager…** in the same menu opens the Download video window as before. A stream the page plays (HLS) is listed at once, read by MDM itself; the same video asked again within 10 minutes opens at once; and the pick starts downloading without looking the video up a second time.
- **Deferred Rename** on a download's **Download status** tab: save a new name while a download runs (**Confirm**, **Enter**, or 3 seconds idle) to rename the finished file's stem (along with yt-dlp subtitle files) or an exclusive finished folder on completion, without touching the live stream or `.mdm.part` state; shared/save or pre-existing folders, split-archive volumes, and single-file torrents keep their original names ([#655](https://github.com/anefzaoui/misterdownloadmanager/pull/655)).
- Helium: on Linux and macOS, MDM offers the extension to Helium, through Helium's own services: with them allowed, it arrives at Helium's next start (on macOS Helium asks first). It names the store as Helium does: Helium asks Google's update service without its version, and Google answers it "no update", which is why the offer MDM writes for Chrome on Windows, which Helium reads there too, never brought it the extension. On Windows MDM's window still opens the store's page in Helium. On Linux the .deb's and .rpm's helper files for everyone cover Helium too, so MDM writes none in its folder in your home. [Browser integration](docs/browser-integration.md#helium) says how to add the extension in Helium, and what to turn on when Helium says **Extension downloads are disabled** ([#685](https://github.com/anefzaoui/misterdownloadmanager/issues/685)).
- Links you add by hand go with the User-Agent of your default browser, at the version you have installed (Chrome, Edge, Brave, Opera, Vivaldi, Firefox or Safari, on Windows, Linux and macOS), instead of the Internet Explorer 11 one MDM sent until now, which some sites no longer let through. MDM looks the browser up once as it starts. **Options → Downloads** shows it with **Automatic** ticked; untick it to type your own, and a User-Agent you had set stays yours. When MDM doesn't recognise your default browser, it sends a current Chrome's; when a site turns a browser's User-Agent away, it asks once more with its former one, as for downloads from the browser (part of [#668](https://github.com/anefzaoui/misterdownloadmanager/issues/668)).
@@ -23,6 +24,9 @@ Each release's notes on GitHub come from its section here (`## [X.Y.Z]`, see
### Fixed
+- **Sizes for a stream's qualities:** HLS qualities showed no size; each is now estimated from its bitrate and the video's length, in the Download video window and in the download list.
+- **A video already in the list is no longer downloaded again without a word:** picking the same quality of the same video, from the menu over a video or the Download video window, now follows Options → Downloads ("If a duplicate download link is added": ask, a numbered name, overwrite, or open / resume the one there). Another quality of the same video is not a duplicate.
+- The progress window's bar glides as the download goes, instead of moving in steps four times a second.
- File names whose stem is a Windows reserved device name followed by spaces before the dot (`CON .txt`, `LPT1 .log`) are now prefixed with `_` (`_CON .txt`), as `CON.txt` already was ([#655](https://github.com/anefzaoui/misterdownloadmanager/pull/655)).
- The browser's **video button** over a video in a feed (a site's home page, a timeline, search results) sends that video's own address instead of the page's, which yt-dlp read as no video at all ("No video found on this page"). It finds the post the video sits in, as you would: on LinkedIn its `/feed/update/urn:li:activity:…/` (or `urn:li:ugcPost:…`) address, read from the post in LinkedIn's 2026 feed too, on Facebook the reel's, the video's or the post's own link, on X the post's (`/status/…`), on Instagram `/p/…` or `/reel/…`, on Reddit the post's comments page, on TikTok `/@…/video/…`, on Vimeo and Dailymotion the clip's page, and elsewhere a post's own link, such as its timestamp. Only a post that names that one video counts. When nothing does, the video's own file goes (when it plays one, not pieces), and otherwise nothing goes and the button says to open the post and use the button there ([#689](https://github.com/anefzaoui/misterdownloadmanager/issues/689), [#643](https://github.com/anefzaoui/misterdownloadmanager/issues/643)).
- Torrents: pausing a torrent just as one of its pieces was being checked no longer leaves it one piece short for good. That piece was neither counted as downloaded nor asked for again, so the torrent stopped just before the end, and pausing and starting it again didn't help, only restarting MDM did; a pause now puts that piece back to be downloaded again ([#706](https://github.com/anefzaoui/misterdownloadmanager/issues/706)).
diff --git a/ROADMAP.md b/ROADMAP.md
index b4931737..ffc82f69 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -568,6 +568,15 @@ These ship in a later version, when they're ready.
- 🔄 In English, the list's dates on the system's 12- or 24-hour clock
([#392](https://github.com/anefzaoui/misterdownloadmanager/issues/392)): in review
- 🔄 Help: when an antivirus or VirusTotal flags MDM
+- 🔄 The Download video button lists the video's qualities, with their sizes, in a menu on the
+ page, video and audio in their own tabs: the one picked downloads at once with only its progress
+ window, MDM's main window staying where it is; "Open in Mister Download Manager…" keeps the
+ Download video window. A stream the page plays (HLS) is listed at once, read by MDM itself; the
+ same video asked again within 10 minutes opens at once; the pick starts without looking the
+ video up a second time: in review
+- 🔄 Picking a video quality already in the list (the menu over a video, the Download video window)
+ follows Options' duplicate setting instead of downloading it again: in review
+- 🔄 The progress window's bar glides instead of moving in steps: in review
- 🔄 Linux, what's left ([#164](https://github.com/anefzaoui/misterdownloadmanager/issues/164)):
screen readers (Orca) reading MDM's windows; browsers installed as a Flatpak (Firefox from
Flathub may reach MDM through the desktop, as the Snap does: to check); native Wayland windows
@@ -743,6 +752,7 @@ These ship in a later version, when they're ready.
([#335](https://github.com/anefzaoui/misterdownloadmanager/issues/335)): fix in review
- 🔄 A duplicate prompt for a finished file that is gone
([#342](https://github.com/anefzaoui/misterdownloadmanager/issues/342)): fix in review
+- 🔄 No size for a stream's qualities (HLS) in the Download video window: fix in review
- 🔍 A 10-second freeze of the window after a night left open
([#304](https://github.com/anefzaoui/misterdownloadmanager/issues/304)): most likely the
computer waking from sleep; waiting on the reporter's full report
diff --git a/crates/app/src/app.rs b/crates/app/src/app.rs
index 26a0424c..0980df25 100644
--- a/crates/app/src/app.rs
+++ b/crates/app/src/app.rs
@@ -43,6 +43,157 @@ enum Pending {
Command(Box<ipc::Command>),
/// From Add URL.
Url(dialogs::NewUrl),
+ /// A video from Download video from a page, or the browser's quality menu (`true`), with
+ /// the menu's look-up: it goes with the new download only, never to the one already there.
+ Video(Box<crate::videodlg::VideoAdd>, bool),
+}
+
+/// What Options → Downloads → "If a duplicate download link is added" (0 ask, 1 numbered name,
+/// 2 overwrite, 3 open or resume) makes of a new download ([`duplicate_step`]).
+#[derive(Clone, Copy, Debug, PartialEq, Eq)]
+enum DupStep {
+ /// Added: no duplicate, or added again under a numbered name.
+ Add,
+ /// Added once the one already there has gone, its files and its row: Options' overwrite
+ /// (`true`: a video's yt-dlp files too, [`replaced_files`]), or its finished file is gone
+ /// (#342, nothing to duplicate; `false`: its row, state and part file only, as for any file).
+ Replace(u64, bool),
+ /// Not added: the one already there is opened (finished) or resumed.
+ Existing(u64),
+ /// Not added yet: the user is asked (dialogs::Duplicate).
+ Ask(u64),
+}
+
+/// [`DupStep`] for Options' `action` when `found` is the download already there and whether its
+/// finished file is gone (#342).
+fn duplicate_step(action: u8, found: Option<(u64, bool)>) -> DupStep {
+ match found {
+ None => DupStep::Add,
+ Some((dup, true)) => DupStep::Replace(dup, false),
+ Some((dup, false)) => match action {
+ 1 => DupStep::Add,
+ 2 => DupStep::Replace(dup, true),
+ 3 => DupStep::Existing(dup),
+ _ => DupStep::Ask(dup),
+ },
+ }
+}
+
+/// A video already in the list as `page` in quality `selector` (another quality of the same page
+/// is another download, not a duplicate).
+fn same_video(item: &Item, page: &url::Url, selector: &str) -> bool {
+ item.url == *page && item.video.as_ref().is_some_and(|v| v.selector == selector)
+}
+
+/// Where a video's choice goes after the duplicate check: added now, kept for the user's
+/// answer, or (the one already there opened or resumed) dropped with the menu's look-up, which
+/// only ever goes with the download born from its own choice.
+enum VideoRoute {
+ Add(Box<crate::videodlg::VideoAdd>),
+ Ask(u64, Pending),
+ Dropped,
+}
+
+fn video_route(step: DupStep, add: crate::videodlg::VideoAdd, from_menu: bool) -> VideoRoute {
+ match step {
+ DupStep::Add | DupStep::Replace(..) => VideoRoute::Add(Box::new(add)),
+ DupStep::Ask(dup) => VideoRoute::Ask(dup, Pending::Video(Box::new(add), from_menu)),
+ DupStep::Existing(_) => VideoRoute::Dropped,
+ }
+}
+
+/// What the duplicate question's answer does ([`answered`]).
+enum Answer {
+ /// Open or resume the one already there (3): what was being added is dropped, a video's
+ /// look-up with it.
+ Existing(u64),
+ /// Add it: under a numbered name (1), or over the one there (2, `Some`).
+ Add(Option<u64>, Pending),
+ /// The one asked about has left the list meanwhile: checked afresh, as if just added.
+ Again(Pending),
+}
+
+/// The duplicate question about `dup` (`there`: still in the list) answered `choice`, numbered
+/// as Options lists them.
+fn answered(dup: u64, there: bool, choice: usize, pending: Pending) -> Answer {
+ match choice {
+ _ if !there => Answer::Again(pending),
+ 3 => Answer::Existing(dup),
+ 2 => Answer::Add(Some(dup), pending),
+ _ => Answer::Add(None, pending),
+ }
+}
+
+/// The menu's look-up for a video being added: it goes with a download started now only, and
+/// only while fresh ([`crate::videolookup::TTL`], as at its start): a question answered long
+/// after, or a download queued, looks the page up afresh.
+fn kept_lookup(
+ preloaded: Option<mdm_tools::video::Preloaded>,
+ goes: VideoGoes,
+ now: Instant,
+) -> Option<mdm_tools::video::Preloaded> {
+ preloaded.filter(|p| {
+ goes == VideoGoes::Start
+ && now.saturating_duration_since(p.slot.born()) < crate::videolookup::TTL
+ })
+}
+
+/// What replacing download `id` takes from the disk; None when it isn't in `items` or runs (it
+/// is left alone, the new copy then gets a numbered name). Its finished file, state and part
+/// file, as for any download; with `yt_dlp` (Options' overwrite, chosen: never #342's automatic
+/// one), for a video also what yt-dlp left for it (`mdm_tools::video::own_files`). Never a file
+/// another download may own: its file, or one named after its name or stem and a dot (its part
+/// files, running or paused) in that folder, letter case aside.
+fn replaced_files(items: &[Item], id: u64, yt_dlp: bool) -> Option<Vec<PathBuf>> {
+ let item = items.iter().find(|i| i.id == id)?;
+ if item.live.is_some() {
+ return None;
+ }
+ let low = |p: &std::path::Path| p.to_string_lossy().to_lowercase();
+ let others: Vec<&Item> = items.iter().filter(|i| i.id != id).collect();
+ let dest = &item.dest;
+ let mut files = Vec::new();
+ if item.status == Status::Complete {
+ files.push(dest.clone());
+ }
+ files.push(state_path(dest));
+ files.push(mdm_engine::naming::part_path(dest));
+ if yt_dlp
+ && item.video.is_some()
+ && let (Some(dir), Some(stem)) = (dest.parent(), dest.file_stem())
+ {
+ let folder = low(dir);
+ let named: Vec<String> = others
+ .iter()
+ .filter(|o| o.dest.parent().is_some_and(|p| low(p) == folder))
+ .flat_map(|o| [o.dest.file_name(), o.dest.file_stem()])
+ .flatten()
+ .map(|n| format!("{}.", n.to_string_lossy().to_lowercase()))
+ .collect();
+ for f in mdm_tools::video::own_files(dir, &stem.to_string_lossy(), true) {
+ let name = f
+ .file_name()
+ .map(|n| n.to_string_lossy().to_lowercase())
+ .unwrap_or_default();
+ if !named.iter().any(|n| name.starts_with(n)) && !files.contains(&f) {
+ files.push(f);
+ }
+ }
+ }
+ files.retain(|f| !others.iter().any(|o| low(&o.dest) == low(f)));
+ Some(files)
+}
+
+/// The quality menu's answer for its choice after the duplicate check: a new download started or
+/// queued; else `sent` (the one already there was opened or resumed, or MDM asks what to do in its
+/// Duplicate window), which the extension shows as sent to MDM.
+fn menu_answer(step: DupStep, start_now: bool) -> &'static str {
+ use ipc::api::lookup;
+ match step {
+ DupStep::Add | DupStep::Replace(..) if start_now => lookup::STARTED,
+ DupStep::Add | DupStep::Replace(..) => lookup::QUEUED,
+ DupStep::Existing(_) | DupStep::Ask(_) => lookup::SENT,
+ }
}
/// Menu, toolbar and context-menu commands.
@@ -691,6 +842,10 @@ pub struct App {
update_checked_this_run: Option<i64>,
progress: Vec<Progress>,
complete: Vec<Complete>,
+ /// Downloads just finished whose progress window shows them whole for a moment
+ /// ([`progress::SHOWN_WHOLE`]) before it gives way to Download complete: each one's id, and
+ /// when it finished.
+ finishing: Vec<(u64, Instant)>,
settings: Settings,
speed_settings: Option<dialogs::SpeedSettings>,
scheduler: Option<crate::scheduler::Scheduler>,
@@ -724,6 +879,8 @@ pub struct App {
checksums: Vec<crate::checksum::ChecksumDialog>,
batch: Option<crate::batch::Batch>,
video_dlg: Option<crate::videodlg::VideoDialog>,
+ /// The browser's quality menu's look-ups (videolookup.rs).
+ lookups: crate::videolookup::Lookups,
/// Download a gallery (#58).
gallery_dlg: Option<crate::gallerydlg::GalleryDialog>,
torrent_dlg: Option<crate::torrentdlg::TorrentDialog>,
@@ -1045,6 +1202,49 @@ fn drive_file_behind_player(cmd: &ipc::Command) -> Option<String> {
.map(str::to_owned)
}
+/// What the browser's quality menu leaves to the Download video window (the button's click, as
+/// before it): everything in a run without a window, a Google Drive file's player (#34: the
+/// file itself, as uploaded, which the click's command downloads), and an address not on the
+/// web (the browser's host sends none).
+fn menu_needs_window(cmd: &ipc::Command, headless: bool) -> bool {
+ headless
+ || cmd.video_lookup.as_ref().is_some_and(|ask| {
+ !(ask.address.starts_with("http://") || ask.address.starts_with("https://"))
+ || drive_file_behind_player(&ipc::Command {
+ video_page: Some(ask.address.clone()),
+ referer: cmd.referer.clone(),
+ ..Default::default()
+ })
+ .is_some()
+ })
+}
+
+/// Where a video just added goes ([`video_goes`]).
+#[derive(Clone, Copy, Debug, PartialEq, Eq)]
+enum VideoGoes {
+ /// Downloading now, its progress window up.
+ Start,
+ /// Into the queue the selection panel asks for (Options → Downloads).
+ AskQueue,
+ /// Into the main queue, nothing asked.
+ MainQueue,
+}
+
+/// Where a video added goes: Download Now (`start_now`) starts it; Later asks which queue when
+/// Options say so (`queue_panel`). A choice made in the browser's quality menu (`from_menu`,
+/// with Options' "only add to the queue") asks nothing in MDM's window, which the browser's
+/// choice doesn't open: it goes into the main queue, as the browser's own downloads do then
+/// (`open_url`'s silent path). Never in no queue at all, which a cancelled panel would leave it.
+fn video_goes(start_now: bool, from_menu: bool, queue_panel: bool) -> VideoGoes {
+ if start_now {
+ VideoGoes::Start
+ } else if queue_panel && !from_menu {
+ VideoGoes::AskQueue
+ } else {
+ VideoGoes::MainQueue
+ }
+}
+
pub fn auth_headers(login: Option<&(String, String)>) -> HeaderMap {
let mut h = HeaderMap::new();
if let Some((user, pass)) = login {
@@ -1320,6 +1520,7 @@ impl App {
kept_answers: Default::default(),
progress: Vec::new(),
complete: Vec::new(),
+ finishing: Vec::new(),
settings,
speed_settings: None,
scheduler: None,
@@ -1338,6 +1539,7 @@ impl App {
checksums: Vec::new(),
batch: None,
video_dlg: None,
+ lookups: Default::default(),
gallery_dlg: None,
torrent_dlg: None,
torrent_waiting: Default::default(),
@@ -3971,8 +4173,10 @@ impl App {
.with_music_folder(music)
}
- /// Download video from a page → Download Now / Later.
- fn add_video(&mut self, add: crate::videodlg::VideoAdd) {
+ /// Download video from a page → Download Now / Later; or the browser's quality menu's
+ /// choice (`from_menu`), which never asks for a queue ([`video_goes`]). Through the
+ /// duplicate check first ([`Self::add_video_checked`]).
+ fn add_video(&mut self, add: crate::videodlg::VideoAdd, from_menu: bool) {
let folder = add
.dest
.parent()
@@ -4004,25 +4208,80 @@ impl App {
add.context,
crate::i18n::mark("from a page (yt-dlp)"),
);
+ let goes = video_goes(add.start_now, from_menu, self.settings.queue_panel_later);
if let Some(item) = self.item(id) {
item.video = Some(model::VideoSpec {
selector: add.selector,
subs: add.subs,
});
- }
- // The Subtitles choice is offered again for the next video (#68).
- if let Some(subs) = add.remember {
- self.settings.video_subs = subs;
+ // The quality menu's look-up goes with this new download only, started now and while
+ // fresh: one queued for later, or added on a duplicate question answered late,
+ // starts with a look-up of its own (the links will have expired).
+ item.preloaded = kept_lookup(add.preloaded, goes, Instant::now());
}
self.selection.set(id);
- if add.start_now {
- self.start(id, true);
- } else {
- self.queue_later(vec![id], self.settings.queue_panel_later);
+ match goes {
+ VideoGoes::Start => self.start(id, true),
+ VideoGoes::AskQueue => self.queue_later(vec![id], true),
+ VideoGoes::MainQueue => self.queue_later(vec![id], false),
}
self.dirty = true;
}
+ /// The browser's quality menu over a video (crates/nmhost, videolookup.rs): a look-up
+ /// started (answered at once, yt-dlp on a thread of its own), a question about one, or the
+ /// choice made there, added as Download video's Download Now adds it: MDM's window stays
+ /// where it is, the download's progress window opens (Options' "only add to the queue":
+ /// into the main queue instead, with no queue panel either).
+ fn quality_menu(&mut self, cmd: &ipc::Command) -> ipc::api::VideoLookupAnswer {
+ use ipc::api::{VideoLookupAnswer, lookup};
+ if menu_needs_window(cmd, self.headless) {
+ return VideoLookupAnswer::of(lookup::USE_WINDOW);
+ }
+ let now = Instant::now();
+ if let Some(ask) = &cmd.video_lookup {
+ crate::videodlg::refresh_ytdlp(&self.rt);
+ let Some(tool) = mdm_tools::tools_dir()
+ .as_deref()
+ .and_then(mdm_tools::installed)
+ else {
+ return VideoLookupAnswer::failed(lookup::NO_YTDLP, None);
+ };
+ return self.lookups.start(ask, cmd, tool.exe, self.rt.clone(), now);
+ }
+ if let Some(token) = &cmd.video_poll {
+ return self.lookups.poll(token, now);
+ }
+ let Some(pick) = &cmd.video_pick else {
+ return VideoLookupAnswer::of(lookup::USE_WINDOW);
+ };
+ let folder = self.settings.category_dir(Category::Video, &self.downloads);
+ // A sound-only choice saves in Music, as in the Download video window (#611).
+ let music = (!Category::Music.deleted())
+ .then(|| self.settings.category_dir(Category::Music, &self.downloads));
+ let start_now = !self.settings.only_add_to_queue;
+ let add = self.lookups.pick(pick, cmd.private, now).and_then(|p| {
+ crate::videolookup::video_add(
+ p,
+ &folder,
+ music.as_deref(),
+ start_now,
+ &self.settings.video_subs,
+ )
+ });
+ let Some(add) = add else {
+ return VideoLookupAnswer::of(lookup::USE_WINDOW);
+ };
+ // Its category's folder, made when it isn't there yet (the window asks first; the
+ // choice was made in the browser).
+ if let Some(dir) = add.dest.parent() {
+ let _ = std::fs::create_dir_all(dir);
+ }
+ // Already in the list in this quality: Options' "If a duplicate download link is added".
+ let step = self.add_video_checked(add, true);
+ VideoLookupAnswer::of(menu_answer(step, start_now))
+ }
+
/// A playlist's videos (#69), one download each, into its folder: names picked with the
/// folder read once (naming::Stems), added at once and saved once, then queued (Download
/// Now starts the main queue, so its "N at the same time" applies).
@@ -4113,7 +4372,13 @@ impl App {
.map(|s| s.to_string_lossy().into_owned())
.unwrap_or_else(|| "video".into());
let _ = std::fs::create_dir_all(&folder);
- let started = mdm_tools::video::VideoJob::start(
+ // The quality menu's look-up, for this first run only, while it is fresh (a run started
+ // again, or later than the menu keeps its look-ups, reads the page afresh).
+ let preloaded = item
+ .preloaded
+ .take()
+ .filter(|p| p.slot.born().elapsed() < crate::videolookup::TTL);
+ let started = mdm_tools::video::VideoJob::start_with(
&tool.exe,
item.url.as_str(),
&spec.selector,
@@ -4125,6 +4390,7 @@ impl App {
item.size,
&crate::videodlg::from_browser(&item.context),
&spec.subs,
+ preloaded,
);
match started {
Ok(job) => {
@@ -4983,6 +5249,13 @@ impl App {
/// is on, whatever the automation API's switch: it may list, add and act, nothing else.
fn answer(&mut self, cmd: &ipc::Command) -> String {
use ipc::api::{ApiAnswer, DownloadInfo, ErrorAnswer, ListAnswer, line};
+ // The browser's quality menu (its native host asks): whatever the automation API's
+ // switch, and never for a paired device.
+ if !cmd.remote
+ && (cmd.video_lookup.is_some() || cmd.video_poll.is_some() || cmd.video_pick.is_some())
+ {
+ return line(&self.quality_menu(cmd));
+ }
if cmd.pair && !cmd.remote {
return self.pair_answer();
}
@@ -6162,32 +6435,23 @@ impl App {
// A download started early behind Download File Info stays quiet until the dialog's
// answer (Start shows its box then; Cancel drops it).
let early = self.file_info.as_ref().and_then(|f| f.early);
- for id in finished {
- // This file's "Show download complete dialog" (its progress window's Options on
- // completion tab), read before the window closes.
- let window = self.progress.iter().find(|p| p.id == id);
- let this_file = window.is_none_or(|p| p.shows_complete());
- if let Some(w) = window.and_then(Progress::when_done) {
- self.when_done(w);
- }
- self.progress.retain(|p| p.id != id);
- if Some(id) == early {
- continue;
- }
- if self.settings.show_complete
- && this_file
- && let Some(i) = self.items.iter().find(|i| i.id == id)
- {
- self.complete.push(Complete {
- id,
- url: i.url.to_string(),
- path: i.dest.clone(),
- size: i.size.unwrap_or(i.downloaded),
- dont_show: false,
- notices: i.notices.clone(),
- seen: false,
- });
- }
+ let close = finished_windows(
+ finished,
+ |id| self.progress.iter().any(|p| p.id == id && !p.hidden),
+ |id| {
+ self.items
+ .iter()
+ .any(|i| i.id == id && i.status == Status::Complete)
+ },
+ &mut self.finishing,
+ now,
+ );
+ for id in close {
+ self.close_finished(id, early);
+ }
+ // The next one's moment ends without a frame of its own otherwise (nothing runs).
+ if let Some(&(_, at)) = self.finishing.iter().min_by_key(|(_, at)| *at) {
+ ctx.request_repaint_after(progress::SHOWN_WHOLE.saturating_sub(now.duration_since(at)));
}
if any_live {
ctx.request_repaint_after(Duration::from_millis(250));
@@ -6228,6 +6492,36 @@ impl App {
}
}
+ /// A finished download's progress window closes, and Download complete opens for it (`early`:
+ /// the download Download File Info started early, which stays quiet).
+ fn close_finished(&mut self, id: u64, early: Option<u64>) {
+ // This file's "Show download complete dialog" (its progress window's Options on
+ // completion tab), read before the window closes.
+ let window = self.progress.iter().find(|p| p.id == id);
+ let this_file = window.is_none_or(|p| p.shows_complete());
+ if let Some(w) = window.and_then(Progress::when_done) {
+ self.when_done(w);
+ }
+ self.progress.retain(|p| p.id != id);
+ if Some(id) == early {
+ return;
+ }
+ if self.settings.show_complete
+ && this_file
+ && let Some(i) = self.items.iter().find(|i| i.id == id)
+ {
+ self.complete.push(Complete {
+ id,
+ url: i.url.to_string(),
+ path: i.dest.clone(),
+ size: i.size.unwrap_or(i.downloaded),
+ dont_show: false,
+ notices: i.notices.clone(),
+ seen: false,
+ });
+ }
+ }
+
/// A list that can't be saved says so, once for each reason (not every second); it was
/// silent and a restart lost the changes.
fn report_save(&mut self, outcome: Result<(), String>) {
@@ -7740,52 +8034,86 @@ impl App {
self.file_info = Some(fi);
}
+ /// Options → Downloads → "If a duplicate download link is added", for a new download that
+ /// the first row `same` finds already is: what becomes of it ([`duplicate_step`]). The one
+ /// already there is replaced (its files and row go), opened or resumed here; asking is the
+ /// caller's ([`Self::ask_duplicate`]).
+ fn duplicate_of(&mut self, same: impl Fn(&Item) -> bool) -> DupStep {
+ if std::mem::take(&mut self.duplicate_cleared) {
+ return DupStep::Add;
+ }
+ let found = self
+ .items
+ .iter()
+ .find(|i| same(i))
+ .map(|i| (i.id, model::finished_file_gone(i.status, &i.dest)));
+ let step = duplicate_step(self.settings.duplicate_action, found);
+ match step {
+ // #342: a finished file moved or deleted leaves nothing to duplicate: the old row
+ // goes and this is an ordinary new download.
+ DupStep::Replace(dup, outputs) => self.replace(dup, outputs),
+ DupStep::Existing(dup) => self.open_or_resume(dup),
+ DupStep::Add | DupStep::Ask(_) => {}
+ }
+ step
+ }
+
+ /// "Duplicate download link" about `dup`, for `pending`. One question at a time; the others
+ /// wait their turn (a second link while the first was asked was dropped).
+ fn ask_duplicate(&mut self, dup: u64, pending: Pending) {
+ let name = self
+ .items
+ .iter()
+ .find(|i| i.id == dup)
+ .map(|i| i.file_name.clone())
+ .unwrap_or_default();
+ let ask = (dup, pending, dialogs::Duplicate::new(name));
+ if self.duplicate.is_none() {
+ self.duplicate = Some(ask);
+ } else {
+ self.duplicates_waiting.push_back(ask);
+ }
+ }
+
/// Options → Downloads → "If a duplicate download link is added": true when adding `url`
/// goes on now. 0 asks (`pending` waits), 1 adds it with a numbered name, 2 replaces the
/// download already there, 3 opens that one (finished) or resumes it.
fn duplicate_gate(&mut self, url: &url::Url, pending: impl FnOnce() -> Pending) -> bool {
- if std::mem::take(&mut self.duplicate_cleared) {
- return true;
- }
- let Some((dup, name, gone)) = self.items.iter().find(|i| i.url == *url).map(|i| {
- (
- i.id,
- i.file_name.clone(),
- model::finished_file_gone(i.status, &i.dest),
- )
- }) else {
- return true;
- };
- // #342: its file was moved or deleted, so there is nothing to duplicate: the old row
- // goes and this is an ordinary new download.
- if gone {
- self.overwrite(dup);
- return true;
- }
- match self.settings.duplicate_action {
- 1 => true,
- 2 => {
- self.overwrite(dup);
- true
- }
- 3 => {
- self.open_or_resume(dup);
- false
- }
- _ => {
- // One question at a time; the others wait their turn (a second link while the
- // first was asked was dropped).
- let ask = (dup, pending(), dialogs::Duplicate::new(name));
- if self.duplicate.is_none() {
- self.duplicate = Some(ask);
- } else {
- self.duplicates_waiting.push_back(ask);
- }
+ match self.duplicate_of(|i| i.url == *url) {
+ DupStep::Add | DupStep::Replace(..) => true,
+ DupStep::Existing(_) => false,
+ DupStep::Ask(dup) => {
+ self.ask_duplicate(dup, pending());
false
}
}
}
+ /// Download video's Download Now / Later, or the browser's quality menu's choice
+ /// (`from_menu`), through the same check as any other download: the same page in the same
+ /// quality is a duplicate, another quality is not. A question opens its own window (MDM's
+ /// stays where it is). What became of it.
+ fn add_video_checked(
+ &mut self,
+ mut add: crate::videodlg::VideoAdd,
+ from_menu: bool,
+ ) -> DupStep {
+ // The Subtitles choice is offered again for the next video (#68), whatever comes of
+ // this one.
+ if let Some(subs) = add.remember.take() {
+ self.settings.video_subs = subs;
+ self.dirty = true;
+ }
+ let (page, selector) = (add.page.clone(), add.selector.clone());
+ let step = self.duplicate_of(|i| same_video(i, &page, &selector));
+ match video_route(step, add, from_menu) {
+ VideoRoute::Add(add) => self.add_video(*add, from_menu),
+ VideoRoute::Ask(dup, pending) => self.ask_duplicate(dup, pending),
+ VideoRoute::Dropped => {}
+ }
+ step
+ }
+
/// The user's answer to "Duplicate download link".
fn resolve_duplicate(
&mut self,
@@ -7794,13 +8122,20 @@ impl App {
choice: usize,
ctx: &egui::Context,
) {
- match choice {
- 3 => {
+ let there = self.items.iter().any(|i| i.id == dup);
+ let (overwrite, pending) = match answered(dup, there, choice, pending) {
+ Answer::Existing(dup) => {
self.open_or_resume(dup);
return;
}
- 2 => self.overwrite(dup),
- _ => {}
+ Answer::Again(pending) => {
+ self.duplicate_again(pending, ctx);
+ return;
+ }
+ Answer::Add(overwrite, pending) => (overwrite, pending),
+ };
+ if let Some(dup) = overwrite {
+ self.overwrite(dup);
}
match pending {
Pending::Command(cmd) => {
@@ -7809,24 +8144,46 @@ impl App {
self.duplicate_cleared = false;
}
Pending::Url(new) => self.open_file_info(new, Default::default(), ctx),
+ Pending::Video(add, from_menu) => self.add_video(*add, from_menu),
+ }
+ }
+
+ /// What was asked about a download that has left the list meanwhile: checked afresh, as
+ /// when it came (it may be a duplicate of another, or of nothing now).
+ fn duplicate_again(&mut self, pending: Pending, ctx: &egui::Context) {
+ match pending {
+ Pending::Command(cmd) => self.handle_command(*cmd, ctx),
+ Pending::Url(new) => {
+ if self.duplicate_gate(&new.url, || {
+ Pending::Url(dialogs::NewUrl {
+ url: new.url.clone(),
+ login: new.login.clone(),
+ })
+ }) {
+ self.open_file_info(new, Default::default(), ctx);
+ }
+ }
+ Pending::Video(add, from_menu) => {
+ self.add_video_checked(*add, from_menu);
+ }
}
}
/// The new copy replaces the download already there: its file and its row go (a running
/// one is left alone; the new copy then gets a numbered name).
fn overwrite(&mut self, id: u64) {
- let Some(item) = self.items.iter().find(|i| i.id == id) else {
+ self.replace(id, true);
+ }
+
+ /// [`Self::overwrite`]; `yt_dlp`: a video's files left by yt-dlp go too, so that the new
+ /// copy takes the same name ([`replaced_files`]).
+ fn replace(&mut self, id: u64, yt_dlp: bool) {
+ let Some(files) = replaced_files(&self.items, id, yt_dlp) else {
return;
};
- if item.live.is_some() {
- return;
+ for f in files {
+ let _ = std::fs::remove_file(&f);
}
- let dest = item.dest.clone();
- if item.status == Status::Complete {
- let _ = std::fs::remove_file(&dest);
- }
- let _ = std::fs::remove_file(state_path(&dest));
- let _ = std::fs::remove_file(mdm_engine::naming::part_path(&dest));
self.delete(id);
}
@@ -8634,8 +8991,16 @@ impl App {
fn dialogs(&mut self, ctx: &egui::Context) {
self.help_dialogs(ctx);
- if self.duplicate.is_none() {
- self.duplicate = self.duplicates_waiting.pop_front();
+ // The next question in turn; one about a download that has left the list meanwhile is
+ // checked afresh instead (it may ask again, about another).
+ while self.duplicate.is_none()
+ && let Some((dup, pending, d)) = self.duplicates_waiting.pop_front()
+ {
+ if self.items.iter().any(|i| i.id == dup) {
+ self.duplicate = Some((dup, pending, d));
+ } else {
+ self.duplicate_again(pending, ctx);
+ }
}
if let Some((_, _, d)) = &mut self.duplicate {
match d.show(ctx) {
@@ -9127,7 +9492,9 @@ impl App {
}
self.video_dlg = None;
match out {
- crate::videodlg::VideoOut::One(add) => self.add_video(add),
+ crate::videodlg::VideoOut::One(add) => {
+ self.add_video_checked(add, false);
+ }
crate::videodlg::VideoOut::Many(add) => self.add_playlist(add),
}
}
@@ -9271,6 +9638,7 @@ impl App {
}
p.tray = tray;
p.minimize_to_tray = self.settings.minimize_to_tray;
+ p.main_shown = !self.hidden;
// Hidden: not shown (its window is gone) until the tray or the list brings it back.
if p.hidden && tray {
continue;
@@ -9379,6 +9747,37 @@ impl App {
}
}
+/// The finished downloads whose progress windows close at `now` (then Download complete opens):
+/// of the ones just `finished`, those without a window on screen (`shown`), at once. A window on
+/// screen first shows its download whole for a moment ([`progress::SHOWN_WHOLE`]; its bar glides
+/// a little behind the figures and would close short of the end): kept in `finishing` with when
+/// it finished, it closes once that moment is over, unless the download was started again
+/// meanwhile (no longer `complete`): its window stays for the new run.
+fn finished_windows(
+ finished: Vec<u64>,
+ shown: impl Fn(u64) -> bool,
+ complete: impl Fn(u64) -> bool,
+ finishing: &mut Vec<(u64, Instant)>,
+ now: Instant,
+) -> Vec<u64> {
+ let mut close = Vec::new();
+ for id in finished {
+ if shown(id) {
+ finishing.push((id, now));
+ } else {
+ close.push(id);
+ }
+ }
+ finishing.retain(|&(id, at)| {
+ let wait = now.duration_since(at) < progress::SHOWN_WHOLE;
+ if !wait && complete(id) {
+ close.push(id);
+ }
+ wait
+ });
+ close
+}
+
impl eframe::App for App {
/// What comes in from outside (a second launch, the browser's native host, the automation
/// API) is handled here, which runs at every frame: `ui` doesn't run while the main window
@@ -9416,6 +9815,7 @@ impl App {
if handled {
ctx.request_ui_pass(egui::ViewportId::ROOT);
}
+ self.lookups.prune(Instant::now());
// The clock: what must go on whatever the main window's state (#174). Minimized, egui
// runs no `ui`, and the queues, the Scheduler's starts and stops, the download limits,
// the kill switch, saving the list, the clipboard monitor, the update check, the tray and
@@ -9679,6 +10079,38 @@ fn share(cap: u64, other: f64) -> u64 {
rest.max(half).max(1024)
}
+#[cfg(test)]
+mod finished_window_tests {
+ use super::finished_windows;
+ use crate::progress::SHOWN_WHOLE;
+ use std::time::{Duration, Instant};
+
+ /// A window on screen shows its finished download whole for SHOWN_WHOLE, then closes; one
+ /// not on screen (hidden in the tray, or none) closes at once; one started again meanwhile
+ /// stays for the new run.
+ #[test]
+ fn a_finished_window_shows_it_whole_for_a_moment() {
+ let t0 = Instant::now();
+ let ms = Duration::from_millis;
+ let mut finishing = Vec::new();
+ let close = finished_windows(vec![1, 2], |id| id == 1, |_| true, &mut finishing, t0);
+ assert_eq!(close, [2], "not on screen: at once");
+ assert_eq!(finishing, [(1, t0)]);
+ let soon = t0 + SHOWN_WHOLE - ms(1);
+ let close = finished_windows(vec![], |_| true, |_| true, &mut finishing, soon);
+ assert!(close.is_empty(), "held for the moment");
+ let close = finished_windows(vec![3], |_| true, |_| true, &mut finishing, t0 + ms(100));
+ assert!(close.is_empty());
+ let close = finished_windows(vec![], |_| true, |_| true, &mut finishing, t0 + SHOWN_WHOLE);
+ assert_eq!(close, [1], "then it closes");
+ // 3, started again during its moment: not closed, and no longer waited for.
+ let later = t0 + ms(100) + SHOWN_WHOLE;
+ let close = finished_windows(vec![], |_| true, |id| id != 3, &mut finishing, later);
+ assert!(close.is_empty());
+ assert!(finishing.is_empty());
+ }
+}
+
#[cfg(test)]
mod move_many_tests {
use super::place_in;
@@ -9947,6 +10379,343 @@ mod referrer_tests {
let folder = "https://drive.google.com/drive/folders/1s52ek_4YTDRt_EOkx1FS53u-vJa0c4nu";
assert_eq!(drive_file_behind_player(&cmd(folder, None)), None);
}
+
+ /// The quality menu leaves a Drive file's player to the window's click (the file itself),
+ /// and everything to it in a run without a window.
+ #[test]
+ fn the_quality_menu_leaves_drive_and_headless_to_the_window() {
+ use super::{ipc, menu_needs_window};
+ let page = "https://drive.google.com/file/d/1s52ek_4YTDRt_EOkx1FS53u-vJa0c4nu/view";
+ let look = |address: &str, referer: Option<&str>| ipc::Command {
+ video_lookup: Some(ipc::VideoLookup {
+ address: address.to_owned(),
+ ..Default::default()
+ }),
+ referer: referer.map(str::to_owned),
+ startup: true,
+ ..Default::default()
+ };
+ assert!(menu_needs_window(&look(page, None), false));
+ let stream = "https://abc.c.drive.google.com/videoplayback?id=1";
+ assert!(menu_needs_window(&look(stream, Some(page)), false));
+ let video = look("https://www.youtube.com/watch?v=x", Some(page));
+ assert!(!menu_needs_window(&video, false));
+ assert!(menu_needs_window(&video, true), "no window to show it");
+ assert!(menu_needs_window(&look("file:///C:/v.mp4", None), false));
+ assert!(menu_needs_window(&look("", None), false));
+ let poll = ipc::Command {
+ video_poll: Some("abc".into()),
+ ..Default::default()
+ };
+ assert!(!menu_needs_window(&poll, false));
+ assert!(menu_needs_window(&poll, true));
+ }
+}
+
+#[cfg(test)]
+mod video_goes_tests {
+ use super::{VideoGoes, video_goes};
+
+ /// The browser's quality menu queues a choice (Options: only add to the queue) in the main
+ /// queue, never through the queue panel, which would open in MDM's window and, cancelled,
+ /// leave it in no queue; the Download video window's Later still asks when Options say so.
+ #[test]
+ fn a_choice_from_the_browser_is_queued_without_asking() {
+ // The quality menu.
+ assert_eq!(video_goes(false, true, true), VideoGoes::MainQueue);
+ assert_eq!(video_goes(false, true, false), VideoGoes::MainQueue);
+ assert_eq!(video_goes(true, true, true), VideoGoes::Start);
+ // The Download video window, as before.
+ assert_eq!(video_goes(false, false, true), VideoGoes::AskQueue);
+ assert_eq!(video_goes(false, false, false), VideoGoes::MainQueue);
+ assert_eq!(video_goes(true, false, true), VideoGoes::Start);
+ }
+}
+
+#[cfg(test)]
+mod duplicate_tests {
+ use super::*;
+ use mdm_tools::video::{InfoSlot, Preloaded};
+
+ const SELECTOR: &str = "bv*[height=720]+ba/b[height=720]";
+
+ fn page() -> url::Url {
+ url::Url::parse("https://videos.test/watch?v=1").unwrap()
+ }
+
+ /// A choice from the quality menu, holding (a clone of) `slot`, the menu's look-up.
+ fn choice(slot: &InfoSlot) -> crate::videodlg::VideoAdd {
+ crate::videodlg::VideoAdd {
+ page: page(),
+ selector: SELECTOR.into(),
+ dest: PathBuf::from("Clip.mp4"),
+ category: Category::Video,
+ size: None,
+ start_now: true,
+ context: Default::default(),
+ subs: Default::default(),
+ remember: None,
+ preloaded: Some(Preloaded {
+ slot: slot.clone(),
+ selector: SELECTOR.into(),
+ label: "720p".into(),
+ merge: true,
+ }),
+ }
+ }
+
+ /// Options' four answers to a duplicate, for any download; a finished file that is gone
+ /// (#342) leaves nothing to duplicate, whatever the answer.
+ #[test]
+ fn options_choice_decides_what_a_duplicate_does() {
+ for action in 0..=4 {
+ assert_eq!(duplicate_step(action, None), DupStep::Add);
+ assert_eq!(
+ duplicate_step(action, Some((7, true))),
+ DupStep::Replace(7, false)
+ );
+ }
+ let dup = Some((7, false));
+ assert_eq!(duplicate_step(0, dup), DupStep::Ask(7));
+ assert_eq!(duplicate_step(1, dup), DupStep::Add);
+ assert_eq!(duplicate_step(2, dup), DupStep::Replace(7, true));
+ assert_eq!(duplicate_step(3, dup), DupStep::Existing(7));
+ assert_eq!(duplicate_step(9, dup), DupStep::Ask(7), "unknown: asked");
+ }
+
+ /// A video is the same download only on the same page in the same quality; a plain download
+ /// of that address is not a video's duplicate.
+ #[test]
+ fn a_video_is_a_duplicate_in_the_same_quality_only() {
+ let mut item = Item::new(1, page(), PathBuf::from("Clip.mp4"), Category::Video);
+ assert!(!same_video(&item, &page(), SELECTOR), "not a video");
+ item.video = Some(model::VideoSpec {
+ selector: SELECTOR.into(),
+ subs: Default::default(),
+ });
+ assert!(same_video(&item, &page(), SELECTOR));
+ assert!(!same_video(
+ &item,
+ &page(),
+ "bv*[height=360]+ba/b[height=360]"
+ ));
+ let other = url::Url::parse("https://videos.test/watch?v=2").unwrap();
+ assert!(!same_video(&item, &other, SELECTOR));
+ }
+
+ /// Each Options answer on both video paths (the quality menu, the Download video window):
+ /// where the choice goes, what the browser is told, and the menu's look-up, which goes with
+ /// the new download only: dropped when the one already there is opened or resumed.
+ #[test]
+ fn each_answer_on_both_video_paths() {
+ use ipc::api::lookup;
+ let slot = InfoSlot::new(Instant::now());
+ for from_menu in [true, false] {
+ for action in 0..=3u8 {
+ let step = duplicate_step(action, Some((7, false)));
+ let route = video_route(step, choice(&slot), from_menu);
+ match (action, &route) {
+ (1 | 2, VideoRoute::Add(add)) => {
+ assert!(add.preloaded.is_some());
+ assert_eq!(slot.holders(), 2, "kept for the new download");
+ }
+ (0, VideoRoute::Ask(7, Pending::Video(add, menu))) => {
+ assert_eq!(*menu, from_menu);
+ assert!(add.preloaded.is_some());
+ assert_eq!(slot.holders(), 2, "kept for the answer");
+ }
+ (3, VideoRoute::Dropped) => {
+ assert_eq!(slot.holders(), 1, "the look-up went with the choice");
+ }
+ _ => panic!("action {action}: unexpected route"),
+ }
+ drop(route);
+ assert_eq!(slot.holders(), 1);
+ // The browser hears of a new download, or `sent` (asked, or the one there).
+ let told = menu_answer(step, true);
+ assert_eq!(
+ told,
+ match action {
+ 1 | 2 => lookup::STARTED,
+ _ => lookup::SENT,
+ }
+ );
+ }
+ }
+ // Options' "only add to the queue": a new one is queued.
+ assert_eq!(menu_answer(DupStep::Add, false), lookup::QUEUED);
+ assert_eq!(
+ menu_answer(DupStep::Replace(7, true), false),
+ lookup::QUEUED
+ );
+ assert_eq!(menu_answer(DupStep::Existing(7), false), lookup::SENT);
+ assert_eq!(menu_answer(DupStep::Ask(7), false), lookup::SENT);
+ }
+
+ /// The question's answer: opening or resuming the one already there (3) drops the new
+ /// choice and its look-up; a numbered name (1) or overwrite (2, of that one) adds it,
+ /// look-up and all; whatever the answer, a question about a download that has left the list
+ /// meanwhile is checked afresh (never acted on a row that isn't there).
+ #[test]
+ fn the_answer_open_or_resume_drops_the_new_choices_look_up() {
+ let slot = InfoSlot::new(Instant::now());
+ for from_menu in [true, false] {
+ for answer in 1..=3 {
+ let pending = Pending::Video(Box::new(choice(&slot)), from_menu);
+ match (answer, answered(7, true, answer, pending)) {
+ (3, Answer::Existing(7)) => assert_eq!(slot.holders(), 1),
+ (1, Answer::Add(None, Pending::Video(add, menu)))
+ | (2, Answer::Add(Some(7), Pending::Video(add, menu))) => {
+ assert_eq!(menu, from_menu);
+ assert!(add.preloaded.is_some());
+ assert_eq!(slot.holders(), 2);
+ }
+ _ => panic!("answer {answer}: unexpected"),
+ }
+ assert_eq!(slot.holders(), 1);
+ let pending = Pending::Video(Box::new(choice(&slot)), from_menu);
+ match answered(7, false, answer, pending) {
+ Answer::Again(Pending::Video(add, menu)) => {
+ assert_eq!(menu, from_menu);
+ assert!(add.preloaded.is_some(), "checked afresh, look-up and all");
+ }
+ _ => panic!("answer {answer} about a row gone: not checked afresh"),
+ }
+ }
+ }
+ }
+
+ /// The menu's look-up goes with a download started now, while fresh: not with one queued,
+ /// nor one added on a duplicate question answered after the look-ups are forgotten (its
+ /// links will have expired; it looks the page up itself, as at its start).
+ #[test]
+ fn a_late_answer_drops_the_menus_look_up() {
+ let born = Instant::now();
+ let slot = InfoSlot::new(born);
+ let ttl = crate::videolookup::TTL;
+ let pre = || choice(&slot).preloaded;
+ assert!(kept_lookup(pre(), VideoGoes::Start, born).is_some());
+ let just = born + ttl - Duration::from_secs(1);
+ assert!(kept_lookup(pre(), VideoGoes::Start, just).is_some());
+ assert!(kept_lookup(pre(), VideoGoes::Start, born + ttl).is_none());
+ let hours = born + Duration::from_secs(3 * 3600);
+ assert!(kept_lookup(pre(), VideoGoes::Start, hours).is_none());
+ assert!(kept_lookup(pre(), VideoGoes::MainQueue, born).is_none());
+ assert!(kept_lookup(pre(), VideoGoes::AskQueue, born).is_none());
+ assert_eq!(slot.holders(), 1, "every one dropped");
+ }
+
+ /// A video row in `dir` named `name`, finished or not.
+ fn video_row(id: u64, dir: &std::path::Path, name: &str, status: Status) -> Item {
+ let mut i = Item::new(id, page(), dir.join(name), Category::Video);
+ i.status = status;
+ i.video = Some(model::VideoSpec {
+ selector: SELECTOR.into(),
+ subs: Default::default(),
+ });
+ i
+ }
+
+ fn names(files: &[PathBuf]) -> Vec<String> {
+ let mut n: Vec<String> = files
+ .iter()
+ .filter(|f| f.exists())
+ .map(|f| f.file_name().unwrap().to_string_lossy().into_owned())
+ .collect();
+ n.sort();
+ n
+ }
+
+ /// Overwrite takes the old video's own files (its file, yt-dlp's leftovers, its subtitles),
+ /// never those of another download in that folder whose name or stem starts them
+ /// (`Clip.f137.mp4`'s parts, `Clip.v2.zip`'s), running or paused; one sharing its very stem
+ /// (`Clip.zip`) leaves every leftover where it is.
+ #[test]
+ fn overwrite_spares_every_other_downloads_files() {
+ let dir = tempfile::tempdir().unwrap();
+ let d = dir.path();
+ for f in [
+ "Clip.mp4",
+ "Clip.en.srt",
+ "Clip.fr.srt",
+ "Clip.mp4.part-Frag3",
+ "Clip.f140.m4a",
+ "Clip.f137.mp4.part",
+ "Clip.f137.mp4.ytdl",
+ "CLIP.F137.mp4.part-Frag2",
+ "Clip.v2.zip.mdm.part",
+ ] {
+ std::fs::write(d.join(f), b"x").unwrap();
+ }
+ let old = || video_row(1, d, "Clip.mp4", Status::Complete);
+ // Another video named after a stream of the first, running: its parts are its own.
+ let other = video_row(2, d, "Clip.f137.mp4", Status::Downloading);
+ // A plain download, paused, named alike.
+ let mut plain = Item::new(3, page(), d.join("Clip.v2.zip"), Category::General);
+ plain.status = Status::Stopped;
+ let files = replaced_files(&[old(), other, plain], 1, true).unwrap();
+ assert_eq!(
+ names(&files),
+ [
+ "Clip.en.srt",
+ "Clip.f140.m4a",
+ "Clip.fr.srt",
+ "Clip.mp4",
+ "Clip.mp4.part-Frag3"
+ ]
+ );
+ // Another download of the same stem: only the old one's own file.
+ let zip = Item::new(4, page(), d.join("clip.zip"), Category::General);
+ let files = replaced_files(&[old(), zip], 1, true).unwrap();
+ assert_eq!(names(&files), ["Clip.mp4"]);
+ // One of that name in another folder changes nothing here.
+ let elsewhere = tempfile::tempdir().unwrap();
+ let far = video_row(5, elsewhere.path(), "Clip.f140.mp4", Status::Stopped);
+ let files = replaced_files(&[old(), far], 1, true).unwrap();
+ assert!(names(&files).contains(&"Clip.f140.m4a".to_owned()));
+ }
+
+ /// A running download is left alone; #342's automatic replacement (its finished file gone)
+ /// takes its row, state and part file only, never what yt-dlp left beside it.
+ #[test]
+ fn a_running_one_is_left_alone_and_a_gone_ones_leftovers_stay() {
+ let dir = tempfile::tempdir().unwrap();
+ let d = dir.path();
+ for f in ["Clip.en.srt", "Clip.mp4.part", "Clip.f140.m4a"] {
+ std::fs::write(d.join(f), b"x").unwrap();
+ }
+ let mut running = video_row(1, d, "Clip.mp4", Status::Downloading);
+ // A run of a yt-dlp that isn't there: it fails at once, on its own thread (no network).
+ let job = mdm_tools::video::VideoJob::start(
+ &d.join("no-yt-dlp.exe"),
+ page().as_str(),
+ SELECTOR,
+ d,
+ "Clip",
+ None,
+ 1,
+ None,
+ None,
+ &Default::default(),
+ &Default::default(),
+ )
+ .unwrap();
+ running.live = Some(Live::new(model::Job::Video { job, url: page() }, 0));
+ assert!(replaced_files(&[running], 1, true).is_none());
+ // #342: finished, its file gone.
+ let gone = video_row(1, d, "Clip.mp4", Status::Complete);
+ let files = replaced_files(&[gone], 1, false).unwrap();
+ assert!(names(&files).is_empty(), "{:?}", names(&files));
+ assert_eq!(
+ files,
+ [
+ d.join("Clip.mp4"),
+ state_path(&d.join("Clip.mp4")),
+ mdm_engine::naming::part_path(&d.join("Clip.mp4")),
+ ]
+ );
+ assert!(replaced_files(&[], 1, true).is_none());
+ }
}
#[cfg(test)]
diff --git a/crates/app/src/main.rs b/crates/app/src/main.rs
index 91023f04..bd2ec723 100644
--- a/crates/app/src/main.rs
+++ b/crates/app/src/main.rs
@@ -67,6 +67,7 @@ mod tray;
mod unix;
mod update;
mod videodlg;
+mod videolookup;
mod wake;
mod whereis;
#[cfg(windows)]
@@ -120,7 +121,10 @@ pub fn offscreen() -> bool {
/// address came from it, and was fetched). It may wait for the clipboard's owner for ever:
/// never called on the window's thread, only by `clipboard`'s reader (#418, #661).
pub fn clipboard_text() -> Option<String> {
- read_clipboard(offscreen(), || {
+ // Nor in unit tests: the person's clipboard isn't theirs, and tests opening a window that
+ // reads it (Download video's) on parallel threads corrupted the heap (Windows' clipboard,
+ // opened from two threads at once).
+ read_clipboard(offscreen() || cfg!(test), || {
arboard::Clipboard::new().ok()?.get_text().ok()
})
}
diff --git a/crates/app/src/model.rs b/crates/app/src/model.rs
index 0b57b5c4..59996741 100644
--- a/crates/app/src/model.rs
+++ b/crates/app/src/model.rs
@@ -437,6 +437,10 @@ pub struct Item {
/// #68), in the interface language; memory only.
#[serde(skip)]
pub notices: Vec<String>,
+ /// A video chosen in the browser's quality menu: the menu's look-up, for its first run only
+ /// (taken then); memory only, never written (its links are signed).
+ #[serde(skip)]
+ pub preloaded: Option<mdm_tools::video::Preloaded>,
/// Finished video / subtitle / gallery paths waiting to be marked as downloaded from the
/// web once any deferred rename in `App::poll` has moved them to their final names.
#[serde(skip)]
@@ -747,6 +751,7 @@ impl Item {
login: None,
context: Default::default(),
notices: Vec::new(),
+ preloaded: None,
pending_mark: None,
written_files: None,
}
diff --git a/crates/app/src/progress.rs b/crates/app/src/progress.rs
index da3c29e2..05fca555 100644
--- a/crates/app/src/progress.rs
+++ b/crates/app/src/progress.rs
@@ -138,6 +138,144 @@ enum TTab {
/// Why "Hang up modem when done" is greyed off Windows.
pub const NO_DIAL_UP: &str = crate::i18n::mark("This system has no dial-up connections to hang up");
+/// The window's frames while its bar glides ([`Glide`]): as often as the bar moves a pixel, 25 a
+/// second at most, only while its download runs and its figures move ([`glide_frame`]).
+const GLIDE_FRAME: std::time::Duration = std::time::Duration::from_millis(40);
+/// The same while MDM's main window is shown: each frame draws it again too, about three times a
+/// progress window's work (measured: 25 a second then took 5 % of a core more, 12.5 half that).
+const GLIDE_FRAME_MAIN: std::time::Duration = std::time::Duration::from_millis(80);
+/// The app's own frames while a download runs (app.rs): a bar slower than a pixel in this long
+/// needs no frames of its own.
+const APP_FRAME: f64 = 0.25;
+/// The bar's width (513 points less its frame) and the segment map's (511).
+const BAR_WIDTH: f64 = 511.0;
+/// A figure reached in about the time the last one took to come, a quarter more (seconds): the
+/// next one comes before the bar has stopped, so it never halts between figures that keep
+/// coming. Within these bounds (a figure after a long pause glides in half a second).
+const GLIDE_SLACK: f64 = 1.25;
+const GLIDE_MIN: f64 = 0.05;
+const GLIDE_MAX: f64 = 0.5;
+/// Figures that moved this recently (seconds) keep the frames coming, so the next one is drawn
+/// as it comes, not at the app's next quarter second.
+const GLIDE_HOLD: f64 = 1.0;
+/// How long a finished download's window shows it whole before it gives way to Download
+/// complete (app.rs): its bar, a glide behind the figures, would otherwise close short of the
+/// end.
+pub const SHOWN_WHOLE: std::time::Duration = std::time::Duration::from_millis(300);
+
+/// The bar's fill and the segment map between the download's figures, which come about four
+/// times a second: each part moves from where it was drawn to its new figure over about the
+/// time between figures, so the bar glides where it jumped (the text keeps the figures as they
+/// are). Never past a figure, never back: a figure lower than what is drawn (a download started
+/// over) is drawn at once. The bar and the map move on the same clock, so they agree as their
+/// figures do (a video's map is its bar; a file's map counts what is written, its bar also what
+/// has come and waits to be, as before).
+#[derive(Default)]
+struct Glide {
+ /// The figures last read: bytes done, each segment's start and bytes done.
+ done: u64,
+ segments: Vec<(u64, u64)>,
+ /// Where the drawing set off from towards them (the same segments, in order).
+ from_done: f64,
+ from_segments: Vec<f64>,
+ /// When they were read (egui's clock, seconds) and how long it takes to reach them.
+ at: f64,
+ span: f64,
+ seen: bool,
+ /// The bar's speed on its way to them (bytes a second).
+ rate: f64,
+}
+
+/// What a frame draws ([`Glide::step`]).
+struct Drawn {
+ done: f64,
+ segments: Vec<(u64, f64)>,
+ /// How fast the bar moves (bytes a second), while it is on its way to the figures or they
+ /// moved lately; else 0: no frames of its own wanted.
+ rate: f64,
+}
+
+/// When the progress window wants its next frame while its bar moves at `rate` bytes a second
+/// of `total`, on a screen of `ppp` pixels a point: when the bar has moved a pixel, 25 frames a
+/// second at most (12.5 while the main window is shown, `main`); none when it moves less than a
+/// pixel between the app's own frames (a slow download, an unknown size, a bar standing still).
+fn glide_frame(rate: f64, total: Option<u64>, ppp: f32, main: bool) -> Option<std::time::Duration> {
+ let total = total.filter(|t| *t > 0)? as f64;
+ let pixels = rate / total * BAR_WIDTH * f64::from(ppp);
+ let every = 1.0 / pixels;
+ let cap = if main { GLIDE_FRAME_MAIN } else { GLIDE_FRAME };
+ (pixels > 0.0 && every < APP_FRAME).then(|| std::time::Duration::from_secs_f64(every).max(cap))
+}
+
+impl Glide {
+ /// How far the drawing is from `from` to the figures at `now` (0 to 1).
+ fn part(&self, now: f64) -> f64 {
+ if self.span <= 0.0 {
+ 1.0
+ } else {
+ ((now - self.at) / self.span).clamp(0.0, 1.0)
+ }
+ }
+
+ /// The figures read at `now` (`done` bytes; the segments' starts and bytes done): what to
+ /// draw. `finished`: the download is done, its figures drawn as they are at once (the
+ /// window shows it whole before it gives way to Download complete, not a glide behind).
+ fn step(&mut self, now: f64, done: u64, segments: &[(u64, u64)], finished: bool) -> Drawn {
+ if !self.seen || finished {
+ self.seen = true;
+ self.at = now;
+ self.span = 0.0;
+ self.rate = 0.0;
+ self.from_done = done as f64;
+ self.from_segments = segments.iter().map(|&(_, d)| d as f64).collect();
+ self.done = done;
+ self.segments = segments.to_vec();
+ } else if done != self.done || segments != self.segments.as_slice() {
+ // Off from where it is drawn now; a part whose figure went below that, at once.
+ let u = self.part(now);
+ let at = |from: f64, to: u64| from + (to as f64 - from) * u;
+ let drawn = at(self.from_done, self.done);
+ let drawn_segments: Vec<(u64, f64)> = self
+ .segments
+ .iter()
+ .zip(&self.from_segments)
+ .map(|(&(start, d), &from)| (start, at(from, d)))
+ .collect();
+ // A segment that comes (a connection split one) grows from nothing, as the bar's
+ // part of it does: the map's segments together stay what the bar shows.
+ self.from_segments = segments
+ .iter()
+ .map(|&(start, d)| {
+ drawn_segments
+ .iter()
+ .find(|(s, _)| *s == start)
+ .map_or(0.0, |&(_, x)| x.min(d as f64))
+ })
+ .collect();
+ let done_f = done as f64;
+ self.from_done = drawn.min(done_f);
+ self.span = ((now - self.at) * GLIDE_SLACK).clamp(GLIDE_MIN, GLIDE_MAX);
+ self.rate = (done_f - self.from_done) / self.span;
+ self.at = now;
+ self.done = done;
+ self.segments = segments.to_vec();
+ }
+ let u = self.part(now);
+ let at = |from: f64, to: u64| from + (to as f64 - from) * u;
+ let busy = u < 1.0 || now - self.at < GLIDE_HOLD;
+ Drawn {
+ done: at(self.from_done, self.done),
+ segments: self
+ .segments
+ .iter()
+ .zip(&self.from_segments)
+ .map(|(&(start, d), &from)| (start, at(from, d)))
+ .collect(),
+ rate: if busy { self.rate } else { 0.0 },
+ }
+ }
+}
+
pub struct Progress {
pub id: u64,
details: bool,
@@ -173,12 +311,16 @@ pub struct Progress {
pub tray: bool,
/// Options → General → "Minimize to the notification area": Minimize hides it there too.
pub minimize_to_tray: bool,
+ /// MDM's main window is shown (set by the app each frame): the glide's frames draw it too.
+ pub main_shown: bool,
/// Options on completion, used when "Show download complete dialog" is off.
hang_up: bool,
exit: bool,
turn_off_on: bool,
turn_off: usize,
force: bool,
+ /// The bar and the segment map between figures.
+ glide: Glide,
/// Deferred rename on Download status: initialised from `Item::rename_on_complete`, saved
/// by clicking Confirm, pressing Enter, or leaving the box idle for 3 seconds.
rename_init: bool,
@@ -245,11 +387,13 @@ impl Progress {
hidden: false,
tray: false,
minimize_to_tray: false,
+ main_shown: true,
hang_up: false,
exit: false,
turn_off_on: false,
turn_off: 0,
force: false,
+ glide: Glide::default(),
rename_init: false,
rename_text: String::new(),
rename_saved: None,
@@ -335,6 +479,28 @@ impl Progress {
crate::crash::window("progress");
let frac = item.fraction();
let title = window_title(frac, &item.file_name);
+ // The bar and the segment map glide between the figures (the text shows them as they
+ // are): frames come faster for that only while the download runs and its figures move.
+ let segments: Vec<(u64, u64)> = match snap {
+ Some(s) if !s.segments.is_empty() => s
+ .segments
+ .iter()
+ .map(|g| (g.start, g.cursor.saturating_sub(g.start)))
+ .collect(),
+ _ => vec![(0, item.downloaded)],
+ };
+ let drawn = self.glide.step(
+ ctx.input(|i| i.time),
+ item.downloaded,
+ &segments,
+ item.status == Status::Complete,
+ );
+ // Never past the fraction: a video's bar holds short of the end until it is finished,
+ // as its percentage does ([`Item::fraction`]); no size, no fill.
+ let bar = match (frac, item.size.filter(|t| *t > 0)) {
+ (Some(f), Some(t)) => (drawn.done / t as f64).clamp(0.0, 1.0).min(f),
+ _ => 0.0,
+ };
let drop = self.status_drop();
let body = if self.details {
[548.0, 412.0 + drop + torrent_drop(item)]
@@ -390,7 +556,7 @@ impl Progress {
let mut rest = ui.new_child(egui::UiBuilder::new().max_rect(below));
let action = crate::dialogs::scroll(&mut rest, key, body, |ui, o| {
let _surface = winui::Surface::enter(o.x, o.x + body[0]);
- self.body(ui, o, item, snap, frac)
+ self.body(ui, o, item, snap, frac, (bar, &drawn.segments))
});
// The system menu's "Hide to the notification area" (Alt+Space).
#[cfg(windows)]
@@ -424,6 +590,16 @@ impl Progress {
});
// Elsewhere the window manager is asked for its size at a new interface size (#262).
crate::dialogs::follow_scale(ctx, vid, key, shown);
+ // The glide's frames: while the download runs, its figures move and the window can be
+ // seen (minimized, or hidden in the tray where it isn't drawn at all, it waits).
+ let minimized = ctx.input_for(vid, |i| i.viewport().minimized) == Some(true);
+ let ppp = ctx.input_for(vid, |i| i.pixels_per_point);
+ if item.live.is_some()
+ && !minimized
+ && let Some(every) = glide_frame(drawn.rate, item.size, ppp, self.main_shown)
+ {
+ ctx.request_repaint_after(every);
+ }
// Apply the frame while the window is still hidden, and again whenever the client size
// (details), the scale (another display, the interface size) or the system menu's item
// changes.
@@ -498,6 +674,8 @@ impl Progress {
action
}
+ /// `frac`: the download's fraction as it is (the text); `drawn`: the bar's fill and the
+ /// segments as they glide ([`Glide`]).
fn body(
&mut self,
ui: &mut Ui,
@@ -505,6 +683,7 @@ impl Progress {
item: &Item,
snap: Option<&Snapshot>,
frac: Option<f64>,
+ drawn: (f64, &[(u64, f64)]),
) -> Action {
let p = ui.painter().clone();
self.sync_rename_from_item(item);
@@ -533,11 +712,7 @@ impl Progress {
let lower = o + vec2(0.0, self.status_drop());
// The progress bar: IDM's green on the shared, themed track.
- winui::meter(
- &p,
- r(lower, 17.0, 180.0, 513.0, 16.0),
- frac.unwrap_or(0.0) as f32,
- );
+ winui::meter(&p, r(lower, 17.0, 180.0, 513.0, 16.0), drawn.0 as f32);
let mut action = if hide { Action::Hide } else { Action::None };
let details_label = if self.details {
@@ -634,7 +809,7 @@ impl Progress {
crate::i18n::t("Start positions and download progress by connections"),
winui::TEXT(),
);
- segment_bar(&p, lower, item, snap);
+ segment_bar(&p, lower, item, drawn.1);
connections(ui, &p, lower, snap);
}
action
@@ -1904,8 +2079,9 @@ fn table_sized(
clicked
}
-/// The custom-drawn segment bar (spec "Segment bar"): 13-row gradients, red start columns.
-fn segment_bar(p: &egui::Painter, o: Pos2, item: &Item, snap: Option<&Snapshot>) {
+/// The custom-drawn segment bar (spec "Segment bar"): 13-row gradients, red start columns;
+/// `segments`: each one's start and bytes done, as drawn ([`Glide`]).
+fn segment_bar(p: &egui::Painter, o: Pos2, item: &Item, segments: &[(u64, f64)]) {
let (x0, y0) = (o.x + 17.0, o.y + 249.0);
let border = crate::theme::colors().segment_border;
fill(p, x0, y0, x0 + 512.0, y0, border);
@@ -1939,17 +2115,9 @@ fn segment_bar(p: &egui::Painter, o: Pos2, item: &Item, snap: Option<&Snapshot>)
let Some(total) = item.size.filter(|t| *t > 0) else {
return;
};
- let col = |v: u64| (v as f64 / total as f64 * 511.0).floor() as f32;
- let segments: Vec<(u64, u64)> = match snap {
- Some(s) if !s.segments.is_empty() => s
- .segments
- .iter()
- .map(|g| (g.start, g.cursor - g.start))
- .collect(),
- _ => vec![(0, item.downloaded)],
- };
- for (start, done) in segments {
- let sx = ix + col(start);
+ let col = |v: f64| (v / total as f64 * 511.0).floor() as f32;
+ for &(start, done) in segments {
+ let sx = ix + col(start as f64);
let n = col(done);
if n > 1.0 {
run(sx + 1.0, (sx + n - 1.0).min(ix + 510.0), 1);
@@ -2198,3 +2366,167 @@ mod tests {
assert_eq!(p.status_drop(), RENAME_DROP);
}
}
+
+#[cfg(test)]
+mod glide_tests {
+ use super::{GLIDE_HOLD, GLIDE_MAX, Glide, glide_frame};
+
+ /// Figures every quarter second (`delta` bytes more each), read by frames every 40 ms that
+ /// don't fall on them, as the app reads them: (time, the figure, what is drawn) a frame.
+ fn run(frames: usize, delta: u64) -> Vec<(f64, u64, f64)> {
+ let mut g = Glide::default();
+ (0..frames)
+ .map(|k| {
+ let now = k as f64 * 0.04;
+ let real = (now / 0.25).floor() as u64 * delta;
+ (now, real, g.step(now, real, &[(0, real)], false).done)
+ })
+ .collect()
+ }
+
+ /// The first figures are drawn as they are.
+ #[test]
+ fn the_first_figures_are_drawn_as_they_are() {
+ let mut g = Glide::default();
+ let d = g.step(3.0, 700, &[(0, 300), (1000, 400)], false);
+ assert_eq!(d.done, 700.0);
+ assert_eq!(d.segments, [(0, 300.0), (1000, 400.0)]);
+ }
+
+ /// Between figures that keep coming the bar never stops, never goes back and never passes
+ /// the figure read; it stays less than two figures behind.
+ #[test]
+ fn steady_figures_glide_without_a_stop() {
+ let frames = run(200, 500_000);
+ let mut last = 0.0;
+ for (k, &(now, real, drawn)) in frames.iter().enumerate() {
+ assert!(drawn <= real as f64 + 1e-6, "past the figure at {now}");
+ assert!(drawn >= last - 1e-6, "back at {now}");
+ if now > 0.3 {
+ assert!(drawn > last, "stopped at frame {k} ({now:.2} s)");
+ assert!(drawn >= real as f64 - 2.0 * 500_000.0, "behind at {now}");
+ }
+ last = drawn;
+ }
+ }
+
+ /// A figure below what is drawn (the download started over) is drawn at once.
+ #[test]
+ fn a_figure_that_goes_back_is_drawn_at_once() {
+ let mut g = Glide::default();
+ g.step(0.0, 0, &[(0, 0)], false);
+ g.step(0.25, 1000, &[(0, 1000)], false);
+ let d = g.step(0.40, 1000, &[(0, 1000)], false);
+ assert!(d.done > 0.0 && d.done < 1000.0);
+ let d = g.step(0.41, 10, &[(0, 10)], false);
+ assert_eq!(d.done, 10.0);
+ assert_eq!(d.segments, [(0, 10.0)]);
+ }
+
+ /// A finished download is drawn whole at once, not a glide behind its last figures: its
+ /// window shows it whole before it gives way to Download complete; no frames of its own.
+ #[test]
+ fn a_finished_download_is_drawn_whole_at_once() {
+ let mut g = Glide::default();
+ g.step(0.0, 0, &[(0, 0)], false);
+ g.step(0.25, 999, &[(0, 999)], false);
+ let d = g.step(0.30, 999, &[(0, 999)], false);
+ assert!(d.done < 999.0, "{}", d.done);
+ let d = g.step(0.31, 1000, &[(0, 1000)], true);
+ assert_eq!(d.done, 1000.0);
+ assert_eq!(d.segments, [(0, 1000.0)]);
+ assert_eq!(d.rate, 0.0);
+ let d = g.step(0.35, 1000, &[(0, 1000)], true);
+ assert_eq!(d.done, 1000.0);
+ }
+
+ /// A file's bar counts what has come before it is written (the engine's map moves later):
+ /// it glides on its own figure all the same.
+ #[test]
+ fn the_bar_glides_on_its_own_figure() {
+ let mut g = Glide::default();
+ g.step(0.0, 0, &[(0, 0)], false);
+ let d = g.step(0.25, 1000, &[(0, 0)], false);
+ assert!(d.rate > 0.0);
+ let d = g.step(0.40, 1000, &[(0, 0)], false);
+ assert!(d.done > 0.0 && d.done < 1000.0, "{}", d.done);
+ assert_eq!(d.segments, [(0, 0.0)]);
+ }
+
+ /// The segment map moves with the bar: together its segments are always what the bar shows,
+ /// and a segment that comes (a connection split one) grows from nothing.
+ #[test]
+ fn the_segment_map_moves_with_the_bar() {
+ let mut g = Glide::default();
+ let mut now = 0.0;
+ let mut segs = vec![(0u64, 0u64), (5_000, 0)];
+ for k in 0..60 {
+ if k % 6 == 0 {
+ segs[0].1 += 300;
+ segs[1].1 += 100;
+ if k == 30 {
+ segs.push((8_000, 50));
+ }
+ }
+ let done: u64 = segs.iter().map(|s| s.1).sum();
+ let d = g.step(now, done, &segs, false);
+ let sum: f64 = d.segments.iter().map(|s| s.1).sum();
+ assert!(
+ (sum - d.done).abs() < 1e-6,
+ "map {sum} vs bar {} at {now}",
+ d.done
+ );
+ for ((_, shown), (_, real)) in d.segments.iter().zip(&segs) {
+ assert!(*shown <= *real as f64 + 1e-6);
+ }
+ now += 0.04;
+ }
+ }
+
+ /// Once the figures stop moving the bar reaches them and the frames stop being asked for.
+ #[test]
+ fn frames_are_asked_for_only_while_the_figures_move() {
+ let mut g = Glide::default();
+ assert_eq!(g.step(0.0, 0, &[(0, 0)], false).rate, 0.0);
+ let d = g.step(0.25, 100, &[(0, 100)], false);
+ assert!((d.rate - 100.0 / (0.25 * 1.25)).abs() < 1e-9, "{}", d.rate);
+ let d = g.step(0.25 + GLIDE_MAX, 100, &[(0, 100)], false);
+ assert_eq!(d.done, 100.0);
+ assert!(d.rate > 0.0, "moved lately");
+ let d = g.step(0.25 + GLIDE_HOLD + 0.01, 100, &[(0, 100)], false);
+ assert_eq!(d.done, 100.0);
+ assert_eq!(d.rate, 0.0, "still: the app's own pace");
+ }
+
+ /// The window is drawn as often as its bar moves a pixel, 25 times a second at most (12.5
+ /// while the main window is shown); a bar that moves less than a pixel between the app's own
+ /// frames asks for none.
+ #[test]
+ fn frames_come_as_often_as_the_bar_moves_a_pixel() {
+ use std::time::Duration;
+ let mb = 1024.0 * 1024.0;
+ let total = Some(100 * 1024 * 1024);
+ // 100 MB at 10 MB/s: 51 pixels a second, at the cap.
+ assert_eq!(
+ glide_frame(10.0 * mb, total, 1.0, false),
+ Some(Duration::from_millis(40))
+ );
+ assert_eq!(
+ glide_frame(10.0 * mb, total, 1.0, true),
+ Some(Duration::from_millis(80))
+ );
+ // At 2 MB/s: 10 pixels a second (15 at 150 %).
+ let every = glide_frame(2.0 * mb, total, 1.0, false).unwrap();
+ assert!((every.as_secs_f64() - 1.0 / (0.02 * 511.0)).abs() < 1e-3);
+ assert_eq!(glide_frame(2.0 * mb, total, 1.0, true), Some(every));
+ let every = glide_frame(2.0 * mb, total, 1.5, false).unwrap();
+ assert!((every.as_secs_f64() - 1.0 / (0.03 * 511.0)).abs() < 1e-3);
+ // At 0.5 MB/s: 2.6 pixels a second, the app's 4 frames do.
+ for main in [false, true] {
+ assert_eq!(glide_frame(0.5 * mb, total, 1.0, main), None);
+ assert_eq!(glide_frame(0.0, total, 1.0, main), None);
+ assert_eq!(glide_frame(10.0 * mb, None, 1.0, main), None);
+ assert_eq!(glide_frame(10.0 * mb, Some(0), 1.0, main), None);
+ }
+ }
+}
diff --git a/crates/app/src/videodlg.rs b/crates/app/src/videodlg.rs
index 7673bdf7..912a15d5 100644
--- a/crates/app/src/videodlg.rs
+++ b/crates/app/src/videodlg.rs
@@ -39,6 +39,9 @@ pub struct VideoAdd {
/// The Subtitles choice to remember for the next video (settings.video_subs); none when
/// the page had no subtitles to choose from (the last real choice stays).
pub remember: Option<Subs>,
+ /// The browser's quality menu's look-up the choice was made from, for the download's first
+ /// run (videolookup.rs); none from this window, whose download looks the page up itself.
+ pub preloaded: Option<mdm_tools::video::Preloaded>,
}
/// Which helper is being installed.
@@ -239,10 +242,8 @@ impl VideoDialog {
/// The choices for a looked-up video: merged qualities when ffmpeg is there.
fn set_video(&mut self, mut v: Video) {
// No page reader for this site: the page's own title rather than a hash (#345).
- if let Some(title) = self.context.video_title.as_deref().map(str::trim)
- && !title.is_empty()
- && self.page.trim() == self.from_browser
- && mdm_tools::resolve::named_after_address(&v.title, &self.page)
+ if self.page.trim() == self.from_browser
+ && let Some(title) = page_title(&self.context, &v, &self.page)
{
v.title = title.to_owned();
}
@@ -261,30 +262,7 @@ impl VideoDialog {
/// The Subtitles list's choice as yt-dlp is asked for it.
fn chosen_subs(&self) -> Subs {
- let embed = self.embed;
- let all = all_offered(&self.subs);
- match self.sub_pick {
- 0 => Subs {
- embed,
- ..Default::default()
- },
- 1 if all => Subs {
- langs: vec![ALL_UPLOADERS.into()],
- automatic: false,
- embed,
- },
- i => match self.subs.get(i - 1 - usize::from(all)) {
- Some(c) => Subs {
- langs: vec![c.code.clone()],
- automatic: c.automatic,
- embed,
- },
- None => Subs {
- embed,
- ..Default::default()
- },
- },
- }
+ subs_at(&self.subs, self.sub_pick, self.embed)
}
/// A looked-up video with subtitles in four languages, without yt-dlp or the network
@@ -486,17 +464,9 @@ impl VideoDialog {
size: c.size,
start_now,
context: self.context(),
- // Into the video only where its file type holds them (and with ffmpeg, which
- // VideoJob checks).
- subs: if mdm_tools::resolve::is_audio(c) {
- Subs::default()
- } else {
- Subs {
- embed: chosen.embed && mdm_tools::resolve::holds_subtitles(c),
- ..chosen.clone()
- }
- },
+ subs: subs_for_choice(c, &chosen),
remember: (!self.subs.is_empty()).then_some(chosen),
+ preloaded: None,
}))
}
@@ -553,8 +523,7 @@ impl VideoDialog {
if let Some((v, choices)) = &self.video
&& let Some(c) = choices.get(self.chosen)
{
- let stem = mdm_engine::naming::sanitize(&v.title);
- self.name = format!("{stem}.{}", c.ext);
+ self.name = file_name(&v.title, c);
}
self.follow_sound();
}
@@ -646,15 +615,7 @@ impl VideoDialog {
let browser = from_browser(&self.context());
self.looking = Some((exe.clone(), browser.clone()));
std::thread::spawn(move || {
- let mut res =
- mdm_tools::resolve::look_up(&exe, &page, &browser).map_err(|e| e.to_string());
- // A plain file: yt-dlp doesn't say its size, its server does (#320).
- if let Ok(Looked::Video(v)) = &mut res
- && v.needs_size()
- && let Some(size) = direct_size(&rt, &page, &browser)
- {
- v.set_size(size);
- }
+ let res = look_up(&exe, &page, &browser, &rt);
*out.lock().unwrap() = Some(res);
ctx.request_repaint();
});
@@ -1197,6 +1158,113 @@ fn pick_for(subs: &[SubChoice], pref: &Subs) -> usize {
.map_or(0, |i| i + first)
}
+/// What the Subtitles list's entry `pick` asks yt-dlp for (0: none, then "All the uploader's"
+/// when offered, then `subs` in order), put into the video when `embed`.
+fn subs_at(subs: &[SubChoice], pick: usize, embed: bool) -> Subs {
+ let all = all_offered(subs);
+ match pick {
+ 0 => Subs {
+ embed,
+ ..Default::default()
+ },
+ 1 if all => Subs {
+ langs: vec![ALL_UPLOADERS.into()],
+ automatic: false,
+ embed,
+ },
+ i => match subs.get(i - 1 - usize::from(all)) {
+ Some(c) => Subs {
+ langs: vec![c.code.clone()],
+ automatic: c.automatic,
+ embed,
+ },
+ None => Subs {
+ embed,
+ ..Default::default()
+ },
+ },
+ }
+}
+
+/// The subtitles saved with choice `c`, from the Subtitles list's choice `chosen`: none for a
+/// sound-only choice; into the video only where its file type holds them (and with ffmpeg,
+/// which VideoJob checks).
+pub(crate) fn subs_for_choice(c: &Choice, chosen: &Subs) -> Subs {
+ if mdm_tools::resolve::is_audio(c) {
+ Subs::default()
+ } else {
+ Subs {
+ embed: chosen.embed && mdm_tools::resolve::holds_subtitles(c),
+ ..chosen.clone()
+ }
+ }
+}
+
+/// The subtitles the window would save with choice `c` of video `v` as it opens, untouched:
+/// the last video's choice (`pref`, settings.video_subs) where this video has that language
+/// ([`pick_for`]), else none. The browser's quality menu adds its choice with these.
+pub(crate) fn default_subs(v: &Video, c: &Choice, pref: &Subs) -> Subs {
+ let subs = mdm_tools::resolve::sub_choices(v, crate::i18n::code());
+ subs_for_choice(c, &subs_at(&subs, pick_for(&subs, pref), pref.embed))
+}
+
+/// The title of the page the browser played video `v` on (`mdm_ipc::Command::video_title`,
+/// trimmed), when yt-dlp knows `v` only by the address it looked up, `page`: it has no page
+/// reader for the site, and on some servers that part is a long hash (#345). None otherwise:
+/// yt-dlp's title stays. The Download video window and the browser's quality menu both name a
+/// video by it.
+pub(crate) fn page_title<'a>(
+ context: &'a mdm_ipc::Command,
+ v: &Video,
+ page: &str,
+) -> Option<&'a str> {
+ context
+ .video_title
+ .as_deref()
+ .map(str::trim)
+ .filter(|t| !t.is_empty() && mdm_tools::resolve::named_after_address(&v.title, page))
+}
+
+/// The file name a choice of type `c` gets for a video titled `title`: made safe, with the
+/// choice's type.
+pub(crate) fn file_name(title: &str, c: &Choice) -> String {
+ let stem = mdm_engine::naming::sanitize(title);
+ format!("{stem}.{}", c.ext)
+}
+
+/// yt-dlp's look-up of `page` with the browser's context, as the Download video window and the
+/// browser's quality menu make it: a plain file's size is asked of its server, as yt-dlp doesn't
+/// say it (#320).
+pub(crate) fn look_up(
+ exe: &std::path::Path,
+ page: &str,
+ browser: &mdm_tools::proc::FromBrowser,
+ rt: &tokio::runtime::Handle,
+) -> Result<Looked, String> {
+ look_up_kept(exe, page, browser, rt).0
+}
+
+/// [`look_up`], with yt-dlp's answer as it gave it, when it gave one (the browser's quality menu
+/// keeps it for the download chosen there, `mdm_tools::video::Preloaded`).
+pub(crate) fn look_up_kept(
+ exe: &std::path::Path,
+ page: &str,
+ browser: &mdm_tools::proc::FromBrowser,
+ rt: &tokio::runtime::Handle,
+) -> (Result<Looked, String>, Option<mdm_tools::proc::LookedUp>) {
+ let (mut res, kept) = match mdm_tools::resolve::look_up_kept(exe, page, browser) {
+ Ok((looked, out)) => (Ok(looked), Some(out)),
+ Err(e) => (Err(e.to_string()), None),
+ };
+ if let Ok(Looked::Video(v)) = &mut res
+ && v.needs_size()
+ && let Some(size) = direct_size(rt, page, browser)
+ {
+ v.set_size(size);
+ }
+ (res, kept)
+}
+
/// yt-dlp's view of the browser's request context.
pub fn from_browser(c: &mdm_ipc::Command) -> mdm_tools::proc::FromBrowser {
mdm_tools::proc::FromBrowser {
@@ -1251,7 +1319,11 @@ pub fn browser_label(name: &str) -> &'static str {
/// yt-dlp's reason in plain words where it is one users meet often; otherwise its own text.
/// `sent`: the browser's extension passed the page's cookies; `store`: else, the browser whose
/// cookies yt-dlp read (Options → Sites Logins → Cookies for video sites, #229).
-fn lookup_error(e: &str, sent: bool, store: Option<&mdm_tools::proc::BrowserCookies>) -> String {
+pub(crate) fn lookup_error(
+ e: &str,
+ sent: bool,
+ store: Option<&mdm_tools::proc::BrowserCookies>,
+) -> String {
let lower = e.to_ascii_lowercase();
let browser = store.map_or("?", |b| browser_label(&b.browser));
let named = |text: &str| crate::i18n::fmt(crate::i18n::t(text), &[("browser", browser)]);
@@ -1537,6 +1609,133 @@ mod tests {
assert!(auto.automatic && auto.embed);
}
+ /// #345: a stream the browser's button sent (its manifest, which yt-dlp names after its
+ /// address) is saved under the title of the page that played it; a video yt-dlp titled
+ /// itself keeps yt-dlp's title.
+ #[test]
+ fn a_streams_file_is_named_after_its_page() {
+ const STREAM: &str = r#"{"title": "master", "formats": [
+ {"format_id": "hls-720", "ext": "mp4", "height": 720, "vcodec": "avc1", "acodec": "mp4a"}]}"#;
+ let video = || mdm_tools::resolve::parse(STREAM.as_bytes()).unwrap();
+ let src = "https://cdn.test/v/hls/master.m3u8";
+ let context = mdm_ipc::Command {
+ video_page: Some(src.into()),
+ video_title: Some("A talk: about download managers? ".into()),
+ ..Default::default()
+ };
+ let mut d = VideoDialog::for_page(PathBuf::from("."), src, context.clone());
+ d.set_video(video());
+ assert_eq!(d.name, "A talk_ about download managers_.mp4");
+ // No page title came (an older extension, or a page yt-dlp read itself): yt-dlp's.
+ let mut d = VideoDialog::for_page(PathBuf::from("."), src, Default::default());
+ d.set_video(video());
+ assert_eq!(d.name, "master.mp4");
+ // The address edited: the browser's title is not for it.
+ let mut d = VideoDialog::for_page(PathBuf::from("."), src, context.clone());
+ d.page = "https://cdn.test/other/index.m3u8".into();
+ d.set_video(video());
+ assert_eq!(d.name, "master.mp4");
+ // A page yt-dlp read itself: its title, not the browser's.
+ const TITLED: &str = r#"{"title": "Its own title", "formats": [
+ {"format_id": "18", "ext": "mp4", "height": 360, "vcodec": "avc1", "acodec": "mp4a"}]}"#;
+ let page = "https://videos.test/watch?v=1";
+ let mut d = VideoDialog::for_page(PathBuf::from("."), page, context);
+ d.set_video(mdm_tools::resolve::parse(TITLED.as_bytes()).unwrap());
+ assert_eq!(d.name, "Its own title.mp4");
+ }
+
+ /// The browser's quality menu adds its choice as this window would, untouched: the same
+ /// file name, and the subtitles it preselects from the last video's choice.
+ #[test]
+ fn the_quality_menu_adds_what_the_window_would() {
+ const TALK: &str = r#"{"title": "A talk: in Lisbon", "language": "en", "duration": 60, "formats": [
+ {"format_id": "140", "ext": "m4a", "vcodec": "none", "acodec": "mp4a", "filesize": 29000000},
+ {"format_id": "43", "ext": "webm", "height": 480, "vcodec": "vp8", "acodec": "vorbis"},
+ {"format_id": "18", "ext": "mp4", "height": 360, "vcodec": "avc1", "acodec": "mp4a", "filesize": 61000000}],
+ "subtitles": {"de": [{"name": "German"}], "fr": [{"name": "French"}]}}"#;
+ let v = mdm_tools::resolve::parse(TALK.as_bytes()).unwrap();
+ let page = "https://videos.test/talk";
+ let with_title = mdm_ipc::Command {
+ video_page: Some(page.into()),
+ video_title: Some(" The page's title ".into()),
+ ..Default::default()
+ };
+ let embed = |mut s: Subs| {
+ s.embed = true;
+ s
+ };
+ for merge in [false, true] {
+ let choices = mdm_tools::resolve::choices(&v, merge);
+ assert!(choices.len() >= 2);
+ for context in [mdm_ipc::Command::default(), with_title.clone()] {
+ for pref in [
+ Subs::default(),
+ want(&["de"], false),
+ embed(want(&["fr"], false)),
+ want(&["ja"], false),
+ embed(want(&[ALL_UPLOADERS], false)),
+ ] {
+ let mut d = VideoDialog::for_page(PathBuf::from("."), page, context.clone())
+ .with_subs(pref.clone());
+ // As set_video leaves it, with or without ffmpeg (not this computer's):
+ // yt-dlp's title is the page's own, which no browser title replaces.
+ assert_eq!(page_title(&context, &v, page), None);
+ d.video = Some((v.clone(), choices.clone()));
+ d.subs = mdm_tools::resolve::sub_choices(&v, crate::i18n::code());
+ d.sub_pick = pick_for(&d.subs, &d.pref);
+ for (i, c) in choices.iter().enumerate() {
+ d.chosen = i;
+ d.name_from_choice();
+ assert_eq!(
+ subs_for_choice(c, &d.chosen_subs()),
+ default_subs(&v, c, &pref),
+ "{pref:?} {c:?}"
+ );
+ assert_eq!(d.name, file_name(&v.title, c));
+ }
+ }
+ }
+ }
+ let choices = mdm_tools::resolve::choices(&v, false);
+ let mp4 = choices.iter().find(|c| c.ext == "mp4").unwrap();
+ let webm = choices.iter().find(|c| c.ext == "webm").unwrap();
+ let audio = choices
+ .iter()
+ .find(|c| mdm_tools::resolve::is_audio(c))
+ .unwrap();
+ assert_eq!(default_subs(&v, mp4, &want(&["de"], false)).langs, ["de"]);
+ let fr = default_subs(&v, webm, &embed(want(&["fr"], false)));
+ assert_eq!(fr.langs, ["fr"]);
+ assert!(!fr.embed, "a WebM can't hold them: beside it");
+ assert!(default_subs(&v, mp4, &embed(want(&["fr"], false))).embed);
+ assert!(
+ default_subs(&v, audio, &want(&["de"], false))
+ .langs
+ .is_empty(),
+ "none with the sound alone"
+ );
+ assert!(
+ default_subs(&v, mp4, &want(&["ja"], false))
+ .langs
+ .is_empty(),
+ "not on this page: none"
+ );
+ assert_eq!(file_name(&v.title, mp4), "A talk_ in Lisbon.mp4");
+ // Named after its address (`talk`): the page's title, trimmed (#345).
+ let hashed = Video {
+ title: "talk".into(),
+ ..v.clone()
+ };
+ assert_eq!(
+ page_title(&with_title, &hashed, page),
+ Some("The page's title")
+ );
+ assert_eq!(
+ page_title(&mdm_ipc::Command::default(), &hashed, page),
+ None
+ );
+ }
+
/// #661: a page's address from the clipboard comes a frame or more after the window opens:
/// it fills an empty box only, and only with a web address.
#[test]
diff --git a/crates/app/src/videolookup.rs b/crates/app/src/videolookup.rs
new file mode 100644
index 00000000..28c65fc8
--- /dev/null
+++ b/crates/app/src/videolookup.rs
@@ -0,0 +1,1360 @@
+//! The browser's quality menu over a video (the extension's button, crates/nmhost): MDM looks
+//! the video up with yt-dlp on a thread of its own and answers at once with a token
+//! (`video_lookup`); the browser asks how it goes (`video_poll`) and sends the choice made there
+//! (`video_pick`), a place in the list MDM offered, which MDM downloads with its own selector for
+//! it and the look-up's own browser context.
+//!
+//! Faster than a look-up and a download each running yt-dlp on the page:
+//! - an HLS stream's playlist MDM can read exactly as yt-dlp would is read by MDM itself
+//! (`mdm_tools::manifest`), and its qualities offered a second and more sooner; yt-dlp looks
+//! it up at the same time, for the download;
+//! - yt-dlp's look-up is kept as it answered (`InfoSlot`), and the download chosen from it
+//! starts from it instead of reading the page again (`mdm_tools::video::Preloaded`);
+//! - a second click on the same video, with exactly the same browser context, shares the first
+//! one's look-up while it runs or once it found the video ([`Lookups::share`]).
+//!
+//! Nothing else is shared between look-ups (a private window's never meets another's, a failure
+//! is never reused), and none is kept past 10 minutes.
+
+use std::collections::HashMap;
+use std::path::{Path, PathBuf};
+use std::sync::atomic::{AtomicUsize, Ordering};
+use std::sync::{Arc, Mutex, MutexGuard, PoisonError};
+use std::time::{Duration, Instant};
+
+use mdm_ipc::api::{VideoChoice, VideoLookupAnswer, lookup};
+use mdm_tools::resolve::{Choice, Looked, Video};
+use mdm_tools::video::{InfoSlot, LOOKUP_WAIT, Preloaded, Subs};
+
+use crate::videodlg::VideoAdd;
+
+/// How long a look-up's token is kept.
+pub const TTL: Duration = Duration::from_secs(10 * 60);
+/// Look-ups kept at once; a new one makes room by forgetting the oldest.
+pub const KEPT: usize = 20;
+/// yt-dlp look-ups running at once; one more is answered `busy`.
+pub const RUNNING: usize = 2;
+/// Choices offered at most (a page has a handful; the browser's messages are capped at 1 MB).
+const CHOICES: usize = 64;
+/// The longest title and message sent to the browser.
+const TITLE_MAX: usize = 300;
+const MESSAGE_MAX: usize = 2000;
+
+/// Where a look-up is.
+#[derive(Debug, Default)]
+pub enum Found {
+ #[default]
+ Looking,
+ /// A video, with the choices offered for it (none: nothing this can download).
+ Video(Video, Vec<Choice>),
+ /// A list of videos (a playlist, a channel): chosen from in MDM's window.
+ List,
+ /// yt-dlp's error.
+ Failed(String),
+}
+
+impl Found {
+ /// What yt-dlp's look-up found, with the choices the Download video window offers for it
+ /// (merged qualities when `merge`: ffmpeg is there).
+ pub fn of(res: Result<Looked, String>, merge: bool) -> Found {
+ match res {
+ Ok(Looked::Video(v)) => {
+ let choices = mdm_tools::resolve::choices(&v, merge);
+ Found::Video(v, choices)
+ }
+ Ok(Looked::List(_)) => Found::List,
+ Err(e) => Found::Failed(e),
+ }
+ }
+}
+
+/// A look-up's state: written by its thread, read by the questions about it.
+pub type Shared = Arc<Mutex<Found>>;
+
+/// The state, even when a thread panicked holding it (it only ever writes a whole value).
+fn lock(found: &Shared) -> MutexGuard<'_, Found> {
+ found.lock().unwrap_or_else(PoisonError::into_inner)
+}
+
+/// One look-up's token.
+struct Search {
+ /// What yt-dlp looks up.
+ address: String,
+ /// The browser's request context it came with ([`context_of`]): yt-dlp's, then its
+ /// download's.
+ context: mdm_ipc::Command,
+ /// The browser's cookie store it came from.
+ store_id: Option<String>,
+ created: Instant,
+ found: Shared,
+ /// yt-dlp's look-up as it answered, for the download chosen from it.
+ info: InfoSlot,
+ /// Its choices are merged qualities (ffmpeg was there).
+ merge: bool,
+}
+
+/// What makes two clicks one look-up ([`Lookups::share`]): the address looked up and everything
+/// of the browser's context yt-dlp asks with, exactly, and merged choices or not. Not the page's
+/// title: each click keeps its own (the file is named after its page, #345).
+#[derive(PartialEq)]
+struct Key {
+ address: String,
+ private: bool,
+ store_id: Option<String>,
+ cookies: Option<String>,
+ jar: Vec<mdm_ipc::BrowserCookie>,
+ referer: Option<String>,
+ user_agent: Option<String>,
+ merge: bool,
+}
+
+impl Key {
+ fn of(context: &mdm_ipc::Command, store_id: &Option<String>, merge: bool) -> Key {
+ Key {
+ address: context.video_page.clone().unwrap_or_default(),
+ private: context.private,
+ store_id: store_id.clone(),
+ cookies: context.cookies.clone(),
+ jar: context.cookie_jar.clone(),
+ referer: context.referer.clone(),
+ user_agent: context.user_agent.clone(),
+ merge,
+ }
+ }
+}
+
+/// A look-up another click may share ([`Lookups::share`]), kept apart from the tokens: a choice
+/// taken from one of them leaves it here.
+struct Recent {
+ key: Key,
+ started: Instant,
+ found: Shared,
+ info: InfoSlot,
+}
+
+/// A running look-up's place among the [`RUNNING`]: given back when dropped, however its
+/// thread ends.
+pub struct Running(Arc<AtomicUsize>);
+
+impl Drop for Running {
+ fn drop(&mut self) {
+ self.0.fetch_sub(1, Ordering::SeqCst);
+ }
+}
+
+/// A look-up to run on a thread of its own ([`run`]).
+pub struct Job {
+ pub token: String,
+ pub address: String,
+ /// yt-dlp's view of the look-up's browser context.
+ pub browser: mdm_tools::proc::FromBrowser,
+ pub found: Shared,
+ pub info: InfoSlot,
+ /// The qualities that need merging are offered (ffmpeg is there).
+ pub merge: bool,
+ pub running: Running,
+}
+
+/// A choice made in the browser that fits its look-up.
+#[derive(Debug)]
+pub struct Picked {
+ pub address: String,
+ pub context: mdm_ipc::Command,
+ pub video: Video,
+ pub choice: Choice,
+ /// yt-dlp's look-up, for the download (its `Debug` shows nothing of it).
+ pub info: InfoSlot,
+ pub merge: bool,
+}
+
+/// The look-ups the browser's quality menu asked for (`App::lookups`).
+#[derive(Default)]
+pub struct Lookups {
+ searches: HashMap<String, Search>,
+ /// The look-ups a click may share, at most [`KEPT`], for [`TTL`] after they began.
+ recent: Vec<Recent>,
+ running: Arc<AtomicUsize>,
+}
+
+impl Lookups {
+ /// Look `ask` up with yt-dlp `exe` and the browser's context of `cmd` (`rt`: for a plain
+ /// file's server): answered at once, `pending` with its token (`busy` while [`RUNNING`] run
+ /// already).
+ pub fn start(
+ &mut self,
+ ask: &mdm_ipc::VideoLookup,
+ cmd: &mdm_ipc::Command,
+ exe: PathBuf,
+ rt: tokio::runtime::Handle,
+ now: Instant,
+ ) -> VideoLookupAnswer {
+ // The qualities that need merging, when ffmpeg is there (as the window offers them).
+ let merge = mdm_tools::tools_dir()
+ .as_deref()
+ .and_then(mdm_tools::ffmpeg::installed)
+ .is_some();
+ if let Some(token) = self.share(ask, cmd, merge, now) {
+ return self.poll(&token, now);
+ }
+ let Some(job) = self.begin(ask, cmd, merge, now) else {
+ return VideoLookupAnswer::of(lookup::BUSY);
+ };
+ let (token, found, info) = (job.token.clone(), job.found.clone(), job.info.clone());
+ match run(job, exe, rt) {
+ Ok(()) => VideoLookupAnswer::pending(&token),
+ // No thread for it (its place came back with the job): said as yt-dlp's error is.
+ Err(e) => {
+ *lock(&found) = Found::Failed(e.to_string());
+ info.fail();
+ self.poll(&token, now)
+ }
+ }
+ }
+
+ /// A token of its own for an earlier look-up of the same thing as `ask` with the browser's
+ /// context of `cmd` (a second click on the same video): the same address, the same context
+ /// for yt-dlp (kind of window, cookie store, cookies, cookie jar, referrer, User-Agent, all
+ /// exactly) and the same kind of choices (`merge`). Shared while it runs, if it began less
+ /// than [`LOOKUP_WAIT`] ago (no second yt-dlp, no place among the [`RUNNING`] taken), or once
+ /// it found the video, within [`TTL`] of its start, never longer. A failure or a list is
+ /// never shared: the click looks it up again. None: nothing to share.
+ pub fn share(
+ &mut self,
+ ask: &mdm_ipc::VideoLookup,
+ cmd: &mdm_ipc::Command,
+ merge: bool,
+ now: Instant,
+ ) -> Option<String> {
+ self.prune(now);
+ let context = context_of(ask, cmd);
+ let store_id = store(&ask.store_id);
+ let key = Key::of(&context, &store_id, merge);
+ let earlier = self.recent.iter().find(|r| {
+ let age = now.saturating_duration_since(r.started);
+ r.key == key
+ && match &*lock(&r.found) {
+ Found::Looking => age < LOOKUP_WAIT,
+ Found::Video(..) => age < TTL,
+ Found::List | Found::Failed(_) => false,
+ }
+ })?;
+ let (found, info) = (earlier.found.clone(), earlier.info.clone());
+ self.make_room();
+ let token = mdm_ipc::random_token();
+ self.searches.insert(
+ token.clone(),
+ Search {
+ address: key.address,
+ context,
+ store_id,
+ created: now,
+ found,
+ info,
+ merge,
+ },
+ );
+ Some(token)
+ }
+
+ /// A new look-up of `ask` with the browser's context of `cmd` (`merge`: offering merged
+ /// qualities), for the caller to run ([`run`]); none (`busy`) while [`RUNNING`] run already.
+ pub fn begin(
+ &mut self,
+ ask: &mdm_ipc::VideoLookup,
+ cmd: &mdm_ipc::Command,
+ merge: bool,
+ now: Instant,
+ ) -> Option<Job> {
+ self.prune(now);
+ // Only this (the window's) thread takes places; the look-ups' threads only give them
+ // back, so the count can't pass RUNNING between the check and the taking.
+ if self.running.load(Ordering::SeqCst) >= RUNNING {
+ return None;
+ }
+ self.running.fetch_add(1, Ordering::SeqCst);
+ let running = Running(self.running.clone());
+ self.make_room();
+ let token = mdm_ipc::random_token();
+ let context = context_of(ask, cmd);
+ let address = context.video_page.clone().unwrap_or_default();
+ let store_id = store(&ask.store_id);
+ let found = Shared::default();
+ let info = InfoSlot::new(now);
+ let job = Job {
+ token: token.clone(),
+ address: address.clone(),
+ browser: crate::videodlg::from_browser(&context),
+ found: found.clone(),
+ info: info.clone(),
+ merge,
+ running,
+ };
+ // The one a later click shares, in place of any earlier one of the same thing.
+ let key = Key::of(&context, &store_id, merge);
+ self.recent.retain(|r| r.key != key);
+ while self.recent.len() >= KEPT {
+ self.recent.remove(0);
+ }
+ self.recent.push(Recent {
+ key,
+ started: now,
+ found: found.clone(),
+ info: info.clone(),
+ });
+ self.searches.insert(
+ token,
+ Search {
+ address,
+ context,
+ store_id,
+ created: now,
+ found,
+ info,
+ merge,
+ },
+ );
+ Some(job)
+ }
+
+ /// Room for one more token: the oldest forgotten while [`KEPT`] are there.
+ fn make_room(&mut self) {
+ while self.searches.len() >= KEPT {
+ let oldest = self
+ .searches
+ .iter()
+ .min_by_key(|(_, s)| s.created)
+ .map(|(t, _)| t.clone());
+ match oldest {
+ Some(t) => self.searches.remove(&t),
+ None => break,
+ };
+ }
+ }
+
+ /// How look-up `token` goes (`gone`: never given, or forgotten).
+ pub fn poll(&mut self, token: &str, now: Instant) -> VideoLookupAnswer {
+ self.prune(now);
+ match self.searches.get(token) {
+ Some(s) => answer(token, s),
+ None => VideoLookupAnswer::of(lookup::GONE),
+ }
+ }
+
+ /// The choice `pick` made in the browser (from a private window: `private`), if it fits
+ /// its look-up: found, one of the choices offered, from the same kind of window and the
+ /// same cookie store. Taken once: the look-up is forgotten then.
+ pub fn pick(
+ &mut self,
+ pick: &mdm_ipc::VideoPick,
+ private: bool,
+ now: Instant,
+ ) -> Option<Picked> {
+ self.prune(now);
+ let s = self.searches.get(&pick.token)?;
+ if s.context.private != private || s.store_id != store(&pick.store_id) {
+ return None;
+ }
+ if pick.choice >= CHOICES {
+ return None;
+ }
+ let (video, choice) = match &*lock(&s.found) {
+ Found::Video(v, choices) => (v.clone(), choices.get(pick.choice)?.clone()),
+ _ => return None,
+ };
+ let s = self.searches.remove(&pick.token)?;
+ Some(Picked {
+ address: s.address,
+ context: s.context,
+ video,
+ choice,
+ info: s.info,
+ merge: s.merge,
+ })
+ }
+
+ /// Forgets the look-ups past [`TTL`], which keep a page's cookies: on the app's clock too, so
+ /// with no other look-up coming along.
+ pub fn prune(&mut self, now: Instant) {
+ self.searches
+ .retain(|_, s| now.saturating_duration_since(s.created) < TTL);
+ self.recent
+ .retain(|r| now.saturating_duration_since(r.started) < TTL);
+ }
+}
+
+/// A cookie store's name, none when blank.
+fn store(s: &Option<String>) -> Option<String> {
+ s.as_deref()
+ .map(str::trim)
+ .filter(|s| !s.is_empty())
+ .map(str::to_owned)
+}
+
+/// `s` cut to `max` characters.
+fn cut(s: &str, max: usize) -> String {
+ s.chars().take(max).collect()
+}
+
+/// The browser's request context a look-up keeps, for yt-dlp and then its download (as the
+/// Download video window keeps the click's): the address looked up (as the window looks it up,
+/// `pages::video_address`), the page's referrer, cookies and User-Agent, whether from a private
+/// window, and the page's title (a video yt-dlp knows only by its address is named by it, #345).
+pub fn context_of(ask: &mdm_ipc::VideoLookup, cmd: &mdm_ipc::Command) -> mdm_ipc::Command {
+ mdm_ipc::Command {
+ video_page: Some(mdm_tools::pages::video_address(&ask.address)),
+ video_title: ask
+ .title
+ .as_deref()
+ .map(str::trim)
+ .filter(|t| !t.is_empty())
+ .map(|t| cut(t, TITLE_MAX)),
+ referer: cmd.referer.clone(),
+ cookies: cmd.cookies.clone(),
+ cookie_jar: cmd.cookie_jar.clone(),
+ user_agent: cmd.user_agent.clone(),
+ private: cmd.private,
+ ..Default::default()
+ }
+}
+
+/// The title video `v`, looked up at `address` with the browser's `context`, is offered and
+/// saved under, as the Download video window names it: the page's when yt-dlp knows it only by
+/// that address (#345), else yt-dlp's.
+fn title_of<'a>(v: &'a Video, address: &str, context: &'a mdm_ipc::Command) -> &'a str {
+ crate::videodlg::page_title(context, v, address).unwrap_or(&v.title)
+}
+
+/// The answer for look-up `token` as it stands: the choices labelled in MDM's language, an
+/// error in its words (as the Download video window says them).
+fn answer(token: &str, s: &Search) -> VideoLookupAnswer {
+ match &*lock(&s.found) {
+ Found::Looking => VideoLookupAnswer::pending(token),
+ Found::Video(_, choices) if choices.is_empty() => {
+ VideoLookupAnswer::failed(lookup::NO_CHOICES, None)
+ }
+ Found::Video(v, choices) => VideoLookupAnswer {
+ token: Some(token.to_owned()),
+ title: Some(cut(title_of(v, &s.address, &s.context), TITLE_MAX)),
+ choices: choices
+ .iter()
+ .take(CHOICES)
+ .map(|c| VideoChoice {
+ label: crate::videodlg::choice_label(&c.label),
+ ext: c.ext.clone(),
+ size: c.size,
+ audio: mdm_tools::resolve::is_audio(c),
+ })
+ .collect(),
+ ..VideoLookupAnswer::of(lookup::READY)
+ },
+ Found::List => VideoLookupAnswer::of(lookup::LIST),
+ Found::Failed(e) => {
+ // Whose cookies the look-up had (#229): the extension's, or (none came) those of
+ // the browser Options names.
+ let sent = s
+ .context
+ .cookies
+ .as_deref()
+ .is_some_and(|c| !c.trim().is_empty());
+ let store = (!sent).then(mdm_tools::proc::browser_cookies).flatten();
+ let message = crate::videodlg::lookup_error(e, sent, store.as_ref());
+ VideoLookupAnswer::failed(lookup::ERROR, Some(cut(&message, MESSAGE_MAX)))
+ }
+ }
+}
+
+/// The download choice `p` adds, into `folder` (the Video category's), or `music` (the Music
+/// category's, None when the user deleted it) for a sound-only choice, listed under that category
+/// as the Download video window does (#611): MDM's own selector for it, the file named as the
+/// Download video window names it, the subtitles that window would preselect from `pref`
+/// (settings.video_subs, not changed by it), started now unless `start_now` is false (Options:
+/// only add to the queue), from the look-up's own yt-dlp answer (its first run). None for an
+/// address MDM can't take.
+pub fn video_add(
+ p: Picked,
+ folder: &Path,
+ music: Option<&Path>,
+ start_now: bool,
+ pref: &Subs,
+) -> Option<VideoAdd> {
+ let page = url::Url::parse(&p.address)
+ .ok()
+ .filter(|u| matches!(u.scheme(), "http" | "https"))?;
+ let name = crate::videodlg::file_name(title_of(&p.video, &p.address, &p.context), &p.choice);
+ let (category, folder) = match music {
+ Some(m) if mdm_tools::resolve::is_audio(&p.choice) => (crate::model::Category::Music, m),
+ _ => (crate::model::Category::Video, folder),
+ };
+ Some(VideoAdd {
+ page,
+ selector: p.choice.selector.clone(),
+ dest: folder.join(mdm_engine::naming::sanitize(name.trim())),
+ category,
+ size: p.choice.size,
+ start_now,
+ subs: crate::videodlg::default_subs(&p.video, &p.choice, pref),
+ context: p.context,
+ remember: None,
+ preloaded: Some(Preloaded {
+ slot: p.info,
+ selector: p.choice.selector,
+ label: p.choice.label,
+ merge: p.merge,
+ }),
+ })
+}
+
+/// Writes the look-up's end when its thread ends without one (a panic on it): nothing stays
+/// "looking" (a second click would share it) nor pending (its download would wait for it).
+struct Ended {
+ found: Shared,
+ info: InfoSlot,
+}
+
+impl Drop for Ended {
+ fn drop(&mut self) {
+ let mut found = lock(&self.found);
+ if matches!(*found, Found::Looking) {
+ // yt-dlp's words for an end without an answer.
+ *found = Found::Failed(
+ mdm_tools::proc::ProcError::Failed {
+ tool: "yt-dlp".into(),
+ message: "it stopped without saying why".into(),
+ }
+ .to_string(),
+ );
+ }
+ self.info.fail();
+ }
+}
+
+/// yt-dlp's look-up as `videodlg::look_up_kept` makes it: what it found, and its answer as it
+/// gave it.
+type Kept = (Result<Looked, String>, Option<mdm_tools::proc::LookedUp>);
+
+/// A look-up's two readings at once, the first answer taking the menu: MDM's own of a stream's
+/// playlists (`fast`, on the runtime `rt`, 5 s at most; preferred, and much the quicker), and
+/// yt-dlp's (`slow`, on this thread), started at once whatever the other does (a slow playlist
+/// server never holds it up) and kept for the download either way (`info`). An answer once
+/// written stays (the browser may be showing its choices, and picks by place in them); a
+/// failure of yt-dlp's waits for MDM's reading, which may still bring the video.
+fn settle(
+ found: &Shared,
+ info: &InfoSlot,
+ merge: bool,
+ rt: &tokio::runtime::Handle,
+ fast: impl std::future::Future<Output = Option<Video>> + Send + 'static,
+ slow: impl FnOnce() -> Kept,
+) {
+ let mine = found.clone();
+ let reading = rt.spawn(async move {
+ if let Some(v) = fast.await {
+ let mut found = lock(&mine);
+ if matches!(*found, Found::Looking) {
+ *found = Found::of(Ok(Looked::Video(v)), merge);
+ }
+ }
+ });
+ let (res, kept) = slow();
+ match (&res, kept) {
+ (Ok(Looked::Video(_)), Some(out)) => info.fill(out.json, out.without_cookies),
+ _ => info.fail(),
+ }
+ if res.is_err() {
+ let _ = rt.block_on(reading);
+ }
+ let mut found = lock(found);
+ if matches!(*found, Found::Looking) {
+ *found = Found::of(res, merge);
+ }
+}
+
+/// Run `job` with yt-dlp `exe` on a thread of its own, as the Download video window looks a
+/// video up (`rt`: a plain file's size from its server, and an HLS stream's playlists): its
+/// state written when yt-dlp answers (within its 90 s, twice that without the cookies), or
+/// sooner when MDM reads the stream itself ([`settle`]), its place given back as the thread
+/// ends. A look-up forgotten meanwhile (10 minutes, or 20 newer ones) ends all the same, with
+/// nothing to read it.
+pub fn run(job: Job, exe: PathBuf, rt: tokio::runtime::Handle) -> std::io::Result<()> {
+ std::thread::Builder::new()
+ .name("mdm-video-lookup".into())
+ .spawn(move || {
+ let Job {
+ address,
+ browser,
+ found,
+ info,
+ merge,
+ running,
+ ..
+ } = job;
+ let _ended = Ended {
+ found: found.clone(),
+ info: info.clone(),
+ };
+ // A stream's playlist MDM reads exactly as yt-dlp would (as Options' proxy and the
+ // browser's request for it); none for anything else.
+ let fast = {
+ let (address, browser) = (address.clone(), browser.clone());
+ let opts = crate::settings::own_net();
+ async move { mdm_tools::manifest::fetch(&address, &browser, &opts).await }
+ };
+ // yt-dlp's look-up all the same (the click asked for the video): kept for the
+ // download, and the menu's answer when MDM can't read the stream.
+ settle(&found, &info, merge, &rt, fast, || {
+ crate::videodlg::look_up_kept(&exe, &address, &browser, &rt)
+ });
+ drop(running);
+ })?;
+ Ok(())
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+ use mdm_ipc::{Command, VideoLookup, VideoPick};
+
+ /// A stream's manifest as yt-dlp sees it (named after its address) with two variants and
+ /// German subtitles.
+ const STREAM: &str = r#"{"title": "master", "duration": 60, "formats": [
+ {"format_id": "hls-2500", "ext": "mp4", "height": 720, "vcodec": "avc1", "acodec": "mp4a", "tbr": 2500},
+ {"format_id": "hls-800", "ext": "mp4", "height": 360, "vcodec": "avc1", "acodec": "mp4a", "tbr": 800}],
+ "subtitles": {"de": [{"name": "German"}]}}"#;
+ const SRC: &str = "https://cdn.test/v/hls/master.m3u8";
+ const PAGE: &str = "https://videos.test/watch?v=1";
+
+ fn look(address: &str, title: Option<&str>, store: Option<&str>) -> VideoLookup {
+ VideoLookup {
+ address: address.into(),
+ title: title.map(str::to_owned),
+ store_id: store.map(str::to_owned),
+ }
+ }
+
+ /// The host's command: the browser's context with the look-up.
+ fn sent(private: bool, cookies: &str) -> Command {
+ Command {
+ referer: Some(PAGE.into()),
+ cookies: Some(cookies.into()),
+ user_agent: Some("UA".into()),
+ private,
+ startup: true,
+ ..Default::default()
+ }
+ }
+
+ fn pick(token: &str, choice: usize, store: Option<&str>) -> VideoPick {
+ VideoPick {
+ token: token.into(),
+ choice,
+ store_id: store.map(str::to_owned),
+ }
+ }
+
+ /// The look-up's thread, as yt-dlp answers it.
+ fn answered(job: &Job, json: &str) {
+ let v = mdm_tools::resolve::parse_looked(json.as_bytes()).unwrap();
+ *lock(&job.found) = Found::of(Ok(v), false);
+ }
+
+ #[test]
+ fn each_look_up_keeps_its_own_context() {
+ let mut l = Lookups::default();
+ let now = Instant::now();
+ let a = l
+ .begin(
+ &look(
+ SRC,
+ Some(" A talk: in Lisbon "),
+ Some("firefox-container-1"),
+ ),
+ &sent(false, "a=1"),
+ false,
+ now,
+ )
+ .unwrap();
+ let b = l
+ .begin(&look(PAGE, None, None), &sent(false, "b=2"), false, now)
+ .unwrap();
+ assert_ne!(a.token, b.token);
+ assert_eq!(a.token.len(), 64);
+ // yt-dlp asks with each one's own.
+ assert_eq!(
+ (a.address.as_str(), a.browser.cookies.as_deref()),
+ (SRC, Some("a=1"))
+ );
+ assert_eq!(
+ (b.address.as_str(), b.browser.cookies.as_deref()),
+ (PAGE, Some("b=2"))
+ );
+ assert_eq!(a.browser.referer.as_deref(), Some(PAGE));
+ assert_eq!(l.poll(&a.token, now), VideoLookupAnswer::pending(&a.token));
+ answered(&a, STREAM);
+ let ready = l.poll(&a.token, now);
+ assert_eq!(ready.state, lookup::READY);
+ assert_eq!(ready.token.as_deref(), Some(a.token.as_str()));
+ assert_eq!(
+ ready.title.as_deref(),
+ Some("A talk: in Lisbon"),
+ "the page's, not yt-dlp's `master`"
+ );
+ assert_eq!(ready.choices.len(), 2);
+ assert!(
+ ready.choices[0].label.contains("720p"),
+ "{:?}",
+ ready.choices
+ );
+ assert_eq!(ready.choices[0].ext, "mp4");
+ assert_eq!(ready.choices[0].size, Some(60 * 2500 * 125), "estimated");
+ assert!(ready.choices.iter().all(|c| !c.audio), "videos");
+ assert_eq!(l.poll(&b.token, now).state, lookup::PENDING, "its own");
+ // The choice takes the look-up's context and MDM's selector for that place.
+ let p = l
+ .pick(&pick(&a.token, 1, Some("firefox-container-1")), false, now)
+ .unwrap();
+ assert_eq!(p.address, SRC);
+ assert_eq!(p.context.cookies.as_deref(), Some("a=1"));
+ assert_eq!(p.context.referer.as_deref(), Some(PAGE));
+ assert_eq!(p.context.user_agent.as_deref(), Some("UA"));
+ assert_eq!(p.context.video_title.as_deref(), Some("A talk: in Lisbon"));
+ assert!(!p.context.private && !p.context.startup);
+ assert_eq!(p.choice.selector, "b[height=360]");
+ // Once.
+ assert!(
+ l.pick(&pick(&a.token, 1, Some("firefox-container-1")), false, now)
+ .is_none()
+ );
+ assert_eq!(l.poll(&a.token, now).state, lookup::GONE);
+ assert_eq!(l.poll("nonsense", now).state, lookup::GONE);
+ }
+
+ /// A private window's look-up is taken from a private window only, and from the same
+ /// cookie store; a normal one from a normal window only.
+ #[test]
+ fn a_private_windows_look_up_is_its_own() {
+ let mut l = Lookups::default();
+ let now = Instant::now();
+ let private = l
+ .begin(
+ &look(PAGE, None, Some("firefox-private")),
+ &sent(true, "p=1"),
+ false,
+ now,
+ )
+ .unwrap();
+ let normal = l
+ .begin(&look(PAGE, None, None), &sent(false, "n=1"), false, now)
+ .unwrap();
+ answered(&private, STREAM);
+ answered(&normal, STREAM);
+ let t = private.token.clone();
+ assert!(
+ l.pick(&pick(&t, 0, Some("firefox-private")), false, now)
+ .is_none()
+ );
+ assert!(l.pick(&pick(&t, 0, None), true, now).is_none());
+ assert!(
+ l.pick(&pick(&t, 0, Some("firefox-default")), true, now)
+ .is_none()
+ );
+ assert!(l.pick(&pick(&normal.token, 0, None), true, now).is_none());
+ assert!(
+ l.pick(&pick(&normal.token, 0, Some("firefox-private")), false, now)
+ .is_none()
+ );
+ // The refusals forgot nothing.
+ let p = l
+ .pick(&pick(&t, 0, Some("firefox-private")), true, now)
+ .unwrap();
+ assert!(p.context.private);
+ assert_eq!(p.context.cookies.as_deref(), Some("p=1"));
+ // A blank store is none.
+ assert!(
+ l.pick(&pick(&normal.token, 0, Some(" ")), false, now)
+ .is_some()
+ );
+ }
+
+ /// A second click on the same video, with the same browser context, gets a token of its own
+ /// for the first click's look-up: no second yt-dlp, no place among the two taken, the same
+ /// answer when it comes, yt-dlp's kept answer for its download; its own page title (each
+ /// click names its file after its page). Shared after a choice was taken from it, too.
+ #[test]
+ fn a_second_click_shares_the_first_look_up() {
+ let mut l = Lookups::default();
+ let now = Instant::now();
+ let first = l
+ .begin(
+ &look(SRC, Some("Talk A"), None),
+ &sent(false, "a=1"),
+ false,
+ now,
+ )
+ .unwrap();
+ let other = l
+ .begin(&look(PAGE, None, None), &sent(false, "b=2"), false, now)
+ .unwrap();
+ // Both places taken: still shared.
+ let later = now + Duration::from_secs(30);
+ let second = l
+ .share(
+ &look(SRC, Some("Talk B"), None),
+ &sent(false, "a=1"),
+ false,
+ later,
+ )
+ .expect("shared");
+ assert_ne!(second, first.token);
+ assert_eq!(l.running.load(Ordering::SeqCst), RUNNING, "no place taken");
+ assert_eq!(l.poll(&second, later), VideoLookupAnswer::pending(&second));
+ answered(&first, STREAM);
+ first.info.fill(STREAM.as_bytes().to_vec(), false);
+ let (a, b) = (l.poll(&first.token, later), l.poll(&second, later));
+ assert_eq!(
+ (a.state.as_str(), b.state.as_str()),
+ (lookup::READY, lookup::READY)
+ );
+ assert_eq!(a.choices, b.choices);
+ assert_eq!(
+ (a.title.as_deref(), b.title.as_deref()),
+ (Some("Talk A"), Some("Talk B")),
+ "each its own page's"
+ );
+ let p = l.pick(&pick(&second, 0, None), false, later).unwrap();
+ assert!(!p.info.pending(), "the first click's yt-dlp answer");
+ assert_eq!(p.context.video_title.as_deref(), Some("Talk B"));
+ // A choice taken leaves it to share.
+ assert!(
+ l.share(&look(SRC, None, None), &sent(false, "a=1"), false, later)
+ .is_some()
+ );
+ drop(other);
+ }
+
+ /// The context a second click must share exactly, one part of it changed.
+ fn shares_with(change: impl Fn(&mut VideoLookup, &mut Command, &mut bool)) -> bool {
+ let mut l = Lookups::default();
+ let now = Instant::now();
+ let base = || {
+ let mut cmd = sent(false, "a=1");
+ cmd.cookie_jar = vec![mdm_ipc::BrowserCookie {
+ name: "sid".into(),
+ value: "1".into(),
+ domain: ".cdn.test".into(),
+ ..Default::default()
+ }];
+ (
+ look(SRC, Some("A talk"), Some("firefox-container-1")),
+ cmd,
+ false,
+ )
+ };
+ let (ask, cmd, merge) = base();
+ let job = l.begin(&ask, &cmd, merge, now).unwrap();
+ let (mut ask, mut cmd, mut merge) = base();
+ change(&mut ask, &mut cmd, &mut merge);
+ let shared = l.share(&ask, &cmd, merge, now).is_some();
+ drop(job);
+ shared
+ }
+
+ #[test]
+ fn the_same_context_shares() {
+ assert!(shares_with(|_, _, _| {}));
+ // The page's title isn't part of it.
+ assert!(shares_with(
+ |a, _, _| a.title = Some("Another tab's title".into())
+ ));
+ }
+
+ #[test]
+ fn another_address_is_its_own_look_up() {
+ assert!(!shares_with(|a, _, _| a.address = PAGE.into()));
+ }
+
+ #[test]
+ fn another_kind_of_window_is_its_own_look_up() {
+ assert!(!shares_with(|_, c, _| c.private = true));
+ }
+
+ #[test]
+ fn another_cookie_store_is_its_own_look_up() {
+ assert!(!shares_with(
+ |a, _, _| a.store_id = Some("firefox-container-2".into())
+ ));
+ assert!(!shares_with(|a, _, _| a.store_id = None));
+ }
+
+ #[test]
+ fn other_cookies_are_their_own_look_up() {
+ assert!(!shares_with(|_, c, _| c.cookies = Some("a=2".into())));
+ assert!(!shares_with(|_, c, _| c.cookies = None));
+ }
+
+ #[test]
+ fn another_cookie_jar_is_its_own_look_up() {
+ assert!(!shares_with(|_, c, _| c.cookie_jar[0].value = "2".into()));
+ assert!(!shares_with(|_, c, _| c.cookie_jar.clear()));
+ }
+
+ #[test]
+ fn another_referrer_is_its_own_look_up() {
+ assert!(!shares_with(
+ |_, c, _| c.referer = Some("https://videos.test/other".into())
+ ));
+ }
+
+ #[test]
+ fn another_user_agent_is_its_own_look_up() {
+ assert!(!shares_with(|_, c, _| c.user_agent = Some("UA/2".into())));
+ }
+
+ #[test]
+ fn other_choices_are_their_own_look_up() {
+ assert!(!shares_with(|_, _, m| *m = true));
+ }
+
+ /// Never shared: a failure or a list (the click looks it up again), a look-up running longer
+ /// than it may, a video found more than ten minutes after its look-up began (however late a
+ /// click shared it before).
+ #[test]
+ fn what_a_click_never_shares() {
+ let now = Instant::now();
+ let ask = look(SRC, None, None);
+ let cmd = sent(false, "a=1");
+ let mut l = Lookups::default();
+ let job = l.begin(&ask, &cmd, false, now).unwrap();
+ *lock(&job.found) = Found::Failed("yt-dlp failed".into());
+ assert!(l.share(&ask, &cmd, false, now).is_none());
+ *lock(&job.found) = Found::List;
+ assert!(l.share(&ask, &cmd, false, now).is_none());
+ *lock(&job.found) = Found::Looking;
+ assert!(
+ l.share(
+ &ask,
+ &cmd,
+ false,
+ now + LOOKUP_WAIT - Duration::from_secs(1)
+ )
+ .is_some()
+ );
+ assert!(l.share(&ask, &cmd, false, now + LOOKUP_WAIT).is_none());
+ answered(&job, STREAM);
+ let late = now + TTL - Duration::from_secs(1);
+ let token = l.share(&ask, &cmd, false, late).unwrap();
+ assert!(
+ l.share(&ask, &cmd, false, now + TTL).is_none(),
+ "never extended"
+ );
+ // The token given late lives its own ten minutes.
+ assert_eq!(l.poll(&token, now + TTL).state, lookup::READY);
+ // A new look-up of the same thing takes the old one's place.
+ let mut l = Lookups::default();
+ let a = l.begin(&ask, &cmd, false, now).unwrap();
+ let b = l.begin(&ask, &cmd, false, now).unwrap();
+ answered(&a, STREAM);
+ let t = l.share(&ask, &cmd, false, now).unwrap();
+ answered(&b, &STREAM.replace("hls-2500", "other"));
+ assert!(Arc::ptr_eq(&l.searches[&t].found, &b.found));
+ // At most KEPT of them.
+ let mut l = Lookups::default();
+ for i in 0..KEPT + 5 {
+ let job = l
+ .begin(&look(&format!("{SRC}?{i}"), None, None), &cmd, false, now)
+ .unwrap();
+ drop(job);
+ }
+ assert_eq!(l.recent.len(), KEPT);
+ }
+
+ /// A look-up's thread that ends without an answer (a panic) leaves it failed, never
+ /// "looking" (a second click would share it) nor its yt-dlp answer pending (its download
+ /// would wait for it).
+ #[test]
+ fn a_look_up_ended_without_an_answer_is_failed() {
+ let found = Shared::default();
+ let info = InfoSlot::new(Instant::now());
+ let (f, i) = (found.clone(), info.clone());
+ let ended = std::thread::spawn(move || {
+ let _ended = Ended { found: f, info: i };
+ panic!("on the look-up's thread");
+ })
+ .join();
+ assert!(ended.is_err());
+ assert!(
+ matches!(&*lock(&found), Found::Failed(e) if e.contains("stopped without saying why"))
+ );
+ assert!(!info.pending());
+ // The menu's answer stays when only yt-dlp's for the download is missing.
+ let found: Shared = Arc::new(Mutex::new(Found::List));
+ let info = InfoSlot::new(Instant::now());
+ drop(Ended {
+ found: found.clone(),
+ info: info.clone(),
+ });
+ assert!(matches!(&*lock(&found), Found::List));
+ assert!(!info.pending());
+ }
+
+ /// MDM's reading of a stream and yt-dlp's run at once: yt-dlp starts at once however slow
+ /// the stream's server, the first answer takes the menu and stays, MDM's reading wins
+ /// against a yt-dlp that failed; yt-dlp's answer is kept for the download either way.
+ #[test]
+ fn the_two_readings_run_at_once() {
+ let rt = tokio::runtime::Runtime::new().unwrap();
+ let video = |title: &str| {
+ mdm_tools::resolve::parse(
+ STREAM
+ .replace("\"master\"", &format!("{title:?}"))
+ .as_bytes(),
+ )
+ .unwrap()
+ };
+ let ytdlp = |title: &str| -> Kept {
+ (
+ Ok(Looked::Video(video(title))),
+ Some(mdm_tools::proc::LookedUp {
+ json: STREAM.as_bytes().to_vec(),
+ without_cookies: false,
+ }),
+ )
+ };
+ let failed = || -> Kept { (Err("yt-dlp failed: no".into()), None) };
+ let title = |found: &Shared| match &*lock(found) {
+ Found::Video(v, _) => v.title.clone(),
+ Found::Failed(e) => format!("failed: {e}"),
+ _ => "other".into(),
+ };
+ let reading = |title: &'static str, ms: u64| {
+ let v = (!title.is_empty()).then(|| video(title));
+ async move {
+ tokio::time::sleep(Duration::from_millis(ms)).await;
+ v
+ }
+ };
+ let fresh = || (Shared::default(), InfoSlot::new(Instant::now()));
+
+ // MDM's reading first: the menu's; yt-dlp's kept for the download.
+ let (found, info) = fresh();
+ settle(
+ &found,
+ &info,
+ false,
+ rt.handle(),
+ reading("mine", 0),
+ || {
+ std::thread::sleep(Duration::from_millis(200));
+ ytdlp("yt-dlp's")
+ },
+ );
+ assert_eq!(title(&found), "mine");
+ assert!(!info.pending());
+
+ // yt-dlp first: its answer, which MDM's later reading doesn't replace.
+ let (found, info) = fresh();
+ settle(
+ &found,
+ &info,
+ false,
+ rt.handle(),
+ reading("mine", 300),
+ || ytdlp("yt-dlp's"),
+ );
+ assert_eq!(title(&found), "yt-dlp's");
+ std::thread::sleep(Duration::from_millis(500));
+ assert_eq!(title(&found), "yt-dlp's", "stays");
+ drop(info);
+
+ // yt-dlp failed first: MDM's reading still brings the video.
+ let (found, info) = fresh();
+ settle(
+ &found,
+ &info,
+ false,
+ rt.handle(),
+ reading("mine", 200),
+ failed,
+ );
+ assert_eq!(title(&found), "mine");
+ assert!(!info.pending(), "nothing kept: the download looks it up");
+
+ // Both fail: yt-dlp's error.
+ let (found, info) = fresh();
+ settle(&found, &info, false, rt.handle(), reading("", 100), failed);
+ assert_eq!(title(&found), "failed: yt-dlp failed: no");
+ drop(info);
+
+ // A slow playlist server never holds yt-dlp up.
+ let (found, info) = fresh();
+ let begun = Instant::now();
+ let mut started = None;
+ settle(&found, &info, false, rt.handle(), reading("", 3000), || {
+ started = Some(begun.elapsed());
+ ytdlp("yt-dlp's")
+ });
+ assert!(started.unwrap() < Duration::from_millis(100), "{started:?}");
+ assert!(begun.elapsed() < Duration::from_secs(1));
+ assert_eq!(title(&found), "yt-dlp's");
+ drop(info);
+ }
+
+ /// The menu looks up what the Download video window would: Dailymotion's embedded player is
+ /// the video's own page (#359), downloaded from there too.
+ #[test]
+ fn the_menu_looks_up_what_the_window_would() {
+ let mut l = Lookups::default();
+ let now = Instant::now();
+ let player = "https://geo.dailymotion.com/player/x19jsm.html?video=k4lGbCpdJJFSQgMvE8W";
+ let own = "https://www.dailymotion.com/video/k4lGbCpdJJFSQgMvE8W";
+ let job = l
+ .begin(&look(player, None, None), &sent(false, ""), false, now)
+ .unwrap();
+ assert_eq!(job.address, own);
+ answered(&job, STREAM);
+ let p = l.pick(&pick(&job.token, 0, None), false, now).unwrap();
+ assert_eq!(
+ (p.address.as_str(), p.context.video_page.as_deref()),
+ (own, Some(own))
+ );
+ }
+
+ /// Two yt-dlp look-ups at a time: the third is `busy` until one of them ends, its place given
+ /// back whatever happens to its token.
+ #[test]
+ fn two_look_ups_at_a_time() {
+ let mut l = Lookups::default();
+ let now = Instant::now();
+ let a = l
+ .begin(&look(PAGE, None, None), &sent(false, ""), false, now)
+ .unwrap();
+ let b = l
+ .begin(&look(PAGE, None, None), &sent(false, ""), false, now)
+ .unwrap();
+ assert!(
+ l.begin(&look(PAGE, None, None), &sent(false, ""), false, now)
+ .is_none(),
+ "busy"
+ );
+ // One ends on its own thread.
+ let Job { running, .. } = a;
+ std::thread::spawn(move || drop(running)).join().unwrap();
+ let c = l
+ .begin(&look(PAGE, None, None), &sent(false, ""), false, now)
+ .unwrap();
+ assert!(
+ l.begin(&look(PAGE, None, None), &sent(false, ""), false, now)
+ .is_none()
+ );
+ // Forgotten tokens' threads still give their places back.
+ let later = now + TTL;
+ assert_eq!(l.poll(&b.token, later).state, lookup::GONE);
+ drop(b);
+ drop(c);
+ assert!(
+ l.begin(&look(PAGE, None, None), &sent(false, ""), false, later)
+ .is_some()
+ );
+ assert_eq!(l.running.load(Ordering::SeqCst), 0, "dropped at once here");
+ }
+
+ /// Ten minutes, or twenty newer look-ups, and a token is gone.
+ #[test]
+ fn tokens_are_forgotten() {
+ let mut l = Lookups::default();
+ let now = Instant::now();
+ let first = l
+ .begin(&look(PAGE, None, None), &sent(false, ""), false, now)
+ .unwrap()
+ .token;
+ assert_eq!(
+ l.poll(&first, now + TTL - Duration::from_secs(1)).state,
+ lookup::PENDING
+ );
+ assert_eq!(l.poll(&first, now + TTL).state, lookup::GONE);
+ let tokens: Vec<String> = (0..=KEPT as u64)
+ .map(|i| {
+ l.begin(
+ &look(PAGE, None, None),
+ &sent(false, ""),
+ false,
+ now + Duration::from_millis(i),
+ )
+ .unwrap()
+ .token
+ })
+ .collect();
+ let at = now + Duration::from_secs(1);
+ assert_eq!(l.poll(&tokens[0], at).state, lookup::GONE, "the oldest");
+ assert_eq!(l.poll(&tokens[KEPT], at).state, lookup::PENDING);
+ assert_eq!(l.poll(&tokens[1], at).state, lookup::PENDING);
+ assert_eq!(l.searches.len(), KEPT);
+ }
+
+ /// The browser never names a selector: only a place among the choices offered, while they
+ /// are the ones offered.
+ #[test]
+ fn a_choice_must_be_one_offered() {
+ let mut l = Lookups::default();
+ let now = Instant::now();
+ let job = l
+ .begin(&look(SRC, None, None), &sent(false, ""), false, now)
+ .unwrap();
+ let t = job.token.clone();
+ assert!(
+ l.pick(&pick(&t, 0, None), false, now).is_none(),
+ "still looking"
+ );
+ answered(&job, STREAM);
+ assert!(
+ l.pick(&pick(&t, 2, None), false, now).is_none(),
+ "out of range"
+ );
+ assert!(l.pick(&pick(&t, usize::MAX, None), false, now).is_none());
+ assert!(l.pick(&pick("other", 0, None), false, now).is_none());
+ assert!(
+ l.pick(&pick(&t, 0, None), false, now + TTL).is_none(),
+ "forgotten"
+ );
+ let job = l
+ .begin(&look(SRC, None, None), &sent(false, ""), false, now)
+ .unwrap();
+ *lock(&job.found) = Found::List;
+ assert!(l.pick(&pick(&job.token, 0, None), false, now).is_none());
+ *lock(&job.found) = Found::Failed("yt-dlp failed".into());
+ assert!(l.pick(&pick(&job.token, 0, None), false, now).is_none());
+ }
+
+ /// What isn't a video to choose from is said: a list, nothing to download, yt-dlp's error
+ /// (in MDM's words when it has some).
+ #[test]
+ fn lists_and_failures_are_said() {
+ let mut l = Lookups::default();
+ let now = Instant::now();
+ let job = l
+ .begin(&look(PAGE, None, None), &sent(false, ""), false, now)
+ .unwrap();
+ answered(
+ &job,
+ r#"{"_type": "playlist", "title": "Talks", "playlist_count": 12}"#,
+ );
+ assert_eq!(l.poll(&job.token, now), VideoLookupAnswer::of(lookup::LIST));
+ answered(
+ &job,
+ r#"{"title": "Slides", "formats": [{"format_id": "0", "ext": "jpg", "vcodec": "none", "acodec": "none"}]}"#,
+ );
+ assert_eq!(
+ l.poll(&job.token, now),
+ VideoLookupAnswer::failed(lookup::NO_CHOICES, None)
+ );
+ *lock(&job.found) = Found::Failed("yt-dlp failed: Video unavailable".into());
+ let failed = l.poll(&job.token, now);
+ assert_eq!(
+ (failed.state.as_str(), failed.reason.as_deref()),
+ (lookup::FAILED, Some(lookup::ERROR))
+ );
+ assert_eq!(
+ failed.message.as_deref(),
+ Some("yt-dlp failed: Video unavailable")
+ );
+ *lock(&job.found) = Found::Failed("x".repeat(10_000));
+ assert_eq!(
+ l.poll(&job.token, now).message.unwrap().chars().count(),
+ MESSAGE_MAX
+ );
+ assert!(matches!(Found::of(Err("e".into()), true), Found::Failed(_)));
+ }
+
+ /// The choice is added with MDM's selector for it, named after the page that played it,
+ /// with the subtitles the window would preselect; started, or queued when Options say so.
+ #[test]
+ fn the_choice_is_added_as_the_window_would() {
+ let mut l = Lookups::default();
+ let now = Instant::now();
+ let folder = PathBuf::from("downloads").join("Video");
+ let de = Subs {
+ langs: vec!["de".into()],
+ automatic: false,
+ embed: false,
+ };
+ let job = l
+ .begin(
+ &look(SRC, Some("A talk: in Lisbon"), None),
+ &sent(false, "a=1"),
+ false,
+ now,
+ )
+ .unwrap();
+ answered(&job, STREAM);
+ let p = l.pick(&pick(&job.token, 0, None), false, now).unwrap();
+ drop(job);
+ let add = video_add(p, &folder, None, true, &de).unwrap();
+ assert_eq!(add.page.as_str(), SRC);
+ assert_eq!(
+ add.selector, "b[height=720]",
+ "MDM's own, never the browser's"
+ );
+ assert_eq!(add.dest, folder.join("A talk_ in Lisbon.mp4"));
+ assert_eq!(add.size, Some(60 * 2500 * 125));
+ assert!(add.start_now);
+ assert_eq!(add.context.cookies.as_deref(), Some("a=1"));
+ assert_eq!(
+ add.subs.langs,
+ ["de"],
+ "the last video's choice, on this page too"
+ );
+ assert!(add.remember.is_none(), "the remembered choice stays");
+ // The look-up's yt-dlp answer goes with it, for the very choice made.
+ let pre = add.preloaded.as_ref().unwrap();
+ assert_eq!(
+ (pre.selector.as_str(), pre.label.as_str(), pre.merge),
+ ("b[height=720]", "720p MP4", false)
+ );
+ // No page title (a page yt-dlp names itself), Options' "only add to the queue", a
+ // language this page doesn't have.
+ let job = l
+ .begin(&look(SRC, None, None), &sent(false, ""), false, now)
+ .unwrap();
+ answered(&job, STREAM);
+ let p = l.pick(&pick(&job.token, 1, None), false, now).unwrap();
+ drop(job);
+ let ja = Subs {
+ langs: vec!["ja".into()],
+ ..Default::default()
+ };
+ let add = video_add(p, &folder, None, false, &ja).unwrap();
+ assert_eq!(add.dest, folder.join("master.mp4"));
+ assert_eq!(add.selector, "b[height=360]");
+ assert!(!add.start_now);
+ assert!(add.subs.langs.is_empty());
+ // A video yt-dlp titled itself keeps its title, whatever the page's (#345).
+ let job = l
+ .begin(
+ &look(PAGE, Some("The page's title"), None),
+ &sent(false, ""),
+ false,
+ now,
+ )
+ .unwrap();
+ answered(&job, &STREAM.replace("\"master\"", "\"Its own title\""));
+ assert_eq!(
+ l.poll(&job.token, now).title.as_deref(),
+ Some("Its own title")
+ );
+ let p = l.pick(&pick(&job.token, 0, None), false, now).unwrap();
+ drop(job);
+ let add = video_add(p, &folder, None, true, &Subs::default()).unwrap();
+ assert_eq!(add.dest, folder.join("Its own title.mp4"));
+ // Never an address that isn't on the web.
+ let job = l
+ .begin(
+ &look("file:///C:/v.mp4", None, None),
+ &sent(false, ""),
+ false,
+ now,
+ )
+ .unwrap();
+ answered(&job, STREAM);
+ let p = l.pick(&pick(&job.token, 0, None), false, now).unwrap();
+ assert!(video_add(p, &folder, None, true, &Subs::default()).is_none());
+ }
+}
diff --git a/crates/engine/src/download.rs b/crates/engine/src/download.rs
index 464c7230..43027f6f 100644
--- a/crates/engine/src/download.rs
+++ b/crates/engine/src/download.rs
@@ -947,6 +947,15 @@ pub fn http_client(opts: &Options, url: &Url) -> Result<Client, Error> {
client(opts, url, &AsGet::default(), &Default::default())
}
+/// A client for one request to `url`'s server, as [`http_client`]'s, that follows no redirect
+/// and adds no `Referer` of its own: its caller follows each hop itself, with a client for that
+/// hop's server (its proxy and adapter checks are that server's), and decides which of its
+/// headers go there (the browser's quality menu reading a stream's manifest, mdm-tools'
+/// `manifest`: the browser's cookie never reaches another server).
+pub fn hop_client(opts: &Options, url: &Url) -> Result<Client, Error> {
+ client_with(opts, url, &AsGet::default(), &Default::default(), false)
+}
+
/// The file's name: the server's (Content-Disposition), else the service's (#44), else the
/// address's.
fn name_for(cd: Option<&str>, url: &Url, unlocked: Option<&crate::unlock::Unlocked>) -> String {
@@ -1436,6 +1445,17 @@ fn client(
url: &Url,
as_get: &AsGet,
seen: &Arc<crate::server::ServerSeen>,
+) -> Result<Client, Error> {
+ client_with(opts, url, as_get, seen, true)
+}
+
+/// [`client`], following redirects (`follow`) or none at all ([`hop_client`]).
+fn client_with(
+ opts: &Options,
+ url: &Url,
+ as_get: &AsGet,
+ seen: &Arc<crate::server::ServerSeen>,
+ follow: bool,
) -> Result<Client, Error> {
let port = url.port_or_known_default().unwrap_or(443);
let route = &opts.route;
@@ -1555,7 +1575,11 @@ fn client(
Some(_) => as_get.policy(),
None => get_policy(),
};
- let builder = if route.is_any() {
+ let builder = if !follow {
+ builder
+ .redirect(reqwest::redirect::Policy::none())
+ .referer(false)
+ } else if route.is_any() {
builder.redirect(inner)
} else {
let route = route.clone();
diff --git a/crates/engine/src/lib.rs b/crates/engine/src/lib.rs
index 922b701f..54d7538e 100644
--- a/crates/engine/src/lib.rs
+++ b/crates/engine/src/lib.rs
@@ -24,7 +24,8 @@ pub mod verify;
pub use dns::{Dns, DnsChoice, DnsError};
pub use download::{
Destination, Download, Error, Event, FileHook, KeptAnswer, NetKind, Options, Outcome,
- ProbeInfo, Proxy, Request, Snapshot, fetch, http_client, probe, probe_kept, supported,
+ ProbeInfo, Proxy, Request, Snapshot, fetch, hop_client, http_client, probe, probe_kept,
+ supported,
};
pub use net::{NetError, Route};
pub use server::Server;
diff --git a/crates/ipc/src/api.rs b/crates/ipc/src/api.rs
index d540b70c..3b3f5cff 100644
--- a/crates/ipc/src/api.rs
+++ b/crates/ipc/src/api.rs
@@ -133,6 +133,113 @@ pub struct ErrorAnswer {
/// [`ErrorAnswer::code`] while the API is off.
pub const API_OFF: &str = "api-off";
+/// The browser's quality menu (`video_lookup`, `video_poll`, `video_pick`): where a look-up is,
+/// or what became of a choice. Answered whatever the automation API's switch (the browser's
+/// host asks, not a program).
+#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, JsonSchema)]
+#[serde(default)]
+pub struct VideoLookupAnswer {
+ /// One of [`lookup`]'s states.
+ pub state: String,
+ /// `pending` and `ready`: the look-up's token, to ask about it and to pick from it.
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub token: Option<String>,
+ /// `ready`: the video's title, the file's name: the page's when yt-dlp knows the video only
+ /// by its address, as the Download video window names it ([`crate::Command::video_title`]).
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub title: Option<String>,
+ /// `ready`: the qualities to choose from, labelled in MDM's language; `video_pick` takes a
+ /// place in this list.
+ #[serde(skip_serializing_if = "Vec::is_empty")]
+ pub choices: Vec<VideoChoice>,
+ /// `failed`: [`lookup::NO_YTDLP`], [`lookup::NO_CHOICES`] or [`lookup::ERROR`].
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub reason: Option<String>,
+ /// `failed` with [`lookup::ERROR`]: why, in MDM's words and language.
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub message: Option<String>,
+}
+
+/// One quality the browser's quality menu offers.
+#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, JsonSchema)]
+#[serde(default)]
+pub struct VideoChoice {
+ /// What the menu shows ("720p mp4"), in MDM's language.
+ pub label: String,
+ /// The file's type (`mp4`, `mp3`).
+ pub ext: String,
+ /// Bytes, exact or estimated; null when unknown.
+ pub size: Option<u64>,
+ /// Only the sound (an audio file, a conversion to MP3, Opus or FLAC): the menu lists these
+ /// apart from the videos. False from an app older than the field.
+ pub audio: bool,
+}
+
+/// [`VideoLookupAnswer::state`]'s values, and [`VideoLookupAnswer::reason`]'s.
+pub mod lookup {
+ /// Still looking (`token` to ask again).
+ pub const PENDING: &str = "pending";
+ /// Found: `title` and `choices`.
+ pub const READY: &str = "ready";
+ /// Not found: `reason`, with `message` for an error.
+ pub const FAILED: &str = "failed";
+ /// The page is a list of videos (a playlist, a channel): chosen in MDM's window.
+ pub const LIST: &str = "list";
+ /// Two look-ups are running already.
+ pub const BUSY: &str = "busy";
+ /// The video button is off on this site (Options' rules).
+ pub const OFF: &str = "off";
+ /// No such token (never given, or forgotten after 10 minutes).
+ pub const GONE: &str = "gone";
+ /// The Download video window does it instead (MDM not running, an older MDM, a Google Drive
+ /// file, MDM without a window, a choice that doesn't fit its look-up).
+ pub const USE_WINDOW: &str = "use-window";
+ /// The choice is downloading.
+ pub const STARTED: &str = "started";
+ /// The choice was added to the queue (Options: "only add to the queue").
+ pub const QUEUED: &str = "queued";
+ /// MDM took the choice, and it isn't a new download: it is in the list already in that
+ /// quality (Options' "If a duplicate download link is added": that one was opened or
+ /// resumed, or MDM asks what to do in its own window). From the browser's host: MDM didn't
+ /// say in time what became of it (`timeout`); the command is in its queue and will run.
+ /// Either way the Download video window mustn't do it a second time; the extension takes it
+ /// for `started`.
+ pub const SENT: &str = "sent";
+ /// `failed`: yt-dlp isn't installed.
+ pub const NO_YTDLP: &str = "no-ytdlp";
+ /// `failed`: the page has nothing this can download.
+ pub const NO_CHOICES: &str = "no-choices";
+ /// `failed`: yt-dlp couldn't look it up (`message` says why).
+ pub const ERROR: &str = "error";
+}
+
+impl VideoLookupAnswer {
+ /// An answer that is only a state.
+ pub fn of(state: &str) -> VideoLookupAnswer {
+ VideoLookupAnswer {
+ state: state.into(),
+ ..Default::default()
+ }
+ }
+
+ /// Still looking up `token`.
+ pub fn pending(token: &str) -> VideoLookupAnswer {
+ VideoLookupAnswer {
+ token: Some(token.into()),
+ ..VideoLookupAnswer::of(lookup::PENDING)
+ }
+ }
+
+ /// Not found, for `reason` (with `message` for an error).
+ pub fn failed(reason: &str, message: Option<String>) -> VideoLookupAnswer {
+ VideoLookupAnswer {
+ reason: Some(reason.into()),
+ message,
+ ..VideoLookupAnswer::of(lookup::FAILED)
+ }
+ }
+}
+
/// An answer as its line.
pub fn line<T: Serialize>(answer: &T) -> String {
serde_json::to_string(answer).unwrap_or_default()
@@ -160,6 +267,7 @@ pub fn schema() -> serde_json::Value {
let _ = generator.subschema_for::<AddAnswer>();
let _ = generator.subschema_for::<PairAnswer>();
let _ = generator.subschema_for::<ErrorAnswer>();
+ let _ = generator.subschema_for::<VideoLookupAnswer>();
let defs = generator.take_definitions(true);
serde_json::json!({
"$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -169,7 +277,9 @@ pub fn schema() -> serde_json::Value {
A request is `Request`. A command (an address to add, start_queue) is answered \
`ok`; a question is answered with the JSON object for it (`ListAnswer`, \
`ActAnswer`, `ApiAnswer`) or an `ErrorAnswer`. A wrong token is answered `denied`, \
- an app that doesn't answer within 2 seconds `timeout`. \
+ an app that doesn't answer within 2 seconds `timeout`. The browser's quality menu \
+ (`video_lookup`, `video_poll`, `video_pick`, sent by its native host) is answered \
+ with a `VideoLookupAnswer`. \
Guide: https://misterdownloadmanager.com/help/command-line.html#the-automation-api",
"$ref": request.get("$ref").cloned().unwrap_or(serde_json::Value::Null),
"$defs": defs,
@@ -208,4 +318,66 @@ mod tests {
assert_eq!(list.speed, 5);
assert!(parse::<ListAnswer>("ok").is_err());
}
+
+ /// The quality menu's answers as the browser's host reads them: only what each state has,
+ /// a size unknown said as null, and back the same.
+ #[test]
+ fn video_lookup_answers_round_trip() {
+ assert_eq!(
+ line(&VideoLookupAnswer::pending("abc")),
+ r#"{"state":"pending","token":"abc"}"#
+ );
+ assert_eq!(
+ line(&VideoLookupAnswer::of(lookup::USE_WINDOW)),
+ r#"{"state":"use-window"}"#
+ );
+ assert_eq!(
+ line(&VideoLookupAnswer::failed(lookup::NO_YTDLP, None)),
+ r#"{"state":"failed","reason":"no-ytdlp"}"#
+ );
+ let ready = VideoLookupAnswer {
+ token: Some("abc".into()),
+ title: Some("A talk".into()),
+ choices: vec![
+ VideoChoice {
+ label: "720p mp4".into(),
+ ext: "mp4".into(),
+ size: Some(187_500_000),
+ audio: false,
+ },
+ VideoChoice {
+ label: "Audio only mp3".into(),
+ ext: "mp3".into(),
+ size: None,
+ audio: true,
+ },
+ ],
+ ..VideoLookupAnswer::of(lookup::READY)
+ };
+ let json = line(&ready);
+ assert_eq!(
+ json,
+ r#"{"state":"ready","token":"abc","title":"A talk","choices":[{"label":"720p mp4","ext":"mp4","size":187500000,"audio":false},{"label":"Audio only mp3","ext":"mp3","size":null,"audio":true}]}"#
+ );
+ assert_eq!(
+ serde_json::from_str::<VideoLookupAnswer>(&json).unwrap(),
+ ready
+ );
+ // An older app's choices, without `audio`: none is sound alone.
+ let old: VideoLookupAnswer = serde_json::from_str(
+ r#"{"state":"ready","choices":[{"label":"Audio only mp3","ext":"mp3","size":null}]}"#,
+ )
+ .unwrap();
+ assert!(!old.choices[0].audio);
+ let failed = VideoLookupAnswer::failed(lookup::ERROR, Some("Video unavailable".into()));
+ assert_eq!(
+ serde_json::from_str::<VideoLookupAnswer>(&line(&failed)).unwrap(),
+ failed
+ );
+ // Not one of these (an error answer, an older app's `ok`): no state to read.
+ let other: VideoLookupAnswer =
+ serde_json::from_str(r#"{"error":"the automation API is off"}"#).unwrap();
+ assert!(other.state.is_empty());
+ assert!(serde_json::from_str::<VideoLookupAnswer>("ok").is_err());
+ }
}
diff --git a/crates/ipc/src/lib.rs b/crates/ipc/src/lib.rs
index 6124989e..aa0e87a7 100644
--- a/crates/ipc/src/lib.rs
+++ b/crates/ipc/src/lib.rs
@@ -106,6 +106,18 @@ pub struct Command {
/// The title of the page the button was clicked on: a video yt-dlp knows only by its address
/// is named by it.
pub video_title: Option<String>,
+ /// From the browser's quality menu over a video (the button's click): look this video up
+ /// with yt-dlp, off the window, and answer at once with a token to ask about it
+ /// ([`api::VideoLookupAnswer`], `pending`). The browser's request context (`referer`,
+ /// `cookies`, `cookie_jar`, `user_agent`, `private`) goes with it and stays the look-up's.
+ pub video_lookup: Option<VideoLookup>,
+ /// The quality menu: how is the look-up of this token going (`pending`, `ready` with the
+ /// choices, `failed`, `list`, `gone`)?
+ pub video_poll: Option<String>,
+ /// The quality menu: download the choice made there, with the look-up's own selector and
+ /// context (`private` must be the look-up's); answered `started` or `queued`, or
+ /// `use-window` when it can't be (the Download video window then does it).
+ pub video_pick: Option<VideoPick>,
/// From that button's menu: never show it on this site (a host name) again.
pub panel_hide_site: Option<String>,
/// From the browser's right-click menu: the links of a page or a selection, offered in the
@@ -136,10 +148,43 @@ pub struct BrowserCookie {
pub expires: Option<f64>,
}
+/// The video the browser's quality menu asks about ([`Command::video_lookup`]).
+#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, schemars::JsonSchema)]
+#[serde(default)]
+pub struct VideoLookup {
+ /// What yt-dlp looks up: the video's own file or its stream's manifest when the page plays
+ /// one, else the page.
+ pub address: String,
+ /// The title of the page the button was clicked on: a video yt-dlp knows only by its address
+ /// is named by it (as [`Command::video_title`]).
+ pub title: Option<String>,
+ /// The browser's cookie store the page is in (Firefox's containers): a choice is only taken
+ /// from the same one.
+ pub store_id: Option<String>,
+}
+
+/// A choice made in the browser's quality menu ([`Command::video_pick`]).
+#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, schemars::JsonSchema)]
+#[serde(default)]
+pub struct VideoPick {
+ /// The look-up's token.
+ pub token: String,
+ /// The choice's place in the look-up's `choices`.
+ pub choice: usize,
+ /// The cookie store the choice was made in: the look-up's, or it isn't taken.
+ pub store_id: Option<String>,
+}
+
impl Command {
/// Asks for an answer (a JSON line) rather than "ok".
pub fn wants_reply(&self) -> bool {
- self.query.is_some() || self.api.is_some() || self.action.is_some() || self.pair
+ self.query.is_some()
+ || self.api.is_some()
+ || self.action.is_some()
+ || self.pair
+ || self.video_lookup.is_some()
+ || self.video_poll.is_some()
+ || self.video_pick.is_some()
}
}
@@ -325,9 +370,24 @@ pub fn endpoint_path() -> Option<PathBuf> {
/// Ask the running app something (automation API) and return its one-line answer.
pub fn request(cmd: &Command) -> Result<String, String> {
- exchange(cmd).map_err(|e| e.to_string())
+ exchange(cmd, ANSWER_WAIT).map_err(|e| e.to_string())
}
+/// Ask the running app something and return its one-line answer, whatever it is (an older app
+/// answers `ok` to a question it doesn't know); or why it didn't reach an app: none listens
+/// (`NotRunning`), or it took the line but gave no answer (`Refused`). Never starts one.
+///
+/// It waits a second longer than the app's channel gives the app (2 s), so an app
+/// too busy to answer in time is heard saying `timeout` rather than taken for a closed line.
+pub fn request_checked(cmd: &Command) -> Result<String, SendError> {
+ exchange(cmd, REPLY_WAIT + Duration::from_secs(1))
+}
+
+/// How long a client reads for its answer (`send`, `request`).
+const ANSWER_WAIT: Duration = Duration::from_secs(2);
+/// How long the channel waits for the app's answer to a question before saying `timeout`.
+const REPLY_WAIT: Duration = Duration::from_secs(2);
+
/// Why a command didn't reach the app.
#[derive(Debug)]
pub enum SendError {
@@ -349,7 +409,7 @@ impl std::fmt::Display for SendError {
/// Send `cmd` to a running Mister Download Manager.
pub fn send(cmd: &Command) -> Result<(), SendError> {
- let ack = exchange(cmd)?;
+ let ack = exchange(cmd, ANSWER_WAIT)?;
if ack.trim() == "ok" {
Ok(())
} else {
@@ -361,8 +421,8 @@ pub fn send(cmd: &Command) -> Result<(), SendError> {
}
}
-/// One request line out, one answer line back.
-fn exchange(cmd: &Command) -> Result<String, SendError> {
+/// One request line out, one answer line back (read for up to `wait`).
+fn exchange(cmd: &Command, wait: Duration) -> Result<String, SendError> {
let not_running = |e: String| SendError::NotRunning(e);
let refused = |e: std::io::Error| SendError::Refused(e.to_string());
let path = endpoint_path().ok_or_else(|| not_running("no data dir".into()))?;
@@ -372,7 +432,7 @@ fn exchange(cmd: &Command) -> Result<String, SendError> {
let addr = SocketAddr::from((Ipv4Addr::LOCALHOST, ep.port));
let mut s = TcpStream::connect_timeout(&addr, Duration::from_millis(500))
.map_err(|e| not_running(e.to_string()))?;
- s.set_read_timeout(Some(Duration::from_secs(2))).ok();
+ s.set_read_timeout(Some(wait)).ok();
let line = serde_json::to_string(&Envelope {
token: ep.token,
cmd: cmd.clone(),
@@ -463,14 +523,23 @@ fn handle(conn: &TcpStream, token: &str, tx: &Sender<Incoming>, wake: &dyn Fn())
Ok(env) if same_secret(&env.token, token) => {
if env.cmd.wants_reply() {
// The app answers on its next frame (woken now); a stuck app means no answer.
+ // `timeout` therefore always means the app has the command and will act on it
+ // (the browser's host counts on that: a quality menu's choice is then `sent`);
+ // an app that is quitting never gets it, and says `gone`, as for a command.
let (rtx, rrx) = std::sync::mpsc::sync_channel(1);
- let _ = tx.send(Incoming {
- cmd: env.cmd,
- reply: Some(rtx),
- });
+ if tx
+ .send(Incoming {
+ cmd: env.cmd,
+ reply: Some(rtx),
+ })
+ .is_err()
+ {
+ let _ = (&*conn).write_all(b"gone\n");
+ return;
+ }
wake();
let answer = rrx
- .recv_timeout(Duration::from_secs(2))
+ .recv_timeout(REPLY_WAIT)
.unwrap_or_else(|_| "timeout".into());
let _ = (&*conn).write_all(format!("{answer}\n").as_bytes());
return;
@@ -589,7 +658,9 @@ fn read_request(conn: &std::net::TcpStream) -> Result<String, Option<TooLarge>>
}
/// 128 random bits from the OS, as hex (no extra crate: the std hasher's per-process keys).
-fn random_token() -> String {
+/// The channel's token, and each look-up's of the browser's quality menu
+/// (crates/app/src/videolookup.rs).
+pub fn random_token() -> String {
use std::collections::hash_map::RandomState;
use std::hash::{BuildHasher, Hasher};
(0..4)
@@ -797,6 +868,98 @@ mod tests {
assert_eq!(exchange(port, line), "{\"downloads\":[]}\n");
}
+ /// The browser's quality menu asks questions: each of its three wants the app's answer, and
+ /// each comes through a request line whole.
+ #[test]
+ fn the_quality_menus_requests_want_answers() {
+ let lookup = Command {
+ video_lookup: Some(VideoLookup {
+ address: "https://cdn.test/v/master.m3u8".into(),
+ title: Some("A talk".into()),
+ store_id: Some("firefox-container-1".into()),
+ }),
+ referer: Some("https://videos.test/watch".into()),
+ private: true,
+ startup: true,
+ ..Default::default()
+ };
+ let poll = Command {
+ video_poll: Some("abc".into()),
+ startup: true,
+ ..Default::default()
+ };
+ let pick = Command {
+ video_pick: Some(VideoPick {
+ token: "abc".into(),
+ choice: 2,
+ store_id: None,
+ }),
+ startup: true,
+ ..Default::default()
+ };
+ for cmd in [&lookup, &poll, &pick] {
+ assert!(cmd.wants_reply(), "{cmd:?}");
+ }
+ assert!(!Command::default().wants_reply());
+ assert!(
+ !Command {
+ video_page: Some("https://videos.test/watch".into()),
+ ..Default::default()
+ }
+ .wants_reply(),
+ "the window's click is a command, not a question"
+ );
+ // To the app and back, as the channel carries them.
+ let back = |cmd: &Command| {
+ let line = serde_json::to_string(&Envelope {
+ token: "t".into(),
+ cmd: cmd.clone(),
+ })
+ .unwrap();
+ serde_json::from_str::<Envelope>(&line).unwrap().cmd
+ };
+ let got = back(&lookup);
+ assert_eq!(got.video_lookup, lookup.video_lookup);
+ assert_eq!(got.referer, lookup.referer);
+ assert!(got.private && got.startup);
+ assert_eq!(back(&poll).video_poll.as_deref(), Some("abc"));
+ assert_eq!(back(&pick).video_pick, pick.video_pick);
+ // As the browser's host writes them (snake_case), missing parts defaulted.
+ let raw: Command = serde_json::from_str(
+ r#"{"video_pick":{"token":"abc","choice":3,"store_id":"firefox-private"},"private":true}"#,
+ )
+ .unwrap();
+ assert_eq!(
+ raw.video_pick,
+ Some(VideoPick {
+ token: "abc".into(),
+ choice: 3,
+ store_id: Some("firefox-private".into()),
+ })
+ );
+ let raw: Command =
+ serde_json::from_str(r#"{"video_lookup":{"address":"https://x.test/w"}}"#).unwrap();
+ let ask = raw.video_lookup.unwrap();
+ assert_eq!((ask.title, ask.store_id), (None, None));
+ }
+
+ /// An app that doesn't answer a question in time says so (`timeout`), and the one asking
+ /// hears it (it waits longer than the app is given).
+ #[test]
+ fn a_question_the_app_does_not_answer_is_timeout() {
+ let (port, rx) = test_server("secret");
+ let line = b"{\"token\":\"secret\",\"video_poll\":\"abc\"}\n";
+ let started = std::time::Instant::now();
+ assert_eq!(exchange(port, line), "timeout\n");
+ assert!(started.elapsed() >= REPLY_WAIT);
+ // It reached the app, which was too slow.
+ assert_eq!(rx.recv().unwrap().cmd.video_poll.as_deref(), Some("abc"));
+ // An app that is quitting never gets it: not `timeout` (which says it has it), `gone`.
+ drop(rx);
+ let pick = b"{\"token\":\"secret\",\"video_pick\":{\"token\":\"abc\",\"choice\":0}}\n";
+ assert_eq!(exchange(port, pick), "gone\n");
+ }
+
#[test]
fn secrets_compare_whole() {
assert!(same_secret("abc", "abc"));
diff --git a/crates/mcp/src/lib.rs b/crates/mcp/src/lib.rs
index 300f7963..fdd898e6 100644
--- a/crates/mcp/src/lib.rs
+++ b/crates/mcp/src/lib.rs
@@ -272,6 +272,11 @@ fn explain(answer: Result<String, String>) -> Result<String, String> {
.into(),
);
}
+ "gone" => {
+ return Err(
+ "Mister Download Manager is closing; try again once it has started.".into(),
+ );
+ }
_ => {}
}
if let Ok(e) = serde_json::from_str::<ErrorAnswer>(&answer) {
@@ -411,6 +416,7 @@ mod tests {
.unwrap_err()
.contains("restart")
);
+ assert!(explain(Ok("gone".into())).unwrap_err().contains("closing"));
let off = r#"{"error":"the automation API is off","code":"api-off"}"#;
assert_eq!(explain(Ok(off.into())).unwrap_err(), API_OFF);
let other = r#"{"error":"unknown action \"x\""}"#;
diff --git a/crates/nmhost/src/main.rs b/crates/nmhost/src/main.rs
index 15c859de..b7b0e06d 100644
--- a/crates/nmhost/src/main.rs
+++ b/crates/nmhost/src/main.rs
@@ -12,6 +12,13 @@
//! `explicit`, the toolbar button's list of the tab's media asked, wherever the button shows);
//! `{"hideSite": host}` keeps it off that site from now on;
//! `{"openOptions": true}` opens Options where it is set up.
+//! - The button's quality menu (announced by `"videoLookup": true` in the answer to `hello` and
+//! `rules`): `{"videoLookup": {page, src, title, referrer, storeId}}` has the running app look
+//! the video up, `{"videoPoll": {token}}` asks how it goes, `{"videoPick": {token, choice,
+//! storeId}}` downloads the choice made. Each is answered `{"ok": true, "lookup": {state, …}}`
+//! (`mdm_ipc::api::VideoLookupAnswer`), never with a `why`; none of them starts the app
+//! (`use-window`: the button's click then opens the Download video window as before). A
+//! question waits here while the look-up runs, up to 1.5 s ([`POLL_WAIT`]).
//! - `misterdownloadmanager-nmhost --register` / `--unregister`: writes / removes the host
//! manifests (Chromium's names the extension's origin, Firefox's its add-on ID). Windows: beside
//! this exe, with the per-user (HKCU) registry entries the browsers look up; with `--all-users`
@@ -125,6 +132,42 @@ struct Message {
/// `rules`) without asking about it: for MDM's log. Under its own key, with no `url`: an
/// older host takes it for an address it can't download, and hands nothing over.
declined: Option<Notice>,
+ /// The video button's quality menu: look this video up (with the message's `cookies`,
+ /// `cookieJar`, `userAgent` and `private`), ask how it goes, download the choice made. Under
+ /// their own keys, with no `url`: an older host refuses them without effect.
+ video_lookup: Option<LookupAsk>,
+ video_poll: Option<PollAsk>,
+ video_pick: Option<PickAsk>,
+}
+
+/// The quality menu's look-up: the video's page (as the button's click sends it), the video's
+/// own file or its stream's manifest when the page plays one (`src`), the page's title, the
+/// page's referrer, and the cookie store the tab is in (Firefox's containers).
+#[derive(Debug, Default, Deserialize, PartialEq)]
+#[serde(default, rename_all = "camelCase")]
+struct LookupAsk {
+ page: String,
+ src: Option<String>,
+ title: Option<String>,
+ referrer: Option<String>,
+ store_id: Option<String>,
+}
+
+/// The quality menu: how is the look-up of `token` going?
+#[derive(Debug, Default, Deserialize, PartialEq)]
+#[serde(default)]
+struct PollAsk {
+ token: String,
+}
+
+/// The quality menu: the choice at `choice` of look-up `token`, made in a tab of cookie store
+/// `store_id` (the message's `private` says whether in a private window).
+#[derive(Debug, Default, Deserialize, PartialEq)]
+#[serde(default, rename_all = "camelCase")]
+struct PickAsk {
+ token: String,
+ choice: usize,
+ store_id: Option<String>,
}
/// A download the extension left to the browser: why (a `Declined` code, or `site-access`:
@@ -175,6 +218,14 @@ struct Reply {
/// extension to say (its popup).
#[serde(skip_serializing_if = "Option::is_none")]
declined: Option<&'static str>,
+ /// For `hello` and `rules`: this host and its app have the button's quality menu (they are
+ /// installed together); without it the extension never asks for one.
+ #[serde(skip_serializing_if = "Option::is_none")]
+ video_lookup: Option<bool>,
+ /// The quality menu's answer: where the look-up is, or what became of the choice. Its
+ /// states are never a `why`: they say nothing of whether MDM is reachable.
+ #[serde(skip_serializing_if = "Option::is_none")]
+ lookup: Option<mdm_ipc::api::VideoLookupAnswer>,
}
impl Reply {
@@ -185,6 +236,15 @@ impl Reply {
}
}
+ /// The quality menu's answer.
+ fn lookup(answer: mdm_ipc::api::VideoLookupAnswer) -> Reply {
+ Reply {
+ ok: true,
+ lookup: Some(answer),
+ ..Default::default()
+ }
+ }
+
fn failed(why: &'static str, error: impl Into<String>) -> Reply {
Reply {
why: Some(why),
@@ -234,6 +294,7 @@ fn answer(m: Message, rules: &mdm_ipc::capture::CaptureRules) -> Reply {
opened: Some(rules.capture_opened),
min_kb: Some(rules.capture_min_kb),
capture_off: rules.capture_off(browser).map(|d| d.code()),
+ video_lookup: Some(true),
..Default::default()
};
}
@@ -241,6 +302,10 @@ fn answer(m: Message, rules: &mdm_ipc::capture::CaptureRules) -> Reply {
log_left(browser, &n.site, &n.name, notice_reason(&n.why), m.private);
return Reply::done();
}
+ // The video button's quality menu: asked of a running app only, answered in `lookup`.
+ if let Some(ask) = menu_ask(&m) {
+ return quality_menu(ask, &m, rules, browser);
+ }
// The video button: asked about, clicked, its menu. What it sends goes to the app (started
// if need be), which opens its window or keeps the setting.
if m.panel {
@@ -439,6 +504,235 @@ fn video_command(
})
}
+/// Which of the quality menu's messages: what an answer that isn't the app's means depends on
+/// it ([`menu_answer`]).
+#[derive(Clone, Copy, Debug, PartialEq, Eq)]
+enum MenuAsk {
+ Lookup,
+ Poll,
+ Pick,
+}
+
+/// The quality menu's message `m` is, if it is one.
+fn menu_ask(m: &Message) -> Option<MenuAsk> {
+ if m.video_lookup.is_some() {
+ Some(MenuAsk::Lookup)
+ } else if m.video_poll.is_some() {
+ Some(MenuAsk::Poll)
+ } else if m.video_pick.is_some() {
+ Some(MenuAsk::Pick)
+ } else {
+ None
+ }
+}
+
+/// The longest page title passed on (the extension cuts it there too).
+const TITLE_MAX: usize = 300;
+/// The longest look-up token taken (the app's are 64 hex digits).
+const TOKEN_MAX: usize = 128;
+
+/// The app's command for one of the quality menu's messages, or, without asking the app, its
+/// answer's state: `use-window` for a page not on the web (or a choice without a token), `off`
+/// where the button is off (Options' rules, as `panel` asks), `gone` for a question without a
+/// token. Each command says `startup` too: an older app, which knows none of them, takes it for
+/// its startup entry's and opens nothing (a bare command would bring its window up).
+fn menu_command(
+ ask: MenuAsk,
+ m: &Message,
+ rules: &mdm_ipc::capture::CaptureRules,
+ browser: &str,
+) -> Result<mdm_ipc::Command, &'static str> {
+ use mdm_ipc::api::lookup;
+ let token =
+ |t: &str| Some(t.trim().to_owned()).filter(|t| !t.is_empty() && t.len() <= TOKEN_MAX);
+ let store = |s: &Option<String>| s.clone().filter(|s| !s.trim().is_empty());
+ let cmd = match ask {
+ MenuAsk::Lookup => {
+ let l = m.video_lookup.as_ref().ok_or(lookup::USE_WINDOW)?;
+ let web = |s: &str| s.starts_with("http://") || s.starts_with("https://");
+ if !web(&l.page) {
+ return Err(lookup::USE_WINDOW);
+ }
+ if !rules.panel_on(&l.page, l.referrer.as_deref(), browser) {
+ return Err(lookup::OFF);
+ }
+ // As the button's click (`video_command`): the video clicked, its own file when
+ // there is one, fetched as from its page, with the page's title (a video yt-dlp
+ // knows only by its address is named by it, #345).
+ let src = l.src.clone().filter(|s| web(s));
+ let referer = match &src {
+ Some(_) => Some(l.page.clone()),
+ None => l.referrer.clone().filter(|r| !r.is_empty()),
+ };
+ let title = l
+ .title
+ .as_deref()
+ .map(str::trim)
+ .filter(|t| !t.is_empty())
+ .map(|t| t.chars().take(TITLE_MAX).collect());
+ mdm_ipc::Command {
+ video_lookup: Some(mdm_ipc::VideoLookup {
+ address: src.unwrap_or_else(|| l.page.clone()),
+ title,
+ store_id: store(&l.store_id),
+ }),
+ referer,
+ cookies: m.cookies.clone().filter(|c| !c.is_empty()),
+ cookie_jar: m.cookie_jar.clone(),
+ user_agent: m.user_agent.clone(),
+ private: m.private,
+ ..Default::default()
+ }
+ }
+ MenuAsk::Poll => {
+ let p = m.video_poll.as_ref().ok_or(lookup::GONE)?;
+ mdm_ipc::Command {
+ video_poll: Some(token(&p.token).ok_or(lookup::GONE)?),
+ ..Default::default()
+ }
+ }
+ MenuAsk::Pick => {
+ let p = m.video_pick.as_ref().ok_or(lookup::USE_WINDOW)?;
+ mdm_ipc::Command {
+ video_pick: Some(mdm_ipc::VideoPick {
+ token: token(&p.token).ok_or(lookup::USE_WINDOW)?,
+ choice: p.choice,
+ store_id: store(&p.store_id),
+ }),
+ private: m.private,
+ ..Default::default()
+ }
+ }
+ };
+ Ok(mdm_ipc::Command {
+ startup: true,
+ ..cmd
+ })
+}
+
+/// One of the quality menu's messages, asked of the running app (never started for it: a menu
+/// over a video isn't worth starting MDM unseen; the button's click does that).
+fn quality_menu(
+ ask: MenuAsk,
+ m: &Message,
+ rules: &mdm_ipc::capture::CaptureRules,
+ browser: &str,
+) -> Reply {
+ let cmd = match menu_command(ask, m, rules, browser) {
+ Ok(cmd) => cmd,
+ Err(state) => return Reply::lookup(mdm_ipc::api::VideoLookupAnswer::of(state)),
+ };
+ // The choice brings its download's progress window up: the app may bring it to the front
+ // (Windows only, as in `deliver`: Linux and macOS have no foreground lock for a host to
+ // lift). A look-up and the questions about it open nothing.
+ #[cfg(windows)]
+ if ask == MenuAsk::Pick
+ && let Some(pid) = mdm_ipc::app_pid()
+ {
+ win32::allow_foreground(pid);
+ }
+ let token = cmd.video_poll.clone().unwrap_or_default();
+ let ask_app = || menu_answer(ask, mdm_ipc::request_checked(&cmd), &token);
+ let answer = match ask {
+ MenuAsk::Poll => until_settled(ask_app, POLL_WAIT, POLL_EVERY),
+ MenuAsk::Lookup | MenuAsk::Pick => ask_app(),
+ };
+ if let Some(l) = &cmd.video_lookup {
+ log_line(&lookup_line(browser, &l.address, m.private, &answer.state));
+ }
+ Reply::lookup(answer)
+}
+
+/// How long a question about a look-up waits here while it runs, asking the app again every
+/// [`POLL_EVERY`]: the browser then asks about once every 1.5 s while yt-dlp works (a host
+/// started for each question), and hears of the answer within a tenth of a second of it.
+const POLL_WAIT: Duration = Duration::from_millis(1500);
+const POLL_EVERY: Duration = Duration::from_millis(100);
+
+/// `ask`'s answer once it is no longer `pending`, asked again every `every`, for `wait` at most
+/// (then `pending` as it is).
+fn until_settled(
+ ask: impl FnMut() -> mdm_ipc::api::VideoLookupAnswer,
+ wait: Duration,
+ every: Duration,
+) -> mdm_ipc::api::VideoLookupAnswer {
+ let start = std::time::Instant::now();
+ until_settled_on(ask, wait, every, || start.elapsed(), std::thread::sleep)
+}
+
+/// [`until_settled`] on any clock: `elapsed` is the time since the first question, `sleep`
+/// waits. The tests run it on a clock of their own, so how often it asks doesn't depend on how
+/// busy the machine is (a loaded CI runner oversleeps and asks less often).
+fn until_settled_on(
+ mut ask: impl FnMut() -> mdm_ipc::api::VideoLookupAnswer,
+ wait: Duration,
+ every: Duration,
+ elapsed: impl Fn() -> Duration,
+ mut sleep: impl FnMut(Duration),
+) -> mdm_ipc::api::VideoLookupAnswer {
+ loop {
+ let answer = ask();
+ if answer.state != mdm_ipc::api::lookup::PENDING || elapsed() + every > wait {
+ return answer;
+ }
+ sleep(every);
+ }
+}
+
+/// The app's answer to the quality menu's `ask` (`token`: the look-up a question is about), or
+/// what its absence means. No app running, no answer, a refusal (`denied`, `gone`,
+/// `too-large`), or `ok` (an older app, which knows no quality menu): a look-up or a choice is
+/// left to the Download video window (`use-window`). `timeout` is different: the app's port
+/// says it only after handing the command over (`mdm_ipc`'s server queues it, then waits for
+/// the answer), so the app has it and will act on it. A choice is then `sent` (downloading
+/// soon; the Download video window would download it twice), a look-up `busy` (its yt-dlp is
+/// running; another window would start another), and a question `pending` again. Anything
+/// else a question gets is `gone`.
+fn menu_answer(
+ ask: MenuAsk,
+ got: Result<String, mdm_ipc::SendError>,
+ token: &str,
+) -> mdm_ipc::api::VideoLookupAnswer {
+ use mdm_ipc::api::{VideoLookupAnswer, lookup};
+ if let Ok(line) = &got
+ && let Ok(answer) = serde_json::from_str::<VideoLookupAnswer>(line)
+ && !answer.state.is_empty()
+ {
+ return answer;
+ }
+ let timeout = matches!(&got, Ok(l) if l.trim() == "timeout");
+ match ask {
+ MenuAsk::Poll if timeout => VideoLookupAnswer::pending(token),
+ MenuAsk::Poll => VideoLookupAnswer::of(lookup::GONE),
+ MenuAsk::Pick if timeout => VideoLookupAnswer::of(lookup::SENT),
+ MenuAsk::Lookup if timeout => VideoLookupAnswer::of(lookup::BUSY),
+ MenuAsk::Lookup | MenuAsk::Pick => VideoLookupAnswer::of(lookup::USE_WINDOW),
+ }
+}
+
+/// The log line for a look-up the quality menu asked for: the video's site (not its address,
+/// which may carry a signed link's keys) and how it went. A private window's site is left out,
+/// as in [`left_line`]: the log outlives the window.
+fn lookup_line(browser: &str, address: &str, private: bool, state: &str) -> String {
+ let browser = if browser.is_empty() {
+ "a browser"
+ } else {
+ browser
+ };
+ let site = clean(&mdm_ipc::capture::host_of(address), 200);
+ let what = if private {
+ "a video in a private window".to_owned()
+ } else if site.trim().is_empty() {
+ "a video".to_owned()
+ } else {
+ format!("a video on {site}")
+ };
+ format!(
+ "browser integration: {browser} looked up the qualities of {what}: {}",
+ clean(state, 32)
+ )
+}
+
/// `cmd` handed to the app: the reply saying so, or why not.
fn delivered(cmd: &mdm_ipc::Command) -> Reply {
match deliver(cmd) {
@@ -1218,6 +1512,7 @@ mod tests {
explicit: true,
url: "https://www.quiet.test/watch".into(),
src: Some("https://cdn.test/v/master.m3u8?t=1".into()),
+ title: Some("A talk about download managers".into()),
cookies: Some("cdn=1".into()),
cookie_jar: vec![mdm_ipc::BrowserCookie {
name: "cdn".into(),
@@ -1241,6 +1536,52 @@ mod tests {
"each cookie with its domain"
);
assert_eq!(cmd.user_agent.as_deref(), Some(ua));
+ // The page's title goes with it (#345): the app names a video yt-dlp knows only by its
+ // address (here `master`) after it.
+ assert_eq!(
+ cmd.video_title.as_deref(),
+ Some("A talk about download managers")
+ );
+ // With a page too: the app keeps yt-dlp's title unless it is only the address's.
+ let page_only = Message {
+ video: true,
+ explicit: true,
+ url: "https://www.quiet.test/watch".into(),
+ title: Some("A talk about download managers".into()),
+ ..Default::default()
+ };
+ let cmd = video_command(&page_only, &rules, browser(&page_only)).unwrap();
+ assert_eq!(
+ cmd.video_page.as_deref(),
+ Some("https://www.quiet.test/watch")
+ );
+ assert_eq!(
+ cmd.video_title.as_deref(),
+ Some("A talk about download managers")
+ );
+ // A blank title is none.
+ let blank = Message {
+ video: true,
+ explicit: true,
+ url: "https://www.quiet.test/watch".into(),
+ src: Some("https://cdn.test/v/master.m3u8".into()),
+ title: Some(" ".into()),
+ ..Default::default()
+ };
+ let cmd = video_command(&blank, &rules, browser(&blank)).unwrap();
+ assert_eq!(cmd.video_title, None);
+ // From the wire: the extension's `title`.
+ let m: Message = serde_json::from_str(
+ r#"{"video":true,"explicit":true,"url":"https://a.test/w","src":"https://cdn.test/hls/index.m3u8","title":"Clip"}"#,
+ )
+ .unwrap();
+ assert_eq!(
+ video_command(&m, &rules, browser(&m))
+ .unwrap()
+ .video_title
+ .as_deref(),
+ Some("Clip")
+ );
// Never a page that isn't on the web.
let local = Message {
url: "file:///C:/x.html".into(),
@@ -1253,6 +1594,364 @@ mod tests {
assert_eq!(m.hide_site.as_deref(), Some("tube.test"));
}
+ /// `hello` and `rules` say the host and its app have the quality menu; nothing else does.
+ #[test]
+ fn the_quality_menu_is_announced() {
+ let rules = mdm_ipc::capture::CaptureRules::default();
+ let ua = Some("Mozilla/5.0 (Windows NT 10.0) Chrome/141.0.0.0 Safari/537.36".into());
+ for m in [
+ Message {
+ hello: true,
+ user_agent: ua.clone(),
+ ..Default::default()
+ },
+ Message {
+ rules: true,
+ user_agent: ua.clone(),
+ ..Default::default()
+ },
+ ] {
+ let json = serde_json::to_string(&answer(m, &rules)).unwrap();
+ assert!(json.contains(r#""videoLookup":true"#), "{json}");
+ }
+ let asked = answer(
+ Message {
+ panel: true,
+ url: "https://videos.test/watch".into(),
+ user_agent: ua,
+ ..Default::default()
+ },
+ &rules,
+ );
+ let json = serde_json::to_string(&asked).unwrap();
+ assert!(
+ !json.contains("videoLookup") && !json.contains("lookup"),
+ "{json}"
+ );
+ }
+
+ /// The quality menu's three messages, as the extension sends them (camelCase, no `url` of
+ /// their own), become the app's questions, each with `startup` (an older app opens nothing).
+ #[test]
+ fn the_quality_menus_messages_become_the_apps_questions() {
+ let rules = mdm_ipc::capture::CaptureRules::default();
+ let m: Message = serde_json::from_str(
+ r#"{"videoLookup":{"page":"https://videos.test/watch?v=1","src":"https://cdn.test/v/master.m3u8?sig=1",
+ "title":" A talk about download managers ","referrer":"https://search.test/","storeId":"firefox-container-2"},
+ "cookies":"a=1","cookieJar":[{"name":"a","value":"1","domain":".cdn.test","path":"/","hostOnly":false}],
+ "private":true,"userAgent":"Mozilla/5.0 Firefox/145.0","brands":[],"v":"0.4.0"}"#,
+ )
+ .unwrap();
+ assert_eq!(m.url, "", "no address of its own: an older host refuses it");
+ assert_eq!(menu_ask(&m), Some(MenuAsk::Lookup));
+ let cmd = menu_command(MenuAsk::Lookup, &m, &rules, browser(&m)).unwrap();
+ assert!(cmd.startup && cmd.wants_reply());
+ assert_eq!(
+ cmd.video_lookup,
+ Some(mdm_ipc::VideoLookup {
+ address: "https://cdn.test/v/master.m3u8?sig=1".into(),
+ title: Some("A talk about download managers".into()),
+ store_id: Some("firefox-container-2".into()),
+ }),
+ "the video's own stream, with its page's title"
+ );
+ assert_eq!(
+ cmd.referer.as_deref(),
+ Some("https://videos.test/watch?v=1"),
+ "fetched as from its page"
+ );
+ assert_eq!(cmd.cookies.as_deref(), Some("a=1"));
+ assert_eq!(cmd.cookie_jar.len(), 1);
+ assert_eq!(cmd.cookie_jar[0].domain, ".cdn.test");
+ assert_eq!(cmd.user_agent.as_deref(), Some("Mozilla/5.0 Firefox/145.0"));
+ assert!(cmd.private);
+ assert!(
+ cmd.video_page.is_none() && cmd.url.is_none() && cmd.video_title.is_none(),
+ "never the window's click nor a download"
+ );
+ // A page alone: yt-dlp's to look up, from the page's own referrer; its title goes too
+ // (the app keeps yt-dlp's unless it is only the address's).
+ let page: Message = serde_json::from_str(
+ r#"{"videoLookup":{"page":"https://videos.test/watch?v=1","src":"blob:https://videos.test/x",
+ "title":"A talk","referrer":"https://search.test/"}}"#,
+ )
+ .unwrap();
+ let cmd = menu_command(MenuAsk::Lookup, &page, &rules, browser(&page)).unwrap();
+ let ask = cmd.video_lookup.unwrap();
+ assert_eq!(ask.address, "https://videos.test/watch?v=1");
+ assert_eq!(ask.title.as_deref(), Some("A talk"));
+ assert_eq!(ask.store_id, None);
+ assert_eq!(cmd.referer.as_deref(), Some("https://search.test/"));
+ // A long title is cut.
+ let long = Message {
+ video_lookup: Some(LookupAsk {
+ page: "https://videos.test/w".into(),
+ src: Some("https://cdn.test/v.mp4".into()),
+ title: Some("x".repeat(1000)),
+ ..Default::default()
+ }),
+ ..Default::default()
+ };
+ let cmd = menu_command(MenuAsk::Lookup, &long, &rules, "").unwrap();
+ assert_eq!(cmd.video_lookup.unwrap().title.unwrap().len(), TITLE_MAX);
+ // How it goes.
+ let poll: Message = serde_json::from_str(r#"{"videoPoll":{"token":"abc"}}"#).unwrap();
+ assert_eq!(menu_ask(&poll), Some(MenuAsk::Poll));
+ let cmd = menu_command(MenuAsk::Poll, &poll, &rules, "").unwrap();
+ assert_eq!(cmd.video_poll.as_deref(), Some("abc"));
+ assert!(cmd.startup && cmd.wants_reply());
+ // The choice, with the tab's private window and cookie store.
+ let pick: Message = serde_json::from_str(
+ r#"{"videoPick":{"token":"abc","choice":2,"storeId":"firefox-private"},"private":true}"#,
+ )
+ .unwrap();
+ assert_eq!(menu_ask(&pick), Some(MenuAsk::Pick));
+ let cmd = menu_command(MenuAsk::Pick, &pick, &rules, "").unwrap();
+ assert_eq!(
+ cmd.video_pick,
+ Some(mdm_ipc::VideoPick {
+ token: "abc".into(),
+ choice: 2,
+ store_id: Some("firefox-private".into()),
+ })
+ );
+ assert!(cmd.private && cmd.startup && cmd.wants_reply());
+ // No token: answered without asking the app.
+ let blank: Message = serde_json::from_str(r#"{"videoPoll":{"token":" "}}"#).unwrap();
+ assert_eq!(
+ menu_command(MenuAsk::Poll, &blank, &rules, "").err(),
+ Some(mdm_ipc::api::lookup::GONE)
+ );
+ let blank: Message = serde_json::from_str(r#"{"videoPick":{"choice":1}}"#).unwrap();
+ assert_eq!(
+ menu_command(MenuAsk::Pick, &blank, &rules, "").err(),
+ Some(mdm_ipc::api::lookup::USE_WINDOW)
+ );
+ assert_eq!(menu_ask(&Message::default()), None);
+ }
+
+ /// Where the button is off, or for a page not on the web, the menu is answered at once
+ /// (`off`, `use-window`), in `lookup` and never as a `why`.
+ #[test]
+ fn the_quality_menu_follows_options() {
+ let ua = "Mozilla/5.0 (Windows NT 10.0) Chrome/141.0.0.0 Safari/537.36";
+ let mut rules = mdm_ipc::capture::CaptureRules {
+ video_panel_sites: "*.quiet.test".into(),
+ ..Default::default()
+ };
+ let look = |page: &str| Message {
+ video_lookup: Some(LookupAsk {
+ page: page.into(),
+ ..Default::default()
+ }),
+ user_agent: Some(ua.into()),
+ ..Default::default()
+ };
+ let state = |r: Reply| {
+ assert!(r.ok && r.why.is_none() && r.error.is_none());
+ r.lookup.unwrap().state
+ };
+ assert_eq!(
+ state(answer(look("https://www.quiet.test/w"), &rules)),
+ "off"
+ );
+ assert_eq!(
+ state(answer(look("file:///C:/x.html"), &rules)),
+ "use-window"
+ );
+ assert_eq!(state(answer(look(""), &rules)), "use-window");
+ rules.video_panel = false;
+ assert_eq!(state(answer(look("https://videos.test/w"), &rules)), "off");
+ let json = serde_json::to_string(&answer(look("https://videos.test/w"), &rules)).unwrap();
+ assert_eq!(json, r#"{"ok":true,"lookup":{"state":"off"}}"#);
+ }
+
+ /// The app's answer passes through; its absence, or a line that isn't one, says what the
+ /// contract says: the window for a look-up or a choice, `pending` or `gone` for a question.
+ #[test]
+ fn answers_that_are_not_the_apps() {
+ use mdm_ipc::SendError;
+ use mdm_ipc::api::lookup;
+ let line = |s: &str| Ok::<String, SendError>(s.to_owned());
+ let a = menu_answer(
+ MenuAsk::Lookup,
+ line(r#"{"state":"pending","token":"t1"}"#),
+ "",
+ );
+ assert_eq!(
+ (a.state.as_str(), a.token.as_deref()),
+ ("pending", Some("t1"))
+ );
+ let a = menu_answer(
+ MenuAsk::Poll,
+ line(
+ r#"{"state":"ready","token":"t1","title":"A talk","choices":[{"label":"720p mp4","ext":"mp4","size":null}]}"#,
+ ),
+ "t1",
+ );
+ assert_eq!(a.state, lookup::READY);
+ assert_eq!(a.choices[0].ext, "mp4");
+ assert_eq!(
+ menu_answer(MenuAsk::Pick, line(r#"{"state":"queued"}"#), "").state,
+ lookup::QUEUED
+ );
+ let not_answers = [
+ "ok",
+ "denied",
+ "gone",
+ "too-large",
+ "",
+ r#"{"error":"the automation API is off","code":"api-off"}"#,
+ ];
+ for got in not_answers {
+ for ask in [MenuAsk::Lookup, MenuAsk::Pick] {
+ assert_eq!(
+ menu_answer(ask, line(got), "").state,
+ lookup::USE_WINDOW,
+ "{ask:?} {got}"
+ );
+ }
+ }
+ // `timeout`: the app has the command and will act on it. The choice downloads soon (the
+ // Download video window would download it again), the look-up runs (another window
+ // would run a second yt-dlp).
+ assert_eq!(
+ menu_answer(MenuAsk::Pick, line("timeout"), "").state,
+ lookup::SENT
+ );
+ assert_eq!(
+ menu_answer(MenuAsk::Pick, line("timeout\n"), "").state,
+ lookup::SENT
+ );
+ assert_eq!(
+ menu_answer(MenuAsk::Lookup, line("timeout"), "").state,
+ lookup::BUSY
+ );
+ for err in [
+ SendError::NotRunning("no data dir".into()),
+ SendError::Refused("connection reset".into()),
+ ] {
+ assert_eq!(
+ menu_answer(MenuAsk::Lookup, Err(err), "").state,
+ lookup::USE_WINDOW
+ );
+ }
+ assert_eq!(
+ menu_answer(MenuAsk::Pick, Err(SendError::NotRunning("x".into())), "").state,
+ lookup::USE_WINDOW
+ );
+ // A question: the app only too busy is asked again; anything else, the look-up is gone.
+ let busy = menu_answer(MenuAsk::Poll, line("timeout"), "t1");
+ assert_eq!(
+ (busy.state.as_str(), busy.token.as_deref()),
+ ("pending", Some("t1"))
+ );
+ for got in ["ok", "denied", "gone", "too-large", ""] {
+ assert_eq!(
+ menu_answer(MenuAsk::Poll, line(got), "t1").state,
+ lookup::GONE
+ );
+ }
+ assert_eq!(
+ menu_answer(MenuAsk::Poll, Err(SendError::NotRunning("x".into())), "t1").state,
+ lookup::GONE
+ );
+ // As the extension reads it.
+ let json =
+ serde_json::to_string(&Reply::lookup(menu_answer(MenuAsk::Lookup, line("ok"), "")))
+ .unwrap();
+ assert_eq!(json, r#"{"ok":true,"lookup":{"state":"use-window"}}"#);
+ }
+
+ /// A question waits while the look-up runs, asking the app every 100 ms, and answers as soon
+ /// as it is ready, or `pending` after 1.5 s; whether a choice is sound alone reaches the
+ /// browser as the app says it.
+ #[test]
+ fn a_question_waits_for_the_look_up() {
+ use mdm_ipc::SendError;
+ use mdm_ipc::api::lookup;
+ let ready = r#"{"state":"ready","token":"t1","title":"A talk","choices":[{"label":"720p MP4","ext":"mp4","size":null,"audio":false},{"label":"Audio only MP3 320 kbps","ext":"mp3","size":null,"audio":true}]}"#;
+ // A clock of the test's own: asking every 20 ms, the answer is ready at the third
+ // question, 40 ms in.
+ let now = std::cell::Cell::new(Duration::ZERO);
+ let elapsed = || now.get();
+ let sleep = |d: Duration| now.set(now.get() + d);
+ let mut asked = 0;
+ let answer = until_settled_on(
+ || {
+ asked += 1;
+ let got = if asked < 3 {
+ r#"{"state":"pending","token":"t1"}"#
+ } else {
+ ready
+ };
+ menu_answer(MenuAsk::Poll, Ok::<String, SendError>(got.into()), "t1")
+ },
+ POLL_WAIT,
+ Duration::from_millis(20),
+ elapsed,
+ sleep,
+ );
+ assert_eq!((answer.state.as_str(), asked), (lookup::READY, 3));
+ assert_eq!(now.get(), Duration::from_millis(40));
+ let json = serde_json::to_string(&Reply::lookup(answer)).unwrap();
+ assert!(
+ json.contains(r#""ext":"mp4","size":null,"audio":false"#)
+ && json.contains(r#""ext":"mp3","size":null,"audio":true"#),
+ "{json}"
+ );
+ // Still running after the wait: `pending`, having asked every tenth of a second (at 0,
+ // 100, 200 and 300 ms) and never waited past the 300 ms.
+ now.set(Duration::ZERO);
+ let mut asked = 0;
+ let answer = until_settled_on(
+ || {
+ asked += 1;
+ mdm_ipc::api::VideoLookupAnswer::pending("t1")
+ },
+ Duration::from_millis(300),
+ Duration::from_millis(100),
+ elapsed,
+ sleep,
+ );
+ assert_eq!(answer.state, lookup::PENDING);
+ assert_eq!(asked, 4);
+ assert_eq!(now.get(), Duration::from_millis(300));
+ // Anything else at once, without waiting.
+ now.set(Duration::ZERO);
+ let mut asked = 0;
+ let gone = until_settled_on(
+ || {
+ asked += 1;
+ mdm_ipc::api::VideoLookupAnswer::of(lookup::GONE)
+ },
+ POLL_WAIT,
+ POLL_EVERY,
+ elapsed,
+ sleep,
+ );
+ assert_eq!(now.get(), Duration::ZERO);
+ assert_eq!((gone.state.as_str(), asked), (lookup::GONE, 1));
+ }
+
+ #[test]
+ fn look_up_log_lines_keep_private_windows_out() {
+ let open = lookup_line(
+ "Mozilla Firefox",
+ "https://cdn.test/v/master.m3u8?sig=secret",
+ false,
+ "pending",
+ );
+ assert_eq!(
+ open,
+ "browser integration: Mozilla Firefox looked up the qualities of a video on cdn.test: pending"
+ );
+ let private = lookup_line("", "https://secret.test/v.mp4", true, "use-window");
+ assert!(!private.contains("secret") && private.contains("private window"));
+ assert!(private.starts_with("browser integration: a browser "));
+ assert!(!lookup_line("", "https://x.test/\n", false, "a\nb").contains('\n'));
+ }
+
#[test]
fn the_browsers_whole_context_reaches_the_app() {
let m: Message = serde_json::from_str(
diff --git a/crates/tools/src/lib.rs b/crates/tools/src/lib.rs
index fec1c387..1d349b58 100644
--- a/crates/tools/src/lib.rs
+++ b/crates/tools/src/lib.rs
@@ -8,6 +8,7 @@ pub mod chosen;
pub mod ffmpeg;
pub mod gallery;
mod macos;
+pub mod manifest;
mod openpgp;
pub mod pages;
pub mod playlist;
diff --git a/crates/tools/src/manifest.rs b/crates/tools/src/manifest.rs
new file mode 100644
index 00000000..fd63750e
--- /dev/null
+++ b/crates/tools/src/manifest.rs
@@ -0,0 +1,1608 @@
+//! An HLS stream's master playlist read the way yt-dlp's generic extractor reads it, for the
+//! browser's quality menu (the app's `videolookup.rs`): the qualities, sizes and subtitles
+//! `yt-dlp -J` lists for the stream, a second and more sooner (yt-dlp's start alone takes one).
+//! Only an optimisation: it takes only what it reads exactly as yt-dlp does, a master playlist of
+//! a whole video (VOD) whose every video variant says its resolution, without DRM, and anything
+//! else, or any doubt, is None: yt-dlp looks the stream up as before. The parity is checked
+//! against yt-dlp's own answers for the same playlists (`tests/fixtures/hls`, yt-dlp 2026.10.26).
+//!
+//! What yt-dlp does there (`_parse_m3u8_formats_and_subtitles`, then the generic extractor's
+//! "Checking m3u8 live status"), mirrored here:
+//! - each `#EXT-X-MEDIA` audio rendition with a playlist of its own (`URI`) is a format of sound
+//! alone, `<GROUP-ID>-<NAME>`, with no bitrate; a video rendition with its own (another camera)
+//! isn't mirrored (None);
+//! - each variant (`#EXT-X-STREAM-INF` and the address under it) is a format: its bitrate
+//! AVERAGE-BANDWIDTH, else BANDWIDTH, / 1000; its RESOLUTION, FRAME-RATE and CODECS (none:
+//! picture and sound both unknown); a variant whose AUDIO group's first rendition has a
+//! playlist carries no sound (it is merged with one);
+//! - `#EXT-X-I-FRAME-STREAM-INF` (trick play) is no format;
+//! - each `SUBTITLES` rendition with a playlist is a subtitle language (its LANGUAGE, `und`
+//! without one), with no name;
+//! - the duration is the whole seconds of the FIRST format's playlist (the first audio rendition
+//! when there is one, else the first variant), read only when it ends (`#EXT-X-ENDLIST`);
+//! - the title is the address's last part without its extension (`master` for `master.m3u8`), of
+//! the address a redirect led to: yt-dlp looks that one up instead;
+//! - every format is an `mp4`, listed worst first, as yt-dlp sorts them.
+//!
+//! Reading it takes two requests ([`fetch`]), the master playlist and that first playlist, with
+//! the browser's context for the stream, within 5 s and 2 MB each. Neither a playlist nor its
+//! address is ever logged or written anywhere.
+
+use std::cmp::Ordering;
+use std::collections::HashMap;
+use std::time::Duration;
+
+use url::Url;
+
+use crate::proc::FromBrowser;
+use crate::resolve::{Format, Video};
+
+/// The most a playlist may hold, counted on the bytes as they come (not the size the server
+/// announces).
+pub const MAX_BYTES: usize = 2 * 1024 * 1024;
+/// Both requests together, redirects included.
+pub const BUDGET: Duration = Duration::from_secs(5);
+/// Redirects followed for each request.
+const MAX_REDIRECTS: usize = 5;
+/// The most lines a playlist, formats a master and attributes a line may have: a bigger one is
+/// nothing the menu reads.
+const MAX_LINES: usize = 100_000;
+const MAX_FORMATS: usize = 200;
+const MAX_ATTRIBUTES: usize = 64;
+/// The longest tag line whose attributes are read: a real one is well under 2 KB, and a match
+/// that fails is tried again from later on the line, so a long crafted one costs its square.
+const MAX_ATTRIBUTE_LINE: usize = 16 * 1024;
+
+/// A master playlist, read: its formats as yt-dlp lists them before it knows the duration, its
+/// subtitle languages, and the playlist whose length is the video's ([`Master::first`]).
+#[derive(Debug)]
+pub struct Master {
+ title: String,
+ /// In the order yt-dlp makes them (renditions, then variants).
+ formats: Vec<Fmt>,
+ subtitles: Vec<String>,
+}
+
+/// One format as yt-dlp makes it of a rendition or a variant.
+#[derive(Clone, Debug)]
+struct Fmt {
+ id: String,
+ url: Url,
+ width: Option<u32>,
+ height: Option<u32>,
+ fps: Option<f64>,
+ /// yt-dlp's codecs: `none` (not there), a name, or unknown.
+ vcodec: Option<String>,
+ acodec: Option<String>,
+ /// Kbit/s.
+ tbr: Option<f64>,
+}
+
+impl Fmt {
+ fn video(&self) -> bool {
+ self.vcodec.as_deref() != Some("none")
+ }
+
+ fn audio(&self) -> bool {
+ self.acodec.as_deref() != Some("none")
+ }
+}
+
+/// Doubt: something yt-dlp may read otherwise than MDM would. The stream is left to yt-dlp.
+struct Doubt;
+
+impl Master {
+ /// The master playlist `text`, from `url` (the address it came from, after any redirect).
+ /// None: not a master playlist, or one MDM doesn't read exactly as yt-dlp would.
+ pub fn parse(text: &str, url: &Url) -> Option<Master> {
+ let lines = lines(text)?;
+ if !text.starts_with("#EXTM3U")
+ || !text.contains("#EXT-X-STREAM-INF:")
+ || drm(text, &lines)
+ // yt-dlp's title would be the page's (`<title>`, `og:title`) if the text had one.
+ || text.contains("<title")
+ || text.contains("og:title")
+ {
+ return None;
+ }
+ let title = title_of(url)?;
+ // The renditions first, all of them, then the variants, as yt-dlp reads them.
+ let mut groups: HashMap<String, Vec<HashMap<String, String>>> = HashMap::new();
+ let mut formats: Vec<Fmt> = Vec::new();
+ let mut subtitles: Vec<String> = Vec::new();
+ for line in lines.iter().filter(|l| l.starts_with("#EXT-X-MEDIA:")) {
+ let media = attributes(line)?;
+ let (Some(kind), Some(group), Some(name)) =
+ (media.get("TYPE"), media.get("GROUP-ID"), media.get("NAME"))
+ else {
+ continue;
+ };
+ let (kind, group, name) = (kind.clone(), group.clone(), name.clone());
+ let uri = media.get("URI").cloned();
+ let language = media.get("LANGUAGE").cloned();
+ groups.entry(group.clone()).or_default().push(media);
+ match (kind.as_str(), uri) {
+ ("SUBTITLES", Some(_)) => {
+ let code = language.unwrap_or_else(|| "und".into());
+ if !subtitles.contains(&code) {
+ subtitles.push(code);
+ }
+ }
+ // Another camera's picture: not mirrored.
+ ("VIDEO", Some(_)) => return None,
+ ("AUDIO", Some(uri)) => formats.push(Fmt {
+ id: format!("{group}-{name}"),
+ url: address_in(url, &uri)?,
+ width: None,
+ height: None,
+ fps: None,
+ vcodec: Some("none".into()),
+ acodec: None,
+ tbr: None,
+ }),
+ _ => {}
+ }
+ }
+ let mut last: HashMap<String, String> = HashMap::new();
+ for line in &lines {
+ if line.starts_with("#EXT-X-STREAM-INF:") {
+ last = attributes(line)?;
+ continue;
+ }
+ if line.starts_with('#') || line.trim().is_empty() {
+ continue;
+ }
+ let inf = std::mem::take(&mut last);
+ // Dailymotion's plain-file twin of a variant: one more format, not mirrored.
+ if inf.contains_key("PROGRESSIVE-URI") {
+ return None;
+ }
+ let rate = inf
+ .get("AVERAGE-BANDWIDTH")
+ .or_else(|| inf.get("BANDWIDTH"))
+ .map(|b| py_float(b))
+ .transpose()
+ .ok()?
+ .flatten()
+ .map(|b| b / 1000.0)
+ // A variant without a bitrate is listed by yt-dlp all the same, unsized and
+ // numbered by its place: not mirrored.
+ .filter(|t| *t > 0.0)?;
+ let name = inf.get("NAME").cloned().or_else(|| {
+ let id = inf.get("VIDEO")?;
+ Some(
+ groups
+ .get(id)
+ .and_then(|g| g.first())
+ .and_then(|r| r.get("NAME"))
+ .cloned()
+ .unwrap_or_else(|| id.clone()),
+ )
+ });
+ let (width, height) = match inf.get("RESOLUTION") {
+ Some(r) => resolution(r).ok()?.unzip(),
+ None => (None, None),
+ };
+ let fps = match inf.get("FRAME-RATE") {
+ Some(f) => py_float(f).ok()?,
+ None => None,
+ };
+ let codecs = codecs(inf.get("CODECS").map(String::as_str)).ok()?;
+ let (vcodec, mut acodec) = codecs.clone().unzip();
+ // Its sound in another playlist (yt-dlp merges the two): the variant has none.
+ if let (Some(group), Some(_)) = (inf.get("AUDIO"), &codecs)
+ && vcodec.as_deref() != Some("none")
+ && groups
+ .get(group)
+ .and_then(|g| g.first())
+ .is_some_and(|r| r.contains_key("URI"))
+ {
+ acodec = Some("none".into());
+ }
+ formats.push(Fmt {
+ // Python's `'%d' % tbr`.
+ id: name.unwrap_or_else(|| format!("{}", rate.trunc() as i64)),
+ url: address_in(url, line.trim())?,
+ width,
+ height,
+ fps,
+ vcodec,
+ acodec,
+ tbr: Some(rate),
+ });
+ if formats.len() > MAX_FORMATS {
+ return None;
+ }
+ }
+ // Every picture has its height (no "MP4" line by type alone), and every playlist is on
+ // the master's own server: one request more, to the same place.
+ let home = origin(url);
+ if formats.is_empty()
+ || formats.len() > MAX_FORMATS
+ || formats.iter().any(|f| f.video() && f.height.is_none())
+ || formats.iter().any(|f| origin(&f.url) != home)
+ {
+ return None;
+ }
+ Some(Master {
+ title,
+ formats,
+ subtitles,
+ })
+ }
+
+ /// The playlist whose length is the video's, as yt-dlp reads it: the first format's.
+ pub fn first(&self) -> &Url {
+ &self.formats[0].url
+ }
+
+ /// The video, given [`Master::first`]'s playlist `text`: None when that is no whole video
+ /// (a live stream's has no end), or DRM.
+ pub fn video(&self, text: &str) -> Option<Video> {
+ let lines = lines(text)?;
+ if !text.contains("#EXT-X-ENDLIST")
+ || text.contains("#EXT-X-STREAM-INF:")
+ || drm(text, &lines)
+ {
+ return None;
+ }
+ // yt-dlp's `int(sum(float(…) for each #EXTINF))`, left to right: the same seconds.
+ let mut sum = 0.0f64;
+ for line in lines.iter().filter(|l| l.starts_with("#EXTINF:")) {
+ let rest = &line["#EXTINF:".len()..];
+ let secs = py_float(rest.split(',').next().unwrap_or_default())
+ .ok()
+ .flatten()
+ .filter(|s| *s >= 0.0)?;
+ sum += secs;
+ }
+ let duration = sum.trunc();
+ if !(duration >= 1.0 && duration.is_finite()) {
+ return None;
+ }
+ let mut sorted = self.formats.clone();
+ sorted.sort_by(worse_first);
+ let ids = unique_ids(&sorted);
+ let formats: Vec<Format> = sorted
+ .iter()
+ .zip(ids)
+ .map(|(f, id)| Format {
+ id,
+ ext: "mp4".into(),
+ height: f.height,
+ fps: f.fps,
+ video: f.video(),
+ audio: f.audio(),
+ size: f
+ .tbr
+ .filter(|t| t.is_finite() && *t > 0.0)
+ .map(|t| crate::resolve::estimate(duration, t)),
+ tbr: f.tbr,
+ // A variant of an HLS playlist: its pieces need ffmpeg to make one file (#569).
+ hls: true,
+ })
+ .collect();
+ if !ties_are_harmless(&formats) {
+ return None;
+ }
+ Some(Video {
+ title: self.title.clone(),
+ duration: Some(duration),
+ formats,
+ subtitles: crate::resolve::unnamed_tracks(self.subtitles.iter().cloned()),
+ automatic: Vec::new(),
+ language: None,
+ direct: false,
+ })
+ }
+}
+
+/// The lines of `text` as Python's `splitlines` makes them; None for characters it splits on
+/// and Rust doesn't (or the other way), and for a playlist too long to be one.
+fn lines(text: &str) -> Option<Vec<&str>> {
+ let odd = |c: char| {
+ (c.is_ascii_control() && !matches!(c, '\t' | '\n' | '\r'))
+ || matches!(c, '\u{85}' | '\u{2028}' | '\u{2029}')
+ };
+ if text.chars().any(odd) {
+ return None;
+ }
+ let mut out = Vec::new();
+ let mut rest = text;
+ while !rest.is_empty() {
+ let end = rest.find(['\r', '\n']).unwrap_or(rest.len());
+ out.push(&rest[..end]);
+ let after = &rest[end..];
+ rest = after
+ .strip_prefix("\r\n")
+ .or_else(|| after.strip_prefix('\r'))
+ .or_else(|| after.strip_prefix('\n'))
+ .unwrap_or(after);
+ if out.len() > MAX_LINES {
+ return None;
+ }
+ }
+ Some(out)
+}
+
+/// A tag line's attributes as yt-dlp's `parse_m3u8_attributes` finds them, the whole line
+/// searched for `KEY=VALUE` followed by a comma or the end (`[A-Z0-9-]+=("[^"]+"|[^",]+)(,|$)`,
+/// quotes taken off), a later key winning. None for a line with too many.
+fn attributes(line: &str) -> Option<HashMap<String, String>> {
+ let b = line.as_bytes();
+ if b.len() > MAX_ATTRIBUTE_LINE {
+ return None;
+ }
+ let mut out = HashMap::new();
+ let mut found = 0;
+ let mut i = 0;
+ while i < b.len() {
+ match attribute_at(b, i) {
+ Some((key, value, end)) => {
+ found += 1;
+ if found > MAX_ATTRIBUTES {
+ return None;
+ }
+ out.insert(line[key].to_owned(), line[value].to_owned());
+ i = end;
+ }
+ // No match can start inside the key run that just failed (its end and what follows
+ // are the same from any of its letters): on after it.
+ None => i = key_run_end(b, i).max(i + 1),
+ }
+ }
+ Some(out)
+}
+
+/// Where the run of key characters (`[A-Z0-9-]`) starting at `i` ends.
+fn key_run_end(b: &[u8], i: usize) -> usize {
+ let mut j = i;
+ while j < b.len() && key_char(b[j]) {
+ j += 1;
+ }
+ j
+}
+
+fn key_char(c: u8) -> bool {
+ c.is_ascii_uppercase() || c.is_ascii_digit() || c == b'-'
+}
+
+type Span = std::ops::Range<usize>;
+
+/// The attribute the pattern matches at `i`: its key, its value and where the search goes on.
+fn attribute_at(b: &[u8], i: usize) -> Option<(Span, Span, usize)> {
+ let j = key_run_end(b, i);
+ if j == i || b.get(j) != Some(&b'=') {
+ return None;
+ }
+ let v = j + 1;
+ // The comma or the end after a value at `from..to`.
+ let ends = |from: usize, to: usize, next: usize| match b.get(next) {
+ None => Some((i..j, from..to, next)),
+ Some(b',') => Some((i..j, from..to, next + 1)),
+ _ => None,
+ };
+ if b.get(v) == Some(&b'"') {
+ // `"[^"]+"`; failing that, `[^",]+` can't start on a quote either.
+ let close = v + 1 + b[v + 1..].iter().position(|&c| c == b'"')?;
+ if close == v + 1 {
+ return None;
+ }
+ return ends(v + 1, close, close + 1);
+ }
+ let mut k = v;
+ while k < b.len() && b[k] != b'"' && b[k] != b',' {
+ k += 1;
+ }
+ if k == v {
+ return None;
+ }
+ ends(v, k, k)
+}
+
+/// Python's `float()` of a value as yt-dlp's `float_or_none` takes it: `Ok(None)` when Python
+/// can't read it either; `Err` for what Python reads and Rust doesn't (underscores between
+/// digits, other scripts' digits), and for infinities and NaN, which nothing here mirrors.
+fn py_float(s: &str) -> Result<Option<f64>, Doubt> {
+ let s = s.trim();
+ if !s.is_ascii() || s.contains('_') {
+ return Err(Doubt);
+ }
+ match s.parse::<f64>() {
+ Ok(f) if f.is_finite() => Ok(Some(f)),
+ Ok(_) => Err(Doubt),
+ Err(_) => Ok(None),
+ }
+}
+
+/// RESOLUTION's width and height as yt-dlp searches them (`(\d+)[xX](\d+)`); none when it
+/// finds none.
+fn resolution(s: &str) -> Result<Option<(u32, u32)>, Doubt> {
+ if !s.is_ascii() {
+ return Err(Doubt);
+ }
+ let b = s.as_bytes();
+ let digits = |from: usize| from + b[from..].iter().take_while(|c| c.is_ascii_digit()).count();
+ let mut i = 0;
+ while i < b.len() {
+ if !b[i].is_ascii_digit() {
+ i += 1;
+ continue;
+ }
+ let x = digits(i);
+ if matches!(b.get(x), Some(b'x' | b'X')) && b.get(x + 1).is_some_and(u8::is_ascii_digit) {
+ let end = digits(x + 1);
+ let width = s[i..x].parse().map_err(|_| Doubt)?;
+ let height = s[x + 1..end].parse().map_err(|_| Doubt)?;
+ return Ok(Some((width, height)));
+ }
+ i = x;
+ }
+ Ok(None)
+}
+
+/// CODECS as yt-dlp's `parse_codecs` reads it: (picture, sound), `none` for the one that isn't
+/// there; None when it names nothing yt-dlp knows (both unknown). `Err` for what it reads into
+/// more than that (HDR and subtitle codecs, which yt-dlp sorts and lists apart).
+fn codecs(s: Option<&str>) -> Result<Option<(String, String)>, Doubt> {
+ let Some(s) = s else { return Ok(None) };
+ if !s.is_ascii() {
+ return Err(Doubt);
+ }
+ let split: Vec<&str> = s
+ .trim()
+ .trim_matches(',')
+ .split(',')
+ .map(str::trim)
+ .filter(|c| !c.is_empty())
+ .collect();
+ const PICTURE: [&str; 16] = [
+ "avc1", "avc2", "avc3", "avc4", "vp9", "vp8", "hev1", "hev2", "h263", "h264", "mp4v",
+ "hvc1", "av1", "theora", "dvh1", "dvhe",
+ ];
+ const SOUND: [&str; 14] = [
+ "flac", "mp4a", "opus", "vorbis", "mp3", "aac", "ac-4", "ac-3", "ec-3", "eac3", "dtsc",
+ "dtse", "dtsh", "dtsl",
+ ];
+ let (mut picture, mut sound): (Option<String>, Option<String>) = (None, None);
+ for codec in &split {
+ // The name lowercased up to its first dot; zeros before a digit dropped to tell it
+ // (`av01` is `av1`, `vp09.02` is `vp9.2`).
+ let (head, tail) = codec.split_at(codec.find('.').unwrap_or(codec.len()));
+ let full = format!("{}{tail}", head.to_ascii_lowercase());
+ let parts: Vec<String> = no_leading_zeros(&full)
+ .split('.')
+ .map(str::to_owned)
+ .collect();
+ let kind = parts[0].as_str();
+ if PICTURE.contains(&kind) {
+ if picture.is_some() {
+ continue;
+ }
+ let hdr = matches!(kind, "dvh1" | "dvhe")
+ || (kind == "av1" && parts.get(3).map(String::as_str) == Some("10"))
+ || (kind == "vp9" && parts.get(1).map(String::as_str) == Some("2"));
+ if hdr {
+ return Err(Doubt);
+ }
+ picture = Some(full);
+ } else if SOUND.contains(&kind) {
+ sound = sound.or(Some(full));
+ } else if matches!(kind, "stpp" | "wvtt") {
+ return Err(Doubt);
+ }
+ }
+ Ok(match (picture, sound) {
+ (None, None) if split.len() == 2 => Some((split[0].to_owned(), split[1].to_owned())),
+ (None, None) => None,
+ (p, s) => Some((
+ p.unwrap_or_else(|| "none".into()),
+ s.unwrap_or_else(|| "none".into()),
+ )),
+ })
+}
+
+/// Python's `re.sub(r'0+(?=\d)', '', s)`: runs of zeros before a digit taken out.
+fn no_leading_zeros(s: &str) -> String {
+ let b = s.as_bytes();
+ let mut out = String::with_capacity(s.len());
+ let mut i = 0;
+ while i < b.len() {
+ if b[i] == b'0' {
+ // A run of zeros goes whole before a digit; before anything else all but its last
+ // zero go (that one is the digit the others are before).
+ let run = b[i..].iter().take_while(|&&c| c == b'0').count();
+ if !b.get(i + run).is_some_and(u8::is_ascii_digit) {
+ out.push('0');
+ }
+ i += run;
+ continue;
+ }
+ out.push(b[i] as char);
+ i += 1;
+ }
+ out
+}
+
+/// Whether the master's text says DRM: yt-dlp's own signs of it (FairPlay, PlayReady, Flash
+/// Access, which it drops the formats for), and any key that isn't plain AES-128 (`SAMPLE-AES`,
+/// or a key format other than `identity`), in a key or a session key.
+fn drm(text: &str, lines: &[&str]) -> bool {
+ [
+ "skd://",
+ "com.apple.streamingkeydelivery",
+ "com.microsoft.playready",
+ "#EXT-X-FAXS-CM:",
+ ]
+ .iter()
+ .any(|s| text.contains(s))
+ || lines
+ .iter()
+ .filter(|l| l.starts_with("#EXT-X-KEY:") || l.starts_with("#EXT-X-SESSION-KEY:"))
+ .any(|l| {
+ let Some(a) = attributes(l) else { return true };
+ a.get("METHOD").is_some_and(|m| m.starts_with("SAMPLE-AES"))
+ || a.get("KEYFORMAT").is_some_and(|f| f != "identity")
+ })
+}
+
+/// The title yt-dlp's generic extractor gives a stream it knows only by its address: the last
+/// part of the address's path without its extension (Python's `os.path.splitext`), then decoded.
+/// None for a part that isn't UTF-8 once decoded (yt-dlp would put replacement characters).
+fn title_of(url: &Url) -> Option<String> {
+ let last = url.path().trim_matches('/').rsplit('/').next()?;
+ let stem = match last.rfind('.') {
+ Some(dot) if last[..dot].chars().any(|c| c != '.') => &last[..dot],
+ _ => last,
+ };
+ let title = percent_encoding::percent_decode_str(stem)
+ .decode_utf8()
+ .ok()?
+ .into_owned();
+ (!title.trim().is_empty()).then_some(title)
+}
+
+/// Characters an address may hold as it is (RFC 3986), so that yt-dlp's and MDM's readings of
+/// it can't differ.
+fn plain_address(s: &str) -> bool {
+ !s.is_empty()
+ && s.bytes()
+ .all(|c| c.is_ascii_alphanumeric() || b"-._~:/?#[]@!$&'()*+,;=%".contains(&c))
+}
+
+/// A playlist's address `uri` as written in the master at `base`.
+fn address_in(base: &Url, uri: &str) -> Option<Url> {
+ if !plain_address(uri) {
+ return None;
+ }
+ let u = base.join(uri).ok()?;
+ matches!(u.scheme(), "http" | "https").then_some(u)
+}
+
+/// Scheme, host and port: the browser's cookie and referrer go only where all three are the
+/// stream's.
+fn origin(u: &Url) -> (String, Option<String>, Option<u16>) {
+ (
+ u.scheme().to_owned(),
+ u.host_str().map(str::to_ascii_lowercase),
+ u.port_or_known_default(),
+ )
+}
+
+/// yt-dlp's codec preferences (its format sorter's, best last here): where formats tie on
+/// everything before, the better codec sorts later.
+fn picture_rank(c: Option<&str>) -> u8 {
+ let Some(c) = c else { return 1 };
+ let any = |p: &[&str]| p.iter().any(|x| c.starts_with(x));
+ match c {
+ "none" => 0,
+ _ if any(&["av01", "av1"]) => 10,
+ _ if any(&["vp9.2", "vp09.02", "vp9.02", "vp09.2"]) => 9,
+ _ if any(&["vp9", "vp09"]) => 8,
+ _ if any(&["h265", "x265", "hv", "hev"]) => 7,
+ _ if any(&["h264", "x264", "avc"]) => 6,
+ _ if any(&["vp8", "vp08"]) => 5,
+ _ if any(&["mp4v", "h263"]) => 4,
+ _ if any(&["theora"]) => 3,
+ _ => 2,
+ }
+}
+
+fn sound_rank(c: Option<&str>) -> u8 {
+ let Some(c) = c else { return 1 };
+ let any = |p: &[&str]| p.iter().any(|x| c.starts_with(x));
+ match c {
+ "none" => 0,
+ _ if any(&["flac", "alac"]) => 13,
+ _ if any(&["wav", "aiff"]) => 12,
+ _ if any(&["opus"]) => 11,
+ _ if any(&["vorbis", "ogg"]) => 10,
+ _ if any(&["aac"]) => 9,
+ _ if any(&["m4", "mp4"]) => 8,
+ _ if any(&["mp3"]) => 7,
+ _ if any(&["ac4", "ac-4"]) => 6,
+ _ if any(&["ec3", "eac3", "ec-3", "eac-3", "e-ac-3", "e-ac3"]) => 5,
+ _ if any(&["ac3", "ac-3"]) => 4,
+ _ if any(&["dts"]) => 3,
+ _ => 2,
+ }
+}
+
+/// yt-dlp's order of a stream's formats, worst first (its format sorter's fields that tell them
+/// apart: picture or not, resolution, frame rate, codecs, bitrate, sound or not, ID). Ties left
+/// between formats that would make different choices are refused ([`ties_are_harmless`]).
+fn worse_first(a: &Fmt, b: &Fmt) -> Ordering {
+ let maybe = |x: Option<f64>, y: Option<f64>| match (x, y) {
+ (Some(x), Some(y)) => x.total_cmp(&y),
+ (x, y) => x.is_some().cmp(&y.is_some()),
+ };
+ // The smaller side, as the sorter's `res`.
+ let res = |f: &Fmt| {
+ [f.height, f.width]
+ .into_iter()
+ .flatten()
+ .filter(|v| *v > 0)
+ .min()
+ .unwrap_or(0)
+ };
+ a.video()
+ .cmp(&b.video())
+ .then(res(a).cmp(&res(b)))
+ .then(maybe(a.fps, b.fps))
+ .then(picture_rank(a.vcodec.as_deref()).cmp(&picture_rank(b.vcodec.as_deref())))
+ .then(sound_rank(a.acodec.as_deref()).cmp(&sound_rank(b.acodec.as_deref())))
+ .then(maybe(a.tbr, b.tbr))
+ .then(a.audio().cmp(&b.audio()))
+ .then(a.id.cmp(&b.id))
+}
+
+/// The formats' IDs made unique as yt-dlp makes them (`-0`, `-1`… after each of a repeated
+/// one; `f` before one that is a file type's name).
+fn unique_ids(formats: &[Fmt]) -> Vec<String> {
+ const TYPES: [&str; 17] = [
+ "avi", "flv", "mkv", "mov", "mp4", "webm", "3gp", "aiff", "alac", "flac", "m4a", "mka",
+ "mp3", "ogg", "opus", "wav", "mhtml",
+ ];
+ let mut seen: HashMap<&str, usize> = HashMap::new();
+ let count = |id: &str| formats.iter().filter(|f| f.id == id).count();
+ formats
+ .iter()
+ .map(|f| {
+ let id = if count(&f.id) > 1 {
+ let n = seen.entry(&f.id).or_default();
+ *n += 1;
+ format!("{}-{}", f.id, *n - 1)
+ } else {
+ f.id.clone()
+ };
+ if id != "mp4" && TYPES.contains(&id.as_str()) {
+ format!("f{id}")
+ } else {
+ id
+ }
+ })
+ .collect()
+}
+
+/// Whether the choices made of `formats` (`resolve::choices`, which keeps the last of the
+/// formats equal in size) come out the same in any order: formats tied for a height's place, or
+/// for the sound's, must make the same line (frame rate shown, sound or not, type). MDM's order
+/// ([`worse_first`]) is yt-dlp's for every stream of the corpus, but isn't proven equal: where
+/// it would decide something, the stream is left to yt-dlp.
+fn ties_are_harmless(formats: &[Format]) -> bool {
+ let shown_fps = |f: &Format| f.fps.filter(|x| *x > 31.0).map(|x| x.round().to_bits());
+ let same = |tied: &[&Format]| {
+ tied.windows(2).all(|w| {
+ shown_fps(w[0]) == shown_fps(w[1]) && w[0].audio == w[1].audio && w[0].ext == w[1].ext
+ })
+ };
+ fn top(group: Vec<&Format>) -> Vec<&Format> {
+ let best = group.iter().map(|f| f.size.unwrap_or(0)).max();
+ group
+ .into_iter()
+ .filter(|f| Some(f.size.unwrap_or(0)) == best)
+ .collect()
+ }
+ for merge in [false, true] {
+ let mut heights: Vec<u32> = formats
+ .iter()
+ .filter(|f| f.video && (merge || f.audio))
+ .filter_map(|f| f.height)
+ .collect();
+ heights.sort_unstable();
+ heights.dedup();
+ for h in heights {
+ let group = formats
+ .iter()
+ .filter(|f| f.video && f.height == Some(h) && (merge || f.audio))
+ .collect();
+ if !same(&top(group)) {
+ return false;
+ }
+ }
+ }
+ same(&top(formats
+ .iter()
+ .filter(|f| f.audio && !f.video)
+ .collect()))
+}
+
+/// Read the stream at `url` as yt-dlp would list it, asked as the browser asked for it (`from`:
+/// its page as the Referer, its User-Agent, its Cookie header) through `opts` (Options' proxy,
+/// DNS and network adapter, as MDM's own requests). None whenever the stream isn't one this
+/// reads exactly as yt-dlp does, or anything goes wrong: within [`BUDGET`] for both requests.
+pub async fn fetch(url: &str, from: &FromBrowser, opts: &mdm_engine::Options) -> Option<Video> {
+ fetch_within(url, from, opts, BUDGET).await
+}
+
+async fn fetch_within(
+ url: &str,
+ from: &FromBrowser,
+ opts: &mdm_engine::Options,
+ budget: Duration,
+) -> Option<Video> {
+ tokio::time::timeout(budget, read(url, from, opts))
+ .await
+ .ok()
+ .flatten()
+}
+
+async fn read(url: &str, from: &FromBrowser, opts: &mdm_engine::Options) -> Option<Video> {
+ // An address yt-dlp and MDM can only read alike: a playlist's on the web, as written.
+ let start = Url::parse(url).ok()?;
+ if !matches!(start.scheme(), "http" | "https")
+ || start.as_str() != url
+ || !plain_address(url)
+ || !start.path().ends_with(".m3u8")
+ {
+ return None;
+ }
+ let mut opts = opts.clone();
+ if let Some(agent) = from.user_agent.as_deref().filter(|a| !a.trim().is_empty()) {
+ opts.user_agent = agent.to_owned();
+ }
+ let mut hops = Hops {
+ origin: origin(&start),
+ credentials: true,
+ from,
+ opts: &opts,
+ };
+ let (at, text) = hops.get(start).await?;
+ let master = Master::parse(&text, &at)?;
+ let (_, text) = hops.get(master.first().clone()).await?;
+ master.video(&text)
+}
+
+/// The requests for one stream, each redirect followed by hand.
+struct Hops<'a> {
+ /// The stream's scheme, host and port.
+ origin: (String, Option<String>, Option<u16>),
+ /// The browser's cookie and referrer still go: every hop so far was to the stream's origin.
+ /// Once one wasn't, never again, for this request or the next.
+ credentials: bool,
+ from: &'a FromBrowser,
+ opts: &'a mdm_engine::Options,
+}
+
+impl Hops<'_> {
+ /// `url`'s text and the address it came from, after at most [`MAX_REDIRECTS`] redirects.
+ async fn get(&mut self, mut url: Url) -> Option<(Url, String)> {
+ use reqwest::header::{CONTENT_TYPE, COOKIE, LOCATION, REFERER};
+ let given = |s: &Option<String>| {
+ s.as_deref()
+ .map(str::trim)
+ .filter(|s| !s.is_empty())
+ .map(str::to_owned)
+ };
+ for _ in 0..=MAX_REDIRECTS {
+ if !matches!(url.scheme(), "http" | "https") {
+ return None;
+ }
+ if origin(&url) != self.origin {
+ self.credentials = false;
+ }
+ // A client for this hop's server: its proxy and network adapter are this server's.
+ let client = mdm_engine::hop_client(self.opts, &url).ok()?;
+ let mut req = client.get(url.clone());
+ if self.credentials {
+ // The Cookie header the browser sent for this address: never a cookie jar
+ // (a whole site's cookies) made into one.
+ if let Some(c) = given(&self.from.cookies) {
+ req = req.header(COOKIE, c);
+ }
+ if let Some(r) = given(&self.from.referer) {
+ req = req.header(REFERER, r);
+ }
+ }
+ let mut resp = req.send().await.ok()?;
+ match resp.status().as_u16() {
+ 301 | 302 | 303 | 307 | 308 => {
+ let to = resp.headers().get(LOCATION)?.to_str().ok()?;
+ url = address_in(&url, to)?;
+ }
+ 200 => {
+ // UTF-8, as yt-dlp reads a playlist without another charset.
+ if let Some(t) = resp.headers().get(CONTENT_TYPE) {
+ let t = t.to_str().ok()?.to_ascii_lowercase();
+ if let Some((_, charset)) = t.split_once("charset=")
+ && !matches!(charset.trim(), "utf-8" | "utf8")
+ {
+ return None;
+ }
+ }
+ let mut body = Vec::new();
+ while let Some(chunk) = resp.chunk().await.ok()? {
+ if body.len() + chunk.len() > MAX_BYTES {
+ return None;
+ }
+ body.extend_from_slice(&chunk);
+ }
+ // A byte-order mark, or a `<meta charset>` yt-dlp would read the text by.
+ if body.starts_with(b"\xef\xbb\xbf")
+ || body[..body.len().min(1024)]
+ .windows(5)
+ .any(|w| w == b"<meta")
+ {
+ return None;
+ }
+ return Some((url, String::from_utf8(body).ok()?));
+ }
+ _ => return None,
+ }
+ }
+ None
+ }
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+ use crate::resolve::{choices, sub_choices};
+ use std::io::{BufRead, BufReader, Read, Write};
+ use std::path::PathBuf;
+ use std::sync::{Arc, Mutex};
+
+ fn fixture(case: &str, file: &str) -> String {
+ let p = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
+ .join("tests/fixtures/hls")
+ .join(case)
+ .join(file);
+ std::fs::read_to_string(&p).unwrap_or_else(|e| panic!("{}: {e}", p.display()))
+ }
+
+ /// The parity corpus: master playlists served from this computer (the lab server's stream,
+ /// and playlists made for each case, served by Python's http.server), each with the playlist
+ /// yt-dlp read its length from (it says so in its log: "Checking m3u8 live status") and
+ /// `yt-dlp -J`'s answer (2026.10.26), trimmed to what `resolve::parse` reads. Each case: the
+ /// address it was served at, and the playlist yt-dlp asked for after it.
+ const CORPUS: [(&str, &str, &str); 9] = [
+ // An audio rendition group, two variants with sound in it (the lab server's).
+ (
+ "lab",
+ "http://127.0.0.1:8093/hls/master.m3u8",
+ "http://127.0.0.1:8093/hls/audio/index.m3u8",
+ ),
+ // Two audio renditions, three variants (AVERAGE-BANDWIDTH, frame rates), subtitles in
+ // two languages and one without.
+ (
+ "group",
+ "http://127.0.0.1:8094/group.m3u8",
+ "http://127.0.0.1:8094/a/en.m3u8",
+ ),
+ // Pictures alone, a variant of sound alone, I-frame playlists.
+ (
+ "videoonly",
+ "http://127.0.0.1:8094/videoonly.m3u8",
+ "http://127.0.0.1:8094/a/en.m3u8",
+ ),
+ // Heights twice, at two bitrates and frame rates; a bitrate that isn't a whole kbit/s.
+ (
+ "repeated",
+ "http://127.0.0.1:8094/repeated.m3u8",
+ "http://127.0.0.1:8094/v/v720.m3u8",
+ ),
+ // No CODECS: the audio group is ignored, the variants carry both.
+ (
+ "nocodecs",
+ "http://127.0.0.1:8094/nocodecs.m3u8",
+ "http://127.0.0.1:8094/a/en.m3u8",
+ ),
+ // AES-128 with the identity key format: no DRM.
+ (
+ "aes",
+ "http://127.0.0.1:8094/aes.m3u8",
+ "http://127.0.0.1:8094/v/aes.m3u8",
+ ),
+ // Upright video, an audio group without playlists, a name with a space.
+ (
+ "portrait",
+ "http://127.0.0.1:8094/my%20clip.m3u8",
+ "http://127.0.0.1:8094/v/v720.m3u8",
+ ),
+ // The duration from the audio rendition's playlist, though a variant comes first.
+ (
+ "order",
+ "http://127.0.0.1:8094/order.m3u8",
+ "http://127.0.0.1:8094/a/en.m3u8",
+ ),
+ // Reached by a redirect (the lab's /redirect?to=…): named after where it led.
+ (
+ "redirect",
+ "http://127.0.0.1:8094/repeated.m3u8",
+ "http://127.0.0.1:8094/v/v720.m3u8",
+ ),
+ ];
+
+ /// What MDM reads of each stream is what yt-dlp listed: the same title, duration, formats in
+ /// the same order (IDs, heights, frame rates, codecs present, bitrates) and sizes, exactly
+ /// (the duration is yt-dlp's `int(sum(EXTINF))`, summed in the same order, and the size the
+ /// same `tbr × duration × 125`: no tolerance), the same subtitle languages; so the same
+ /// choices, with and without merging. Only `language` isn't compared: yt-dlp takes it from
+ /// the format it would pick, and it matters only for automatic captions, which a stream
+ /// hasn't.
+ #[test]
+ fn streams_are_read_as_yt_dlp_lists_them() {
+ for (case, address, first) in CORPUS {
+ let url = Url::parse(address).unwrap();
+ let master = Master::parse(&fixture(case, "master.m3u8"), &url)
+ .unwrap_or_else(|| panic!("{case}: not read"));
+ assert_eq!(
+ master.first().as_str(),
+ first,
+ "{case}: the length's playlist"
+ );
+ let ours = master
+ .video(&fixture(case, "media.m3u8"))
+ .unwrap_or_else(|| panic!("{case}: no video"));
+ let theirs = crate::resolve::parse(fixture(case, "ytdlp.json").as_bytes()).unwrap();
+ let ids = |v: &Video| v.formats.iter().map(|f| f.id.clone()).collect::<Vec<_>>();
+ assert_eq!(ids(&ours), ids(&theirs), "{case}: order");
+ assert_eq!(
+ ours,
+ Video {
+ language: None,
+ ..theirs.clone()
+ },
+ "{case}"
+ );
+ for merge in [false, true] {
+ assert_eq!(
+ choices(&ours, merge),
+ choices(&theirs, merge),
+ "{case}, merge {merge}"
+ );
+ }
+ assert_eq!(
+ sub_choices(&ours, "de"),
+ sub_choices(&theirs, "de"),
+ "{case}"
+ );
+ }
+ }
+
+ const MASTER: &str = "#EXTM3U\n\
+ #EXT-X-STREAM-INF:BANDWIDTH=2000000,RESOLUTION=1280x720,CODECS=\"avc1.4d401f,mp4a.40.2\"\n\
+ v720.m3u8\n\
+ #EXT-X-STREAM-INF:BANDWIDTH=800000,RESOLUTION=640x360,CODECS=\"avc1.42e01e,mp4a.40.2\"\n\
+ v360.m3u8\n";
+ const MEDIA: &str = "#EXTM3U\n#EXT-X-TARGETDURATION:10\n#EXTINF:10.0,\na.ts\n#EXTINF:10.0,\nb.ts\n#EXT-X-ENDLIST\n";
+
+ fn read(master: &str, media: &str) -> Option<Video> {
+ let url = Url::parse("https://cdn.test/v/master.m3u8").unwrap();
+ Master::parse(master, &url)?.video(media)
+ }
+
+ #[test]
+ fn a_plain_stream_is_read() {
+ let v = read(MASTER, MEDIA).unwrap();
+ assert_eq!(v.title, "master");
+ assert_eq!(v.duration, Some(20.0));
+ let labels: Vec<String> = choices(&v, false).into_iter().map(|c| c.label).collect();
+ assert_eq!(labels, ["720p MP4", "360p MP4"]);
+ }
+
+ /// DRM, a live stream, a picture without its resolution, a playlist on another server, a
+ /// second camera, a variant without a bitrate, a media playlist given as the master: none
+ /// is read here (yt-dlp looks them up).
+ #[test]
+ fn what_is_left_to_yt_dlp() {
+ let with = |line: &str| MASTER.replace("#EXTM3U\n", &format!("#EXTM3U\n{line}\n"));
+ for drm in [
+ "#EXT-X-SESSION-KEY:METHOD=SAMPLE-AES,URI=\"skd://key\",KEYFORMAT=\"com.apple.streamingkeydelivery\"",
+ "#EXT-X-SESSION-KEY:METHOD=SAMPLE-AES-CTR,URI=\"https://cdn.test/k\"",
+ "#EXT-X-SESSION-KEY:METHOD=AES-128,URI=\"https://cdn.test/k\",KEYFORMAT=\"urn:uuid:edef8ba9\"",
+ "#EXT-X-KEY:METHOD=AES-128,URI=\"data:text/plain;base64,AAAA\",KEYFORMAT=\"com.microsoft.playready\"",
+ "#EXT-X-FAXS-CM:abc",
+ ] {
+ assert!(read(&with(drm), MEDIA).is_none(), "{drm}");
+ }
+ // Plain AES-128 is no DRM.
+ assert!(
+ read(
+ &with("#EXT-X-SESSION-KEY:METHOD=AES-128,URI=\"k.bin\",KEYFORMAT=\"identity\""),
+ MEDIA
+ )
+ .is_some()
+ );
+ // DRM in the media playlist.
+ let keyed = MEDIA.replace(
+ "#EXT-X-TARGETDURATION:10\n",
+ "#EXT-X-TARGETDURATION:10\n#EXT-X-KEY:METHOD=SAMPLE-AES,URI=\"k\"\n",
+ );
+ assert!(read(MASTER, &keyed).is_none());
+ // Live: no end to its playlist.
+ assert!(read(MASTER, &MEDIA.replace("#EXT-X-ENDLIST\n", "")).is_none());
+ // A picture without its resolution.
+ assert!(read(&MASTER.replace("RESOLUTION=640x360,", ""), MEDIA).is_none());
+ assert!(
+ read(
+ &MASTER
+ .replace("RESOLUTION=640x360,", "")
+ .replace(",CODECS=\"avc1.42e01e,mp4a.40.2\"", ""),
+ MEDIA
+ )
+ .is_none()
+ );
+ // Sound alone needs none.
+ let sound = MASTER.replace(
+ "RESOLUTION=640x360,CODECS=\"avc1.42e01e,mp4a.40.2\"",
+ "CODECS=\"mp4a.40.2\"",
+ );
+ assert!(read(&sound, MEDIA).is_some());
+ // A variant on another server, scheme or port.
+ for other in [
+ "https://other.test/v/v360.m3u8",
+ "http://cdn.test/v/v360.m3u8",
+ "https://cdn.test:8443/v/v360.m3u8",
+ ] {
+ assert!(
+ read(&MASTER.replace("v360.m3u8", other), MEDIA).is_none(),
+ "{other}"
+ );
+ }
+ assert!(
+ read(
+ &MASTER.replace("v360.m3u8", "https://cdn.test/w/v360.m3u8"),
+ MEDIA
+ )
+ .is_some()
+ );
+ // Another camera's picture.
+ assert!(
+ read(
+ &with("#EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID=\"cam\",NAME=\"Side\",URI=\"side.m3u8\""),
+ MEDIA
+ )
+ .is_none()
+ );
+ // No bitrate.
+ assert!(read(&MASTER.replace("BANDWIDTH=800000,", ""), MEDIA).is_none());
+ // A media playlist, or nothing of the kind.
+ assert!(read(MEDIA, MEDIA).is_none());
+ assert!(read("<html><title>x</title></html>", MEDIA).is_none());
+ // HDR, sorted apart by yt-dlp.
+ assert!(read(&MASTER.replace("avc1.4d401f", "dvh1.05.06"), MEDIA).is_none());
+ // Dailymotion's plain-file twins.
+ assert!(
+ read(
+ &MASTER.replace(
+ "CODECS=\"avc1.42e01e,mp4a.40.2\"",
+ "CODECS=\"avc1.42e01e,mp4a.40.2\",PROGRESSIVE-URI=\"https://cdn.test/v.mp4\""
+ ),
+ MEDIA
+ )
+ .is_none()
+ );
+ }
+
+ /// Two variants of one height, the same size and different frame rates: which one
+ /// `resolve::choices` shows depends on the order, and MDM's isn't proven to be yt-dlp's
+ /// there.
+ #[test]
+ fn ties_that_matter_are_left_to_yt_dlp() {
+ let twin = "#EXTM3U\n\
+ #EXT-X-STREAM-INF:BANDWIDTH=2000000,RESOLUTION=1280x720,FRAME-RATE=60,CODECS=\"avc1.4d401f,mp4a.40.2\"\n\
+ a.m3u8\n\
+ #EXT-X-STREAM-INF:BANDWIDTH=2000000,RESOLUTION=1280x720,FRAME-RATE=25,CODECS=\"hvc1.1.6.L93.B0,mp4a.40.2\"\n\
+ b.m3u8\n";
+ assert!(read(twin, MEDIA).is_none());
+ // The same frame rate shown: either is the same line.
+ let same = twin.replace("FRAME-RATE=25", "FRAME-RATE=60");
+ let v = read(&same, MEDIA).unwrap();
+ assert_eq!(
+ v.formats.iter().map(|f| f.id.as_str()).collect::<Vec<_>>(),
+ ["2000-0", "2000-1"]
+ );
+ }
+
+ #[test]
+ fn attributes_as_yt_dlp_finds_them() {
+ let a = attributes(
+ "#EXT-X-STREAM-INF:BANDWIDTH=800000,CODECS=\"avc1.4d401f,mp4a.40.2\",NAME=\"\",RESOLUTION=640x360,lower=1,X=\"a\"b,Y=2",
+ )
+ .unwrap();
+ assert_eq!(a["BANDWIDTH"], "800000");
+ assert_eq!(a["CODECS"], "avc1.4d401f,mp4a.40.2");
+ assert_eq!(a["RESOLUTION"], "640x360");
+ assert_eq!(a["Y"], "2");
+ // An empty quoted value, a lowercase key and a quote not followed by a comma are no match.
+ assert!(!a.contains_key("NAME") && !a.contains_key("lower") && !a.contains_key("X"));
+ assert_eq!(resolution("1280x720").ok().flatten(), Some((1280, 720)));
+ assert_eq!(
+ resolution("w12 1920X1080").ok().flatten(),
+ Some((1920, 1080))
+ );
+ assert_eq!(resolution("none").ok().flatten(), None);
+ assert!(resolution("99999999999x1").is_err());
+ assert!(attributes(&"A=1,".repeat(MAX_ATTRIBUTES + 1)).is_none());
+ }
+
+ /// A crafted line can't make the search cost its square: a long run of key characters with
+ /// no `=`, or an unclosed quote again and again, comes back at once (refused when longer
+ /// than any real line), and a line just under the cap is read in linear time.
+ #[test]
+ fn crafted_attribute_lines_cost_no_square() {
+ let t = std::time::Instant::now();
+ for line in [
+ format!("#EXT-X-KEY:{}", "A".repeat(MAX_BYTES)),
+ format!("#EXT-X-KEY:{}", "A=\"".repeat(MAX_BYTES / 3)),
+ format!("#EXT-X-KEY:{}", "A".repeat(MAX_ATTRIBUTE_LINE - 20)),
+ format!(
+ "#EXT-X-KEY:METHOD=AES-128,{}",
+ "B".repeat(MAX_ATTRIBUTE_LINE - 40)
+ ),
+ ] {
+ let _ = attributes(&line);
+ }
+ assert!(
+ t.elapsed() < std::time::Duration::from_secs(1),
+ "{:?}",
+ t.elapsed()
+ );
+ assert!(attributes(&format!("#EXT-X-KEY:{}", "A".repeat(MAX_BYTES))).is_none());
+ // The run's skip changes nothing: a key after a failed run is still found.
+ let a = attributes("#EXT-X-KEY:AAAA BBB-9 METHOD=NONE").unwrap();
+ assert_eq!(a.get("METHOD").map(String::as_str), Some("NONE"));
+ }
+
+ #[test]
+ fn codecs_as_yt_dlp_reads_them() {
+ let c = |s: &str| codecs(Some(s)).ok().flatten();
+ let pair = |v: &str, a: &str| Some((v.to_owned(), a.to_owned()));
+ assert_eq!(c("avc1.4d401f,mp4a.40.2"), pair("avc1.4d401f", "mp4a.40.2"));
+ assert_eq!(c("AVC1.4D401F"), pair("avc1.4D401F", "none"));
+ assert_eq!(c(" mp4a.40.2, "), pair("none", "mp4a.40.2"));
+ assert_eq!(c("av01.0.05M.08,opus"), pair("av01.0.05M.08", "opus"));
+ assert_eq!(c("foo,bar"), pair("foo", "bar"));
+ assert_eq!(c("foo"), None);
+ assert!(codecs(Some("av01.0.09M.10")).is_err(), "HDR");
+ assert!(codecs(Some("vp09.02.10.10")).is_err(), "HDR");
+ assert!(codecs(Some("wvtt")).is_err());
+ assert_eq!(no_leading_zeros("vp09.02.10"), "vp9.2.10");
+ assert_eq!(no_leading_zeros("av01.0.05M"), "av1.0.5M");
+ assert_eq!(no_leading_zeros("a00.000"), "a0.0");
+ }
+
+ #[test]
+ fn titles_as_yt_dlp_names_streams() {
+ let t = |s: &str| title_of(&Url::parse(s).unwrap());
+ assert_eq!(
+ t("https://x.test/v/master.m3u8?t=1").as_deref(),
+ Some("master")
+ );
+ assert_eq!(
+ t("https://x.test/my%20clip.m3u8").as_deref(),
+ Some("my clip")
+ );
+ // The extension is taken off before decoding (`a%2Eb` keeps its dot).
+ assert_eq!(t("https://x.test/a%2Eb.m3u8").as_deref(), Some("a.b"));
+ assert_eq!(t("https://x.test/a.b.m3u8/").as_deref(), Some("a.b"));
+ assert_eq!(t("https://x.test/.m3u8").as_deref(), Some(".m3u8"));
+ assert_eq!(t("https://x.test/%FF.m3u8"), None);
+ }
+
+ /// No input makes the reading panic: lines, attributes, numbers and codecs out of order,
+ /// cut short, repeated, or random bytes.
+ #[test]
+ fn nothing_makes_it_panic() {
+ let bits = [
+ "#EXTM3U",
+ "\n",
+ "\r\n",
+ "\r",
+ "#EXT-X-STREAM-INF:",
+ "#EXT-X-MEDIA:",
+ "#EXTINF:",
+ "#EXT-X-ENDLIST",
+ "#EXT-X-KEY:",
+ "#EXT-X-I-FRAME-STREAM-INF:",
+ "BANDWIDTH=",
+ "AVERAGE-BANDWIDTH=",
+ "RESOLUTION=",
+ "FRAME-RATE=",
+ "CODECS=",
+ "AUDIO=",
+ "VIDEO=",
+ "TYPE=AUDIO",
+ "TYPE=SUBTITLES",
+ "TYPE=VIDEO",
+ "GROUP-ID=",
+ "NAME=",
+ "URI=",
+ "LANGUAGE=",
+ "METHOD=",
+ "\"",
+ ",",
+ "=",
+ "x",
+ "X",
+ "0",
+ "00",
+ "1280",
+ "720",
+ "-1",
+ "1e309",
+ "nan",
+ "1_0",
+ ".",
+ "..",
+ "/",
+ "//",
+ "http://",
+ "a.m3u8",
+ "%",
+ "%FF",
+ "é",
+ "\u{0}",
+ "\t",
+ " ",
+ "avc1.4d401f",
+ "mp4a.40.2",
+ "av01.0.05M.10",
+ "dvh1",
+ "vp09.02",
+ "foo",
+ ";",
+ ];
+ let url = Url::parse("https://cdn.test/v/master.m3u8").unwrap();
+ let mut seed: u64 = 0x9E37_79B9_7F4A_7C15;
+ let mut next = move || {
+ seed ^= seed << 13;
+ seed ^= seed >> 7;
+ seed ^= seed << 17;
+ seed
+ };
+ for _ in 0..20_000 {
+ let n = (next() % 60) as usize;
+ let mut text = String::new();
+ for _ in 0..n {
+ text.push_str(bits[(next() % bits.len() as u64) as usize]);
+ }
+ let bytes: Vec<u8> = (0..(next() % 80)).map(|_| next() as u8).collect();
+ for t in [
+ text.clone(),
+ String::from_utf8_lossy(&bytes).into_owned(),
+ format!("#EXTM3U\n#EXT-X-STREAM-INF:{text}"),
+ ] {
+ if let Some(m) = Master::parse(&t, &url) {
+ let _ = m.video(&t);
+ let _ = m.video(MEDIA);
+ }
+ let _ = attributes(&t);
+ let _ = codecs(Some(&t));
+ let _ = resolution(&t);
+ let _ = py_float(&t);
+ }
+ }
+ }
+
+ /// One request as a test server saw it: its path and headers (lowercase names).
+ #[derive(Clone, Debug)]
+ struct Seen {
+ path: String,
+ headers: Vec<(String, String)>,
+ }
+
+ impl Seen {
+ fn header(&self, name: &str) -> Option<&str> {
+ self.headers
+ .iter()
+ .find(|(n, _)| n == name)
+ .map(|(_, v)| v.as_str())
+ }
+ }
+
+ /// An answer: status, headers, body, sent after `wait`; `length`: with a Content-Length
+ /// (else the body ends with the connection).
+ struct Answer {
+ status: u16,
+ headers: Vec<(&'static str, String)>,
+ body: Vec<u8>,
+ wait: Duration,
+ length: bool,
+ }
+
+ fn ok(body: &str) -> Answer {
+ Answer {
+ status: 200,
+ headers: vec![("Content-Type", "application/vnd.apple.mpegurl".into())],
+ body: body.as_bytes().to_vec(),
+ wait: Duration::ZERO,
+ length: true,
+ }
+ }
+
+ fn moved(to: &str) -> Answer {
+ Answer {
+ status: 302,
+ headers: vec![("Location", to.to_owned())],
+ body: Vec::new(),
+ wait: Duration::ZERO,
+ length: true,
+ }
+ }
+
+ type Route = Arc<dyn Fn(&str) -> Answer + Send + Sync>;
+
+ /// A server on 127.0.0.1 answering each request by its path, keeping what it saw.
+ struct Server {
+ port: u16,
+ seen: Arc<Mutex<Vec<Seen>>>,
+ }
+
+ impl Server {
+ fn start(route: Route) -> Server {
+ let listener = std::net::TcpListener::bind("127.0.0.1:0").unwrap();
+ let port = listener.local_addr().unwrap().port();
+ let seen: Arc<Mutex<Vec<Seen>>> = Arc::default();
+ let kept = seen.clone();
+ std::thread::spawn(move || {
+ for stream in listener.incoming() {
+ let Ok(mut stream) = stream else { continue };
+ let (route, kept) = (route.clone(), kept.clone());
+ std::thread::spawn(move || {
+ let mut reader = BufReader::new(stream.try_clone().unwrap());
+ let mut first = String::new();
+ if reader.read_line(&mut first).is_err() {
+ return;
+ }
+ let path = first.split(' ').nth(1).unwrap_or_default().to_owned();
+ let mut headers = Vec::new();
+ loop {
+ let mut line = String::new();
+ if reader.read_line(&mut line).unwrap_or(0) == 0 {
+ break;
+ }
+ let line = line.trim_end();
+ if line.is_empty() {
+ break;
+ }
+ if let Some((n, v)) = line.split_once(':') {
+ headers.push((n.trim().to_ascii_lowercase(), v.trim().to_owned()));
+ }
+ }
+ kept.lock().unwrap().push(Seen {
+ path: path.clone(),
+ headers,
+ });
+ let a = route(&path);
+ std::thread::sleep(a.wait);
+ let mut head = format!("HTTP/1.1 {} X\r\nConnection: close\r\n", a.status);
+ for (n, v) in &a.headers {
+ head.push_str(&format!("{n}: {v}\r\n"));
+ }
+ if a.length {
+ head.push_str(&format!("Content-Length: {}\r\n", a.body.len()));
+ }
+ head.push_str("\r\n");
+ let _ = stream.write_all(head.as_bytes());
+ for chunk in a.body.chunks(64 * 1024) {
+ if stream.write_all(chunk).is_err() {
+ return;
+ }
+ }
+ // The body ends here (none has a length of its own then).
+ let _ = stream.flush();
+ let _ = stream.shutdown(std::net::Shutdown::Write);
+ let _ = stream.set_read_timeout(Some(Duration::from_millis(200)));
+ let _ = reader.read_to_end(&mut Vec::new());
+ });
+ }
+ });
+ Server { port, seen }
+ }
+
+ fn url(&self, path: &str) -> String {
+ format!("http://127.0.0.1:{}{path}", self.port)
+ }
+
+ fn seen(&self) -> Vec<Seen> {
+ self.seen.lock().unwrap().clone()
+ }
+ }
+
+ fn browser() -> FromBrowser {
+ FromBrowser {
+ referer: Some("https://videos.test/watch".into()),
+ user_agent: Some("UA/1".into()),
+ cookies: Some("sid=secret".into()),
+ jar: vec![mdm_ipc::BrowserCookie {
+ name: "jar".into(),
+ value: "never".into(),
+ domain: "127.0.0.1".into(),
+ ..Default::default()
+ }],
+ }
+ }
+
+ fn fetch_now(url: &str, budget: Duration) -> Option<Video> {
+ let rt = tokio::runtime::Runtime::new().unwrap();
+ let opts = crate::net(mdm_engine::Proxy::None);
+ rt.block_on(fetch_within(url, &browser(), &opts, budget))
+ }
+
+ /// The stream as the browser asked for it: its cookie header (never the jar), its page as
+ /// the referrer, its User-Agent, on both requests to the stream's server.
+ #[test]
+ fn the_stream_is_asked_for_as_the_browser_did() {
+ let s = Server::start(Arc::new(|path: &str| match path {
+ "/v/master.m3u8" => ok(MASTER),
+ "/v/v720.m3u8" => ok(MEDIA),
+ _ => Answer {
+ status: 404,
+ ..ok("")
+ },
+ }));
+ let v = fetch_now(&s.url("/v/master.m3u8"), BUDGET).unwrap();
+ assert_eq!(v.title, "master");
+ let seen = s.seen();
+ assert_eq!(
+ seen.iter().map(|r| r.path.as_str()).collect::<Vec<_>>(),
+ ["/v/master.m3u8", "/v/v720.m3u8"]
+ );
+ for r in &seen {
+ assert_eq!(r.header("cookie"), Some("sid=secret"));
+ assert_eq!(r.header("referer"), Some("https://videos.test/watch"));
+ assert_eq!(r.header("user-agent"), Some("UA/1"));
+ }
+ // Not a playlist's address: not even asked.
+ assert!(fetch_now(&s.url("/v/master.mpd"), BUDGET).is_none());
+ assert_eq!(s.seen().len(), 2);
+ }
+
+ /// A redirect to another port (another server) takes the browser's cookie and referrer
+ /// away, for good: not even back on the stream's own server, nor for the second request.
+ /// The stream is named after where the redirects led, as yt-dlp names it.
+ #[test]
+ fn a_redirect_elsewhere_carries_no_cookie() {
+ let other = Server::start(Arc::new(|path: &str| match path {
+ "/repeated.m3u8" => ok(&fixture("redirect", "master.m3u8")),
+ "/v/v720.m3u8" => ok(&fixture("redirect", "media.m3u8")),
+ _ => Answer {
+ status: 404,
+ ..ok("")
+ },
+ }));
+ let to = other.url("/repeated.m3u8");
+ let first = Server::start(Arc::new(move |path: &str| match path {
+ "/r/start.m3u8" => moved("/r/same.m3u8"),
+ "/r/same.m3u8" => moved(&to),
+ _ => Answer {
+ status: 404,
+ ..ok("")
+ },
+ }));
+ let v = fetch_now(&first.url("/r/start.m3u8"), BUDGET).unwrap();
+ let theirs = crate::resolve::parse(fixture("redirect", "ytdlp.json").as_bytes()).unwrap();
+ assert_eq!(
+ v,
+ Video {
+ language: None,
+ ..theirs
+ }
+ );
+ // On the stream's own server, through a redirect there: the cookie and the referrer.
+ for r in first.seen() {
+ assert_eq!(r.header("cookie"), Some("sid=secret"), "{}", r.path);
+ assert_eq!(r.header("referer"), Some("https://videos.test/watch"));
+ }
+ let elsewhere = other.seen();
+ assert_eq!(elsewhere.len(), 2);
+ for r in &elsewhere {
+ assert_eq!(r.header("cookie"), None, "{}", r.path);
+ assert_eq!(r.header("referer"), None, "{}", r.path);
+ assert_eq!(r.header("user-agent"), Some("UA/1"));
+ }
+ // Back to the stream's server after another: still none.
+ let back = Arc::new(Mutex::new(String::new()));
+ let back2 = back.clone();
+ let bouncer = Server::start(Arc::new(move |_: &str| moved(&back2.lock().unwrap())));
+ let bounce = bouncer.url("/x.m3u8");
+ let home = Server::start(Arc::new(move |path: &str| match path {
+ "/start.m3u8" => moved(&bounce),
+ "/master.m3u8" => ok(MASTER),
+ "/v720.m3u8" => ok(MEDIA),
+ _ => Answer {
+ status: 404,
+ ..ok("")
+ },
+ }));
+ *back.lock().unwrap() = home.url("/master.m3u8");
+ assert!(fetch_now(&home.url("/start.m3u8"), BUDGET).is_some());
+ let seen = home.seen();
+ assert_eq!(seen[0].header("cookie"), Some("sid=secret"));
+ assert!(
+ seen[1..]
+ .iter()
+ .all(|r| r.header("cookie").is_none() && r.header("referer").is_none()),
+ "{seen:?}"
+ );
+ assert_eq!(seen.len(), 3);
+ // Five redirects at most.
+ let looping = Server::start(Arc::new(|path: &str| {
+ let n: u32 = path
+ .trim_start_matches("/r")
+ .trim_end_matches(".m3u8")
+ .parse()
+ .unwrap_or(0);
+ if n < 6 {
+ moved(&format!("/r{}.m3u8", n + 1))
+ } else {
+ ok(MASTER)
+ }
+ }));
+ assert!(fetch_now(&looping.url("/r0.m3u8"), BUDGET).is_none());
+ assert_eq!(looping.seen().len(), 6);
+ }
+
+ /// More than 2 MB, counted as it comes (with no Content-Length to go by), and 5 s for both
+ /// requests together, are too much: nothing then.
+ #[test]
+ fn too_big_or_too_slow_is_nothing() {
+ let padded = |size: usize| {
+ let mut text = MASTER.to_owned();
+ while text.len() < size {
+ text.push_str(
+ "#EXT-X-PADDING:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n",
+ );
+ }
+ text
+ };
+ let s = Server::start(Arc::new(move |path: &str| match path {
+ "/small.m3u8" => Answer {
+ length: false,
+ ..ok(&padded(MAX_BYTES - 1000))
+ },
+ "/big.m3u8" => Answer {
+ length: false,
+ ..ok(&padded(MAX_BYTES + 1))
+ },
+ "/v720.m3u8" => ok(MEDIA),
+ "/slow/master.m3u8" => Answer {
+ wait: Duration::from_millis(250),
+ ..ok(MASTER)
+ },
+ "/slow/v720.m3u8" => Answer {
+ wait: Duration::from_millis(250),
+ ..ok(MEDIA)
+ },
+ _ => Answer {
+ status: 404,
+ ..ok("")
+ },
+ }));
+ assert!(
+ fetch_now(&s.url("/small.m3u8"), BUDGET).is_some(),
+ "under 2 MB"
+ );
+ assert!(
+ fetch_now(&s.url("/big.m3u8"), BUDGET).is_none(),
+ "over 2 MB"
+ );
+ // Each request alone fits in 400 ms; both don't.
+ assert!(fetch_now(&s.url("/slow/master.m3u8"), Duration::from_millis(1000)).is_some());
+ let at = std::time::Instant::now();
+ assert!(fetch_now(&s.url("/slow/master.m3u8"), Duration::from_millis(400)).is_none());
+ assert!(at.elapsed() < Duration::from_millis(900));
+ }
+}
diff --git a/crates/tools/src/resolve.rs b/crates/tools/src/resolve.rs
index 3f83ec65..432dbb9a 100644
--- a/crates/tools/src/resolve.rs
+++ b/crates/tools/src/resolve.rs
@@ -121,6 +121,25 @@ fn tracks(raw: Option<std::collections::BTreeMap<String, Vec<RawSub>>>) -> Vec<T
out
}
+/// Subtitle languages that come without names, as yt-dlp lists an HLS stream's (`de`, `und`):
+/// what [`tracks`] makes of them (`crate::manifest`).
+pub(crate) fn unnamed_tracks(codes: impl IntoIterator<Item = String>) -> Vec<Track> {
+ tracks(Some(
+ codes
+ .into_iter()
+ .map(|code| (code, vec![RawSub { name: None }]))
+ .collect(),
+ ))
+}
+
+/// The size of `duration` seconds at `tbr` kbit/s (kbit/s × 125 = bytes/s), as yt-dlp's
+/// `filesize_from_tbr` reckons it: the same operations in the same order, so a stream's variants
+/// come out the same whether yt-dlp listed them or MDM read the stream itself
+/// (`crate::manifest`).
+pub(crate) fn estimate(duration: f64, tbr: f64) -> u64 {
+ (duration * tbr * 125.0) as u64
+}
+
#[derive(Deserialize)]
struct RawFormat {
format_id: String,
@@ -155,6 +174,17 @@ pub fn parse(json: &[u8]) -> Option<Video> {
// yt-dlp: "none" means the stream isn't there; a missing codec is just unknown (plain
// files on generic sites carry both).
let has = |c: &Option<String>| c.as_deref() != Some("none");
+ // An HLS stream's variants give their bitrate (BANDWIDTH) but no size, though yt-dlp knows
+ // the duration: about bitrate × duration (kbit/s × 125 = bytes/s), as IDM shows it. A live
+ // stream has no duration, and stays without one. Never for a plain file, whose server says
+ // its exact size (`needs_size`, #320).
+ let duration = raw
+ .duration
+ .filter(|d| d.is_finite() && *d > 0.0 && !raw.direct);
+ let estimate = |tbr: Option<f64>| {
+ let tbr = tbr.filter(|t| t.is_finite() && *t > 0.0)?;
+ Some(estimate(duration?, tbr))
+ };
Some(Video {
title: raw.title.unwrap_or_else(|| "video".into()),
duration: raw.duration,
@@ -168,7 +198,7 @@ pub fn parse(json: &[u8]) -> Option<Video> {
ext: f.ext.unwrap_or_default(),
height: f.height,
fps: f.fps,
- size: f.filesize.or(f.filesize_approx),
+ size: f.filesize.or(f.filesize_approx).or_else(|| estimate(f.tbr)),
tbr: f.tbr,
hls: f.protocol.as_deref().is_some_and(|p| p.contains("m3u8")),
})
@@ -267,11 +297,25 @@ pub fn parse_looked(json: &[u8]) -> Option<Looked> {
parse(json).map(Looked::Video)
}
+/// How long one yt-dlp look-up may take. `proc::look_up` may run it twice (the second time
+/// without the cookies, #352).
+pub const LOOK_UP_TIMEOUT: Duration = Duration::from_secs(90);
+
/// Look `url` up with yt-dlp: one video (`--no-playlist`: a video in a playlist is that video),
/// or, for a page that is a list, only what it is and its first entry, flat (#69: never every
/// video of a 6,000-long playlist at once; `--flat-playlist -I 1:1` doesn't change a video's
/// look-up).
pub fn look_up(exe: &Path, url: &str, browser: &proc::FromBrowser) -> Result<Looked, ProcError> {
+ look_up_kept(exe, url, browser).map(|(looked, _)| looked)
+}
+
+/// [`look_up`], with yt-dlp's answer as it gave it: the browser's quality menu keeps it for the
+/// download chosen there, which then doesn't read the page again (`video::Preloaded`).
+pub fn look_up_kept(
+ exe: &Path,
+ url: &str,
+ browser: &proc::FromBrowser,
+) -> Result<(Looked, proc::LookedUp), ProcError> {
let mut args: Vec<String> = [
"-J",
"--no-playlist",
@@ -285,11 +329,12 @@ pub fn look_up(exe: &Path, url: &str, browser: &proc::FromBrowser) -> Result<Loo
// Kept until yt-dlp has answered.
let (theirs, _cookies) = browser.args(url)?;
args.extend(theirs);
- let out = proc::look_up(exe, &args, url, Duration::from_secs(90))?;
- parse_looked(&out.json).ok_or_else(|| ProcError::Failed {
+ let out = proc::look_up(exe, &args, url, LOOK_UP_TIMEOUT)?;
+ let looked = parse_looked(&out.json).ok_or_else(|| ProcError::Failed {
tool: "yt-dlp".into(),
message: "it gave no video information".into(),
- })
+ })?;
+ Ok((looked, out))
}
/// Look `url` up as one video (a list is an error here).
@@ -634,6 +679,41 @@ mod tests {
{"format_id": "299", "ext": "mp4", "height": 1080, "fps": 60, "vcodec": "avc1", "acodec": "none", "filesize_approx": 60000000}
]}"#;
+ /// An HLS master playlist as yt-dlp reads it (checked with yt-dlp 2026.10.26): each variant's
+ /// bitrate and the duration, no size; sized as bitrate × duration. A live one stays unsized.
+ #[test]
+ fn hls_variants_are_sized_from_their_bitrate() {
+ const HLS: &str = r#"{"title": "master", "duration": 600, "formats": [
+ {"format_id": "800", "ext": "mp4", "height": 360, "tbr": 800.0, "protocol": "m3u8_native"},
+ {"format_id": "2500", "ext": "mp4", "height": 720, "tbr": 2500.0, "protocol": "m3u8_native"}]}"#;
+ let v = parse(HLS.as_bytes()).unwrap();
+ let sizes: Vec<_> = choices(&v, true)
+ .into_iter()
+ .filter(|c| !c.label.starts_with("Audio only"))
+ .map(|c| (c.label, c.size))
+ .collect();
+ assert_eq!(
+ sizes,
+ [
+ ("720p MP4".to_owned(), Some(187_500_000)),
+ ("360p MP4".to_owned(), Some(60_000_000))
+ ]
+ );
+ let live = HLS.replace(r#""duration": 600, "#, "");
+ let v = parse(live.as_bytes()).unwrap();
+ assert!(v.formats.iter().all(|f| f.size.is_none()), "live: no size");
+ // A size yt-dlp gives wins over the estimate.
+ let given = HLS.replace(r#""tbr": 800.0"#, r#""tbr": 800.0, "filesize": 123"#);
+ let v = parse(given.as_bytes()).unwrap();
+ assert_eq!(v.formats[0].size, Some(123));
+ // A plain file's size is its server's to say (#320), never estimated.
+ let direct = HLS.replace(
+ r#""duration": 600, "#,
+ r#""duration": 600, "direct": true, "#,
+ );
+ assert!(parse(direct.as_bytes()).unwrap().needs_size());
+ }
+
#[test]
fn choices_with_and_without_merging() {
let v = parse(SAMPLE.as_bytes()).unwrap();
diff --git a/crates/tools/src/video.rs b/crates/tools/src/video.rs
index fd0975f7..e762bd4f 100644
--- a/crates/tools/src/video.rs
+++ b/crates/tools/src/video.rs
@@ -1,12 +1,15 @@
//! A video download run by yt-dlp under supervision: our file name, progress read from a fixed
//! `--progress-template`, the final path from `--print after_move`. Stopping kills it; starting
-//! again continues (`--continue`). Each start looks the page up afresh (`-J`), points links at
+//! again continues (`--continue`). Each run takes the page as looked up (`-J`), points links at
//! servers that answer ([`crate::servers`]) and downloads from that list (`--load-info-json`),
-//! so the page is read once.
+//! so a run reads the page once. A run looks the page up afresh, except the first run of a
+//! download chosen in the browser's quality menu, which takes the look-up the menu was made from
+//! ([`Preloaded`]): the page is then read once for the menu and the download together.
use std::io::{BufRead, BufReader};
use std::path::{Path, PathBuf};
-use std::sync::{Arc, Mutex};
+use std::sync::{Arc, Condvar, Mutex};
+use std::time::{Duration, Instant};
use crate::proc::{self, ProcError};
use crate::servers;
@@ -216,6 +219,308 @@ fn side_files(video: &Path) -> Vec<PathBuf> {
out
}
+/// How long the browser's quality menu's look-up may take: a stream's playlists
+/// (`crate::manifest`, 5 s), yt-dlp's look-up and its second one without the cookies
+/// (`proc::look_up`, 90 s each), and a little more. The download chosen there waits for it that
+/// long at most, and a second click shares a look-up still running that long (the app's
+/// videolookup.rs).
+pub const LOOKUP_WAIT: Duration = Duration::from_secs(
+ crate::manifest::BUDGET.as_secs() + 2 * crate::resolve::LOOK_UP_TIMEOUT.as_secs() + 5,
+);
+
+/// The largest look-up kept for the download (a page's is a few hundred KB, YouTube's a few MB):
+/// a bigger one isn't kept, and the download looks the page up itself.
+pub const INFO_MAX: usize = 8 * 1024 * 1024;
+
+/// All the look-ups kept at once, together: past it, the oldest are let go (their downloads look
+/// the page up themselves). Twenty look-ups are kept for ten minutes (videolookup.rs), and
+/// [`INFO_MAX`] each would be 160 MB.
+pub const INFO_TOTAL: usize = 32 * 1024 * 1024;
+
+/// The look-ups' answers kept, oldest first, with their sizes: what [`INFO_TOTAL`] counts. A
+/// look-up no longer kept anywhere (its slot dropped) counts no more.
+struct Kept {
+ limit: usize,
+ answers: Mutex<std::collections::VecDeque<(std::sync::Weak<SlotInner>, usize)>>,
+}
+
+impl Kept {
+ fn new(limit: usize) -> Arc<Kept> {
+ Arc::new(Kept {
+ limit,
+ answers: Mutex::default(),
+ })
+ }
+
+ /// Every look-up's: the process's own pool.
+ fn shared() -> Arc<Kept> {
+ static POOL: std::sync::LazyLock<Arc<Kept>> =
+ std::sync::LazyLock::new(|| Kept::new(INFO_TOTAL));
+ POOL.clone()
+ }
+
+ /// `slot` keeps an answer of `len` bytes now: the oldest others are let go while all of
+ /// them together are more than the limit.
+ fn add(&self, slot: &Arc<SlotInner>, len: usize) {
+ let mut answers = self.answers.lock().unwrap_or_else(|e| e.into_inner());
+ answers.retain(|(s, _)| s.strong_count() > 0);
+ answers.push_back((Arc::downgrade(slot), len));
+ let mut total: usize = answers.iter().map(|(_, n)| n).sum();
+ while total > self.limit && answers.len() > 1 {
+ let Some((oldest, n)) = answers.pop_front() else {
+ break;
+ };
+ total -= n;
+ if let Some(s) = oldest.upgrade() {
+ s.let_go();
+ }
+ }
+ }
+}
+
+/// yt-dlp's look-up (`-J`) of a page for the browser's quality menu, kept for the download
+/// chosen from it: being looked up, done (the answer as yt-dlp gave it, and whether it took
+/// looking the page up without cookies), or failed. In memory only, never written or logged
+/// (its links are signed): its `Debug` shows nothing of it.
+#[derive(Clone)]
+pub struct InfoSlot(Arc<SlotInner>);
+
+struct SlotInner {
+ info: Mutex<Info>,
+ changed: Condvar,
+ born: Instant,
+ /// Where its answer counts ([`INFO_TOTAL`]).
+ pool: Arc<Kept>,
+}
+
+impl SlotInner {
+ /// Its answer dropped to make room: as if the look-up had failed.
+ fn let_go(&self) {
+ let mut info = self.info.lock().unwrap_or_else(|e| e.into_inner());
+ if matches!(*info, Info::Ready(..)) {
+ *info = Info::Failed;
+ self.changed.notify_all();
+ }
+ }
+}
+
+enum Info {
+ Pending,
+ Ready(Arc<Vec<u8>>, bool),
+ Failed,
+}
+
+impl std::fmt::Debug for InfoSlot {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ f.write_str("InfoSlot")
+ }
+}
+
+impl InfoSlot {
+ /// A look-up begun at `born`.
+ pub fn new(born: Instant) -> Self {
+ Self::counted_in(born, Kept::shared())
+ }
+
+ fn counted_in(born: Instant, pool: Arc<Kept>) -> Self {
+ InfoSlot(Arc::new(SlotInner {
+ info: Mutex::new(Info::Pending),
+ changed: Condvar::new(),
+ born,
+ pool,
+ }))
+ }
+
+ pub fn born(&self) -> Instant {
+ self.0.born
+ }
+
+ fn info(&self) -> std::sync::MutexGuard<'_, Info> {
+ self.0.info.lock().unwrap_or_else(|e| e.into_inner())
+ }
+
+ /// yt-dlp answered with `json` (`without_cookies`: as `proc::LookedUp` says). Bigger than
+ /// [`INFO_MAX`]: as if it had failed; the oldest others are let go past [`INFO_TOTAL`]. Only
+ /// a look-up still pending takes it.
+ pub fn fill(&self, json: Vec<u8>, without_cookies: bool) {
+ let len = json.len();
+ {
+ let mut info = self.info();
+ if !matches!(*info, Info::Pending) {
+ return;
+ }
+ *info = if len > INFO_MAX {
+ Info::Failed
+ } else {
+ Info::Ready(Arc::new(json), without_cookies)
+ };
+ self.0.changed.notify_all();
+ }
+ // Not under its own lock: letting another go locks that one.
+ if len <= INFO_MAX {
+ self.0.pool.add(&self.0, len);
+ }
+ }
+
+ /// The look-up failed (or ended without an answer): the download looks the page up itself.
+ pub fn fail(&self) {
+ let mut info = self.info();
+ if matches!(*info, Info::Pending) {
+ *info = Info::Failed;
+ self.0.changed.notify_all();
+ }
+ }
+
+ pub fn pending(&self) -> bool {
+ matches!(*self.info(), Info::Pending)
+ }
+
+ /// How many hold this look-up (the menu's, the download chosen from it): a check that a
+ /// choice let go of it.
+ pub fn holders(&self) -> usize {
+ Arc::strong_count(&self.0)
+ }
+
+ /// The answer once there, waiting until `until` at most, or until `stopped` says so.
+ fn wait(&self, until: Instant, stopped: impl Fn() -> bool) -> Option<(Arc<Vec<u8>>, bool)> {
+ let mut info = self.info();
+ loop {
+ match &*info {
+ Info::Ready(json, without) => return Some((json.clone(), *without)),
+ Info::Failed => return None,
+ Info::Pending => {}
+ }
+ let now = Instant::now();
+ if now >= until || stopped() {
+ return None;
+ }
+ // A tenth of a second at a time: a Stop meanwhile is seen at once.
+ let step = (until - now).min(Duration::from_millis(100));
+ info = self
+ .0
+ .changed
+ .wait_timeout(info, step)
+ .unwrap_or_else(|e| e.into_inner())
+ .0;
+ }
+ }
+}
+
+/// The browser's quality menu's look-up for the download chosen there (its first run only):
+/// the look-up, and the choice as the menu offered it (MDM's selector, its label, untranslated,
+/// and whether the menu's list had merged qualities). The page yt-dlp read must offer that very
+/// choice, or the run looks the page up itself.
+pub struct Preloaded {
+ pub slot: InfoSlot,
+ pub selector: String,
+ pub label: String,
+ pub merge: bool,
+}
+
+/// How a run tells whether a media server can be reached and serves a stream, in place of
+/// `servers::reachable` and `servers::Prober` (which ask the servers): set by tests only
+/// (tests/fake_ytdlp.rs), whose servers must never be asked.
+type ServerChecks = (fn(&str) -> bool, fn(&str) -> bool);
+
+static SERVER_CHECKS: std::sync::RwLock<Option<ServerChecks>> = std::sync::RwLock::new(None);
+
+/// Tests only: media servers `alive` says are reachable, serving every stream `serves` says.
+#[doc(hidden)]
+pub fn check_servers_with(alive: fn(&str) -> bool, serves: fn(&str) -> bool) {
+ *SERVER_CHECKS.write().unwrap_or_else(|e| e.into_inner()) = Some((alive, serves));
+}
+
+/// yt-dlp's look-up `json` as a run's page, when it offers `selector` under `label` among its
+/// choices (`resolve::choices` with `merge`): the menu offered that very choice from it.
+fn offered(json: &[u8], selector: &str, label: &str, merge: bool) -> Option<serde_json::Value> {
+ let video = crate::resolve::parse(json)?;
+ crate::resolve::choices(&video, merge)
+ .iter()
+ .any(|c| c.selector == selector && c.label == label)
+ .then(|| serde_json::from_slice(json).ok())
+ .flatten()
+}
+
+/// The containers and sounds yt-dlp saves (`%(ext)s`), merged, converted or as the site has them.
+const MEDIA: [&str; 19] = [
+ "mp4", "m4a", "m4v", "webm", "weba", "mkv", "mka", "mov", "flv", "3gp", "ts", "mp3", "opus",
+ "ogg", "oga", "flac", "wav", "aac", "avi",
+];
+/// The subtitle files yt-dlp saves beside a video (#68).
+const SUBTITLES: [&str; 10] = [
+ "srt", "vtt", "ass", "ssa", "ttml", "srv1", "srv2", "srv3", "json3", "lrc",
+];
+
+/// Whether `rest`, a file name after `<stem>.` (lower case), is one yt-dlp writes for a download
+/// saved as `<stem>.%(ext)s`: an unfinished run's (`<ext>.part`, `<ext>.ytdl`,
+/// `<ext>.part-Frag<N>[.part]`, each also for one stream of a merged choice as `f<id>.<ext>…`,
+/// that stream once whole, `f<id>.<ext>`, and a merge's `temp.<ext>`); with `outputs`, also the
+/// finished file (`<ext>`) and its subtitles (`<language>.<srt|vtt…>`). Nothing else: another
+/// download's files (MDM's own `.mdm.part`), a file merely named alike.
+fn yt_dlp_leftover(rest: &str, outputs: bool) -> bool {
+ let media = |s: &str| MEDIA.contains(&s);
+ let word = |s: &str| {
+ !s.is_empty()
+ && s.chars()
+ .all(|c| c.is_ascii_alphanumeric() || c == '-' || c == '_')
+ };
+ // A format id as yt-dlp names a stream: `137`, `hls-720p`, `dash-1`, `http-480`.
+ let format = |s: &str| {
+ s.strip_prefix('f').is_some_and(|id| {
+ word(id)
+ && (id.starts_with(|c: char| c.is_ascii_digit())
+ || ["hls-", "dash-", "http-"].iter().any(|p| {
+ id.strip_prefix(p)
+ .is_some_and(|r| r.chars().any(|c| c.is_ascii_digit()))
+ }))
+ })
+ };
+ let fragment = |s: &str| {
+ s.strip_prefix("part-frag")
+ .is_some_and(|n| !n.is_empty() && n.chars().all(|c| c.is_ascii_digit()))
+ };
+ let parts: Vec<&str> = rest.split('.').collect();
+ // An unfinished file: `<ext>` then `part`, `ytdl`, `part-frag<N>` or `part-frag<N>.part`.
+ let unfinished = |p: &[&str]| match p {
+ [ext, "part" | "ytdl"] => media(ext),
+ [ext, frag] => media(ext) && fragment(frag),
+ [ext, frag, "part"] => media(ext) && fragment(frag),
+ _ => false,
+ };
+ let working = match parts.as_slice() {
+ ["temp", ext] => media(ext),
+ [f, ext] if format(f) => media(ext),
+ [f, tail @ ..] if format(f) => unfinished(tail),
+ p => unfinished(p),
+ };
+ let finished = outputs
+ && match parts.as_slice() {
+ [ext] => media(ext),
+ [language, sub] => word(language) && SUBTITLES.contains(sub),
+ _ => false,
+ };
+ working || finished
+}
+
+/// What yt-dlp left in `dir` for a download saved as `<stem>.%(ext)s` (our template), as
+/// [`yt_dlp_leftover`] tells them, letter case aside: what an unfinished run left, and with
+/// `outputs` the finished file and its subtitles. A file not of that shape is left alone.
+pub fn own_files(dir: &Path, stem: &str, outputs: bool) -> Vec<PathBuf> {
+ let prefix = format!("{}.", stem.to_lowercase());
+ let Ok(rd) = std::fs::read_dir(dir) else {
+ return Vec::new();
+ };
+ rd.filter_map(Result::ok)
+ .filter(|e| e.file_type().is_ok_and(|t| t.is_file()))
+ .filter(|e| {
+ let name = e.file_name().to_string_lossy().to_lowercase();
+ name.strip_prefix(&prefix)
+ .is_some_and(|rest| yt_dlp_leftover(rest, outputs))
+ })
+ .map(|e| e.path())
+ .collect()
+}
+
pub struct VideoJob {
/// yt-dlp once the page is looked up (`None` before).
child: Arc<Mutex<Option<proc::Spawned>>>,
@@ -323,7 +628,10 @@ fn supervise(
child: &Child,
expected: Option<u64>,
retry: Option<&SubsRetry>,
+ preloaded: Option<Preloaded>,
) {
+ // The first run only: a run after it looks the page up afresh (links expire).
+ let mut preloaded = preloaded;
let mut ours = ours.to_vec();
let mut dead: std::collections::BTreeSet<String> = Default::default();
let mut looked_again = false;
@@ -331,8 +639,19 @@ fn supervise(
let mut reroute = true;
let mut last = String::from("yt-dlp stopped");
for _ in 0..5 {
+ let page = preloaded.take();
match attempt(
- exe, url, &ours, browser, progress, child, expected, retry, &dead, reroute,
+ exe,
+ url,
+ &ours,
+ browser,
+ progress,
+ child,
+ expected,
+ retry,
+ &dead,
+ reroute,
+ page.as_ref(),
) {
Attempt::Stopped => return,
Attempt::Done(f, problems, quality) => {
@@ -422,18 +741,38 @@ fn supervise(
/// stay what they are.
pub const MAX_WHILE_RUNNING: f64 = 0.999;
-/// yt-dlp's progress lines (`MDMP <downloaded> <total> <estimate> <speed>`) made into one
-/// steady figure. Each stream of a merged download (video, then audio) reports from 0 with its
-/// own total, and a fragmented stream's total (HLS, DASH) is an estimate that moves with every
-/// fragment: the streams are added up, the total never falls below the size the video window
-/// showed (`expected`, every stream), and the fraction done goes back only when a stream's end
-/// had looked like the whole (no `expected`, the next stream starts).
+/// yt-dlp's progress lines (`MDMP <downloaded> <total> <estimate> <speed> <format id>`) made
+/// into one steady figure. Each stream of a merged download (video, then audio) reports from 0
+/// with its own total, and a fragmented stream's total (HLS, DASH) is an estimate that moves with
+/// every fragment: the streams are added up, and the fraction done goes back only when a stream's
+/// end had looked like the whole (no `expected`, the next stream starts).
+///
+/// The size the video window showed (`expected`, every stream) holds the total up until the last
+/// stream: a stream's end before it never looks like the whole download (#344). That size is
+/// often an estimate (an HLS stream's bitrate, a peak, times its length) well above what comes:
+/// in the last stream, once yt-dlp knows that stream's own total, the total is what came before
+/// and that stream's, so the bar reaches the end. Which streams there are, yt-dlp says before it
+/// downloads ([`Meter::quality`]), and each line names the one it is for ([`Meter::named`]).
+///
+/// A line named otherwise (no `MDMQ`, an id it didn't name, `NA`) is read as before: back near 0
+/// is the next stream, never counted as one of `MDMQ`'s, and the window's size holds the total.
+/// Subtitle files come before the video with lines of their own, `NA` (#68): what they brought
+/// leaves the bar when the first stream's line comes.
///
/// Pieces fetched several at once ([`pace_args`]) report from each at its turn: the count can
/// step back a little, which isn't a new stream (#531: one taken for it added a 25 MB estimate,
/// and a 6 MB video read 66 MB). Then only a fall to under half of it, by 64 KB or more, is.
struct Meter {
expected: Option<u64>,
+ /// `MDMQ`'s format id and resolution (`137+140 1920x1080`), once yt-dlp has said.
+ quality: Option<String>,
+ /// The stream the lines are for now (its format id), how many of `MDMQ`'s streams have
+ /// started, and whether a line was for all of them at once (`137+140`).
+ current: Option<String>,
+ started: usize,
+ all_at_once: bool,
+ /// Every line so far said `NA` for its format id (subtitle files).
+ only_na: bool,
/// Pieces at once: the count may step back.
at_once: bool,
/// The streams already finished, and the current one's last total and bytes.
@@ -448,6 +787,11 @@ impl Meter {
fn new(expected: Option<u64>, at_once: bool) -> Self {
Meter {
expected: expected.filter(|e| *e > 0),
+ quality: None,
+ current: None,
+ started: 0,
+ all_at_once: false,
+ only_na: true,
at_once,
finished: 0,
last_total: 0,
@@ -456,28 +800,101 @@ impl Meter {
}
}
+ /// yt-dlp's `MDMQ <format id> <resolution>` ([`QUALITY`]): a merged choice's id names each
+ /// stream (`137+140`).
+ fn quality(&mut self, rest: &str) {
+ let rest = rest.trim();
+ self.quality = (!rest.is_empty()).then(|| rest.to_owned());
+ }
+
+ /// How many streams `MDMQ` named.
+ fn streams(&self) -> Option<usize> {
+ self.quality.as_ref().map(|q| q.split('+').count())
+ }
+
+ /// Whether a line's format `id` is one of the streams `MDMQ` named (`137` of `137+140`;
+ /// false), or all of them at once (`137+140`, as ffmpeg downloads and merges them; true).
+ /// None for any other: none named, `NA`, an id `MDMQ` didn't name, no `MDMQ`.
+ fn named<'a>(&self, id: Option<&'a str>) -> Option<(&'a str, bool)> {
+ let (q, id) = (self.quality.as_deref()?, id.filter(|id| *id != "NA")?);
+ // The id, then the resolution after the last one (one word, or two: `audio only`).
+ let is = |s: &str| {
+ s.strip_prefix(id)
+ .is_some_and(|r| r.is_empty() || r.starts_with(' '))
+ };
+ if q.split('+').any(is) {
+ Some((id, false))
+ } else {
+ is(q).then_some((id, true))
+ }
+ }
+
+ /// The next stream started: the one before counts in full.
+ fn next_stream(&mut self) {
+ self.finished += self.last_total.max(self.last_got);
+ self.last_total = 0;
+ self.last_got = 0;
+ // Without the whole size from the start, the first stream's end looked like the
+ // whole download: the next stream's total pulls the bar back (#344).
+ if self.expected.is_none() {
+ self.frac = 0.0;
+ }
+ }
+
fn line(&mut self, rest: &str, p: &mut Progress) {
- let f: Vec<Option<f64>> = rest.split_whitespace().map(|v| v.parse().ok()).collect();
- let got = f.first().copied().flatten().unwrap_or(0.0).max(0.0) as u64;
+ let fields: Vec<&str> = rest.trim().splitn(5, ' ').collect();
+ let f: Vec<Option<f64>> = fields.iter().take(4).map(|v| v.parse().ok()).collect();
+ let mut got = f.first().copied().flatten().unwrap_or(0.0).max(0.0) as u64;
let total = f
.get(1)
.copied()
.flatten()
.or(f.get(2).copied().flatten())
.map(|t| t.max(0.0) as u64);
- // Back near 0: the next stream started; the one before counts in full.
- let next_stream = if self.at_once {
- got.saturating_mul(2) < self.last_got && self.last_got - got >= 64 * 1024
- } else {
- got < self.last_got
- };
- if next_stream && self.last_got > 0 {
- self.finished += self.last_total.max(self.last_got);
- self.last_total = 0;
- // Without the whole size from the start, the first stream's end looked like the
- // whole download: the next stream's total pulls the bar back (#344).
- if self.expected.is_none() {
- self.frac = 0.0;
+ let id = fields
+ .get(4)
+ .map(|id| id.trim())
+ .filter(|id| !id.is_empty());
+ let named = self.named(id);
+ match named {
+ // Each stream by its own id: a count from 0 again within one (a retry from the
+ // start) is not the next stream, and the bar waits there until it is back where it
+ // was.
+ Some((id, _)) if self.current.as_deref() == Some(id) => {
+ got = got.max(self.last_got);
+ }
+ Some((id, all)) => {
+ if self.only_na {
+ // Subtitle files came first (#68): theirs are not the video's bytes (the bar
+ // gives back their share of the whole, a sliver beside a video's).
+ self.finished = 0;
+ self.last_total = 0;
+ self.last_got = 0;
+ self.frac = 0.0;
+ } else if self.current.is_some() || self.last_got > 0 {
+ self.next_stream();
+ }
+ if all {
+ self.all_at_once = true;
+ } else {
+ self.started += 1;
+ }
+ self.current = Some(id.to_owned());
+ self.only_na = false;
+ }
+ // As before: back near 0 is the next stream.
+ None => {
+ // Pieces at once (#531): the count may step back a little within a stream;
+ // only a fall to under half of it, by 64 KB or more, is the next stream.
+ let back = if self.at_once {
+ got.saturating_mul(2) < self.last_got && self.last_got - got >= 64 * 1024
+ } else {
+ got < self.last_got
+ };
+ if back && self.last_got > 0 {
+ self.next_stream();
+ }
+ self.only_na &= id == Some("NA");
}
}
self.last_got = got;
@@ -494,7 +911,16 @@ impl Meter {
return;
}
let mut whole = self.finished + self.last_total.max(got);
- if let Some(e) = self.expected {
+ // The window's size stands for the streams still to come (less what is known so far);
+ // in the last stream, once its own total is known, nothing is left to come. When that
+ // size was an estimate above what came, the bar lurches forward there (a merged
+ // download's audio, after its video: from about the video's share of the estimate to
+ // its share of what came); never back, and it glides there in the progress window.
+ let last = named.is_some()
+ && (self.all_at_once || self.streams().is_some_and(|n| self.started >= n));
+ if let Some(e) = self.expected
+ && !(last && self.last_total > 0)
+ {
whole = whole.max(e);
}
if whole == 0 {
@@ -573,6 +999,9 @@ fn run(
if let Some(rest) = line.strip_prefix("MDMF ") {
saved = Some(PathBuf::from(rest.trim()));
} else if let Some(rest) = line.strip_prefix("MDMQ ") {
+ if let Some(m) = meter.as_deref_mut() {
+ m.quality(rest);
+ }
quality = Some(rest.trim().to_owned());
} else if let Some(rest) = line.strip_prefix("MDMP ")
&& let Some(m) = meter.as_deref_mut()
@@ -711,10 +1140,29 @@ fn pause(d: std::time::Duration, progress: &Mutex<Progress>) -> bool {
progress.lock().unwrap().state != State::Stopped
}
-/// One run: look the page up, move links off unreachable servers (and off `dead`, the ones an
-/// earlier run couldn't reach), download from that list. Subtitles the site refused are asked
-/// for once more after a pause (`retry`), beside the video; the ones still refused are reported
-/// with it, never failing it.
+/// The page as the quality menu's look-up read it (`preloaded`), once yt-dlp has answered there
+/// (waiting for it as long as that look-up may take, [`LOOKUP_WAIT`]) and if it offers the choice
+/// the menu showed; else none, and the run looks the page up itself.
+fn preloaded_page(
+ preloaded: &Preloaded,
+ progress: &Mutex<Progress>,
+) -> Option<(serde_json::Value, bool)> {
+ let until = preloaded.slot.born() + LOOKUP_WAIT;
+ let stopped = || progress.lock().unwrap().state == State::Stopped;
+ let (json, without_cookies) = preloaded.slot.wait(until, stopped)?;
+ let info = offered(
+ &json,
+ &preloaded.selector,
+ &preloaded.label,
+ preloaded.merge,
+ )?;
+ Some((info, without_cookies))
+}
+
+/// One run: look the page up (or take the quality menu's look-up, `preloaded`), move links off
+/// unreachable servers (and off `dead`, the ones an earlier run couldn't reach), download from
+/// that list. Subtitles the site refused are asked for once more after a pause (`retry`), beside
+/// the video; the ones still refused are reported with it, never failing it.
#[allow(clippy::too_many_arguments)]
fn attempt(
exe: &Path,
@@ -727,9 +1175,16 @@ fn attempt(
retry: Option<&SubsRetry>,
dead: &std::collections::BTreeSet<String>,
reroute: bool,
+ preloaded: Option<&Preloaded>,
) -> Attempt {
let failed = |error: String, rerouted: bool| Attempt::Failed { error, rerouted };
- let mut info = match look_up(exe, url, browser) {
+ let page = match preloaded.and_then(|p| preloaded_page(p, progress)) {
+ Some(page) => Ok(page),
+ // Stopped while waiting for it: nothing more to do.
+ None if progress.lock().unwrap().state == State::Stopped => return Attempt::Stopped,
+ None => look_up(exe, url, browser),
+ };
+ let mut info = match page {
Ok((v, without_cookies)) => {
if without_cookies {
note(
@@ -741,7 +1196,14 @@ fn attempt(
}
Err(e) => return failed(e, false),
};
- let changed = if reroute {
+ let checks = *SERVER_CHECKS.read().unwrap_or_else(|e| e.into_inner());
+ let changed = if let (true, Some((alive, serves))) = (reroute, checks) {
+ servers::reroute(
+ &mut info,
+ |h| !dead.contains(h) && alive(h),
+ |l, _| serves(l),
+ )
+ } else if reroute {
let prober = servers::Prober::new();
servers::reroute(
&mut info,
@@ -907,8 +1369,9 @@ pub fn pace_args(rate: Option<u64>, fragments: u32) -> Vec<String> {
}
}
-/// Our progress line: `MDMP <downloaded> <total> <estimate> <speed>` (`NA` when unknown).
-const PROGRESS: &str = "download:MDMP %(progress.downloaded_bytes)s %(progress.total_bytes)s %(progress.total_bytes_estimate)s %(progress.speed)s";
+/// Our progress line: `MDMP <downloaded> <total> <estimate> <speed> <format id>` (`NA` when
+/// unknown; the format id is the stream's, `NA` for a subtitle file).
+const PROGRESS: &str = "download:MDMP %(progress.downloaded_bytes)s %(progress.total_bytes)s %(progress.total_bytes_estimate)s %(progress.speed)s %(info.format_id)s";
/// The final file: `MDMF <path>`.
const FINAL: &str = "after_move:MDMF %(filepath)s";
/// The quality yt-dlp chose, before it downloads: `MDMQ <format id> <resolution>` (the log names
@@ -935,8 +1398,31 @@ impl VideoJob {
expected: Option<u64>,
browser: &proc::FromBrowser,
subs: &Subs,
+ ) -> Result<VideoJob, ProcError> {
+ Self::start_with(
+ exe, url, selector, dir, stem, rate, fragments, ffmpeg, expected, browser, subs, None,
+ )
+ }
+
+ /// [`VideoJob::start`], the first run taking the quality menu's look-up (`preloaded`) when
+ /// it is for this very choice.
+ #[allow(clippy::too_many_arguments)]
+ pub fn start_with(
+ exe: &Path,
+ url: &str,
+ selector: &str,
+ dir: &Path,
+ stem: &str,
+ rate: Option<u64>,
+ fragments: u32,
+ ffmpeg: Option<&Path>,
+ expected: Option<u64>,
+ browser: &proc::FromBrowser,
+ subs: &Subs,
+ preloaded: Option<Preloaded>,
) -> Result<VideoJob, ProcError> {
proc::safe(url)?;
+ let preloaded = preloaded.filter(|p| p.selector == selector);
let output = dir.join(format!("{}.%(ext)s", template_text(stem)));
// An MP3, Opus or FLAC choice (#32, #70): the best sound, converted by ffmpeg.
let convert = crate::resolve::audio_conversion(selector);
@@ -1054,6 +1540,7 @@ impl VideoJob {
&child,
expected,
retry.as_ref(),
+ preloaded,
)
});
if std::panic::catch_unwind(run).is_err() {
@@ -1088,6 +1575,78 @@ impl VideoJob {
mod tests {
use super::*;
+ /// A video download's files that "overwrite" (a duplicate added again) removes: exactly what
+ /// yt-dlp leaves for its stem, the finished file and subtitles only with `outputs`; never a
+ /// file merely named alike, another stem's, or MDM's own part files.
+ #[test]
+ fn a_videos_own_files_are_exactly_yt_dlps() {
+ let dir = tempfile::tempdir().unwrap();
+ let d = dir.path();
+ let working = [
+ "Clip.mp4.part",
+ "Clip.mp4.ytdl",
+ "Clip.mp4.part-Frag4",
+ "Clip.mp4.part-Frag4.part",
+ "Clip.f137.mp4",
+ "Clip.f137.mp4.part",
+ "Clip.f137.mp4.ytdl",
+ "Clip.f137.mp4.part-Frag12",
+ "Clip.f137.mp4.part-Frag12.part",
+ "Clip.f251.webm.part",
+ "Clip.fhls-720p.mp4",
+ "Clip.fdash-1.m4a.part",
+ "Clip.fhttp-480p.mp4",
+ "clip.temp.mp4",
+ ];
+ let finished = [
+ "Clip.mp4",
+ "Clip.en.srt",
+ "Clip.pt-BR.vtt",
+ "Clip.fr.srt",
+ "Clip.fi.vtt",
+ ];
+ let others = [
+ "Clip.final.mp4",
+ "Clip.full.mkv",
+ "Clip.f1.jpg",
+ "Clip.fhls-video.mp4",
+ "Clip.v2.mp4.part",
+ "Clip.pdf.mdm.part",
+ "Clip.v2.zip.mdm.part",
+ "Clip.mp4.mdm.part",
+ "Clip.zip",
+ "Clip.notes.txt",
+ "Clip.final cut.mp4",
+ "Clip.mp4.part-Fragment",
+ "Clip (1).f137.mp4",
+ "Clip (1).f137.mp4.part",
+ "Clip (1).en.srt",
+ "Clipper.mp4.part",
+ "Other.en.srt",
+ ];
+ for f in working.iter().chain(&finished).chain(&others) {
+ std::fs::write(d.join(f), b"x").unwrap();
+ }
+ let names = |outputs| {
+ let mut n: Vec<String> = own_files(d, "Clip", outputs)
+ .iter()
+ .map(|p| p.file_name().unwrap().to_string_lossy().into_owned())
+ .collect();
+ n.sort();
+ n
+ };
+ let mut want: Vec<String> = working.iter().map(|s| s.to_string()).collect();
+ want.sort();
+ assert_eq!(
+ names(false),
+ want,
+ "subtitles (fr.srt, fi.vtt) are never working files"
+ );
+ want.extend(finished.iter().map(|s| s.to_string()));
+ want.sort();
+ assert_eq!(names(true), want);
+ assert!(own_files(&d.join("missing"), "Clip", true).is_empty());
+ }
/// #569: what a file joined from HLS pieces holds, from its first bytes. YouTube's sound:
/// pieces each led by an ID3 tag (Apple's timestamp), then ADTS frames.
#[test]
@@ -1265,18 +1824,27 @@ mod tests {
side_files: Vec::new(),
sub_problems: Vec::new(),
};
+ // `MDMQ …` as yt-dlp prints it before it downloads; every other line is an `MDMP` one's.
lines
.iter()
- .map(|l| {
- m.line(l, &mut p);
- (p.downloaded, p.total)
+ .filter_map(|l| match l.strip_prefix("MDMQ ") {
+ Some(q) => {
+ m.quality(q);
+ None
+ }
+ None => {
+ m.line(l, &mut p);
+ Some((p.downloaded, p.total))
+ }
})
.collect()
}
+ /// The bar as the progress window draws it: held short of the end while yt-dlp works
+ /// (`Item::fraction` takes [`MAX_WHILE_RUNNING`]; the total itself is the real size).
fn fractions(v: &[(u64, Option<u64>)]) -> Vec<f64> {
v.iter()
- .map(|(d, t)| *d as f64 / t.unwrap() as f64)
+ .map(|(d, t)| (*d as f64 / t.unwrap() as f64).min(MAX_WHILE_RUNNING))
.collect()
}
@@ -1373,15 +1941,289 @@ mod tests {
}
/// The size the window showed counts both streams from the start: the first stream alone
- /// never looks like the whole download.
+ /// never looks like the whole download, whether or not yt-dlp has named the streams.
#[test]
fn expected_size_holds_the_bar_back() {
let v = run(Some(1000), &["400 400 NA 0"]);
assert_eq!(v[0], (400, Some(1000)));
+ let v = run(Some(1000), &["MDMQ 137+140 1920x1080", "400 400 NA 0 137"]);
+ assert_eq!(v[0], (400, Some(1000)));
+ }
+
+ /// A line with no figure at all: no percentage.
+ #[test]
+ fn a_line_of_nothing_is_no_percentage() {
let v = run(None, &["NA NA NA NA"]);
assert_eq!(v[0], (0, None));
}
+ /// Never back, but for the total's rounding to a whole byte (these sizes are tiny).
+ fn assert_forward(f: &[f64]) {
+ for w in f.windows(2) {
+ assert!(w[1] >= w[0] - 1e-3, "went back: {f:?}");
+ }
+ }
+
+ /// The bar at its end (`v`, the meter's lines). Drawn, it is held short of the end
+ /// ([`fractions`]); the meter's own figures reach the whole at the last line only, and never
+ /// go past it: 100 % is never said before the end.
+ fn assert_ends(v: &[(u64, Option<u64>)]) {
+ let f = fractions(v);
+ assert!(f[f.len() - 1] >= MAX_WHILE_RUNNING - 1e-9, "{f:?}");
+ let raw: Vec<f64> = v
+ .iter()
+ .map(|(d, t)| *d as f64 / t.unwrap() as f64)
+ .collect();
+ assert!(raw.iter().all(|x| *x <= 1.0), "past 100 %: {raw:?}");
+ assert!(
+ raw[..raw.len() - 1].iter().all(|x| *x < 1.0),
+ "100 % before the end: {raw:?}"
+ );
+ }
+
+ /// An HLS stream's lines, as yt-dlp prints them for format `id` (none: lines without one,
+ /// as before it was asked for): from nothing, then its estimate after each of `frags`
+ /// fragments of `frag` bytes, then its own total at its end.
+ fn hls_stream(id: &str, frags: u64, frag: u64) -> Vec<String> {
+ let whole = frags * frag;
+ let mut out = vec!["0 NA NA 0".to_owned()];
+ out.extend((1..frags).map(|k| format!("{} NA {whole} 5", k * frag)));
+ out.push(format!("{whole} {whole} NA 5"));
+ out.into_iter()
+ .map(|l| format!("{l} {id}").trim_end().to_owned())
+ .collect()
+ }
+
+ fn lines<'a>(quality: Option<&'a str>, streams: &'a [Vec<String>]) -> Vec<&'a str> {
+ quality
+ .into_iter()
+ .chain(streams.iter().flatten().map(String::as_str))
+ .collect()
+ }
+
+ /// The figures as before yt-dlp named its streams: the same lines without `MDMQ` and without
+ /// their format ids.
+ fn as_before(expected: Option<u64>, streams: &[Vec<String>]) -> Vec<(u64, Option<u64>)> {
+ let bare: Vec<Vec<String>> = streams
+ .iter()
+ .map(|s| {
+ s.iter()
+ .map(|l| l.splitn(5, ' ').take(4).collect::<Vec<_>>().join(" "))
+ .collect()
+ })
+ .collect();
+ run(expected, &lines(None, &bare))
+ }
+
+ /// The video window's size an estimate twice what comes (an HLS stream's BANDWIDTH is its
+ /// peak): with yt-dlp's word that the choice is one stream, the bar ends at the end, not
+ /// halfway; never back. Without that word, as before: the window's size holds it.
+ #[test]
+ fn an_estimate_above_the_size_still_ends_at_the_end() {
+ let stream = [hls_stream("hls-6400", 10, 100)];
+ let v = run(Some(2000), &lines(Some("MDMQ hls-6400 1280x720"), &stream));
+ assert_forward(&fractions(&v));
+ assert_ends(&v);
+ let f = fractions(&as_before(Some(2000), &stream));
+ assert!((f[f.len() - 1] - 0.5).abs() < 1e-9, "{f:?}");
+ }
+
+ /// The same for a merged choice (video, then audio): the bar ends at the end, and the
+ /// video's end is still not the whole download, nor does the bar go back (#344).
+ #[test]
+ fn a_merged_estimate_above_the_size_still_ends_at_the_end() {
+ let streams = [
+ hls_stream("hls-7040", 16, 100),
+ hls_stream("hls-aud-English", 4, 100),
+ ];
+ let v = run(
+ Some(4000),
+ &lines(Some("MDMQ hls-7040+hls-aud-English 1280x720"), &streams),
+ );
+ let f = fractions(&v);
+ assert_forward(&f);
+ let video_end = streams[0].len() - 1;
+ assert!(f[video_end] < 0.75, "the video's end looked whole: {f:?}");
+ assert_ends(&v);
+ assert_eq!(v[v.len() - 1].0, 2000);
+ }
+
+ /// One line for all the streams at once (`137+140`: yt-dlp's ffmpeg downloader fetches and
+ /// merges them together, and says so once, at the end): that is the whole download, and its
+ /// own total its end.
+ #[test]
+ fn a_line_for_every_stream_at_once_is_the_whole_download() {
+ let q = "MDMQ 7040+aud-English 1280x720";
+ let all = [hls_stream("7040+aud-English", 20, 100)];
+ let v = run(Some(4000), &lines(Some(q), &all));
+ assert_forward(&fractions(&v));
+ assert_ends(&v);
+ let v = run(Some(4000), &[q, "2000 2000 NA 2129866.9 7040+aud-English"]);
+ assert_ends(&v);
+ }
+
+ /// Lines whose format id `MDMQ` didn't name, or `NA` on every line (a yt-dlp that names no
+ /// stream): read exactly as before, never left out (the bar never stands still at 0).
+ #[test]
+ fn lines_not_named_by_mdmq_are_read_as_before() {
+ for (expected, ids) in [
+ (Some(4000), ["999", "998"]),
+ (Some(4000), ["NA", "NA"]),
+ (Some(2000), ["NA", "NA"]),
+ (None, ["NA", "NA"]),
+ (None, ["999", "998"]),
+ ] {
+ let streams = [hls_stream(ids[0], 16, 100), hls_stream(ids[1], 4, 100)];
+ let v = run(expected, &lines(Some("MDMQ 137+140 1920x1080"), &streams));
+ assert_eq!(v, as_before(expected, &streams), "{expected:?} {ids:?}");
+ assert_eq!(v[v.len() - 1].0, 2000);
+ if expected != Some(4000) {
+ assert_ends(&v[v.len() - 1..]);
+ }
+ }
+ }
+
+ /// Subtitles asked for (#68): yt-dlp downloads their file first, with lines of its own that
+ /// name no format, `NA` (as yt-dlp 2026.10.26 prints them for an HLS subtitle rendition), each
+ /// file counting from 0 again. They are no stream: the video is not taken for the last one,
+ /// its end is still not the whole download (#344), and their bytes leave the bar when the
+ /// video's first line comes.
+ #[test]
+ fn subtitles_before_the_video_are_no_stream() {
+ let streams = [
+ hls_stream("NA", 3, 10),
+ hls_stream("NA", 3, 10),
+ hls_stream("137", 16, 100),
+ hls_stream("140", 4, 100),
+ ];
+ let v = run(Some(4000), &lines(Some("MDMQ 137+140 1920x1080"), &streams));
+ let subs = streams[0].len() + streams[1].len();
+ assert!(fractions(&v[..subs]).iter().all(|x| *x < 0.02), "{v:?}");
+ assert_eq!(v[subs - 1].0, 60);
+ assert_eq!(v[subs].0, 0);
+ let f = fractions(&v[subs..]);
+ assert_forward(&f);
+ let video_end = streams[2].len() - 1;
+ assert!(f[video_end] < 0.75, "the video's end looked whole: {f:?}");
+ assert_ends(&v[subs..]);
+ assert_eq!(v[v.len() - 1].0, 2000);
+ }
+
+ /// A stream's count from 0 again (a retry from the start) is the same stream, not the next
+ /// one: the video is not taken for the last stream, its bytes count once, and the bar waits
+ /// where it was until the retry is back there.
+ #[test]
+ fn a_retry_from_the_start_is_not_the_next_stream() {
+ let mut video = hls_stream("137", 16, 100);
+ video.splice(
+ 9..9,
+ ["300 NA 1600 5 137".to_owned(), "0 NA NA 0 137".to_owned()],
+ );
+ let streams = [video, hls_stream("140", 4, 100)];
+ let v = run(Some(4000), &lines(Some("MDMQ 137+140 1920x1080"), &streams));
+ assert_eq!([v[8].0, v[9].0, v[10].0, v[11].0], [800, 800, 800, 900]);
+ let f = fractions(&v);
+ assert_forward(&f);
+ let video_end = streams[0].len() - 1;
+ assert!(f[video_end] < 0.75, "the video's end looked whole: {f:?}");
+ assert_ends(&v);
+ assert_eq!(v[video_end].0, 1600);
+ assert_eq!(v[v.len() - 1].0, 2000);
+ }
+
+ /// A variable bitrate's estimates: low at first, then up and down around the size as the
+ /// fragments come. The bar never goes back and ends at the end.
+ #[test]
+ fn noisy_estimates_never_pull_the_bar_back() {
+ let mut l = vec![
+ "MDMQ hls-1 1280x720".to_owned(),
+ "0 NA NA 0 hls-1".to_owned(),
+ ];
+ for (got, estimate) in [
+ (100, 400),
+ (200, 900),
+ (300, 1300),
+ (400, 1100),
+ (500, 1000),
+ (600, 1200),
+ (700, 1000),
+ (800, 1050),
+ (900, 1000),
+ ] {
+ l.push(format!("{got} NA {estimate} 5 hls-1"));
+ }
+ l.push("1000 1000 NA 5 hls-1".to_owned());
+ let l: Vec<&str> = l.iter().map(String::as_str).collect();
+ let v = run(Some(2000), &l);
+ assert_forward(&fractions(&v));
+ assert_ends(&v);
+ }
+
+ /// The video window's size below what comes: the same figures as before yt-dlp named its
+ /// streams (a stream's end never pulls the bar back).
+ #[test]
+ fn an_estimate_below_the_size_is_as_before() {
+ for (expected, streams, quality) in [
+ (1000, vec![hls_stream("22", 15, 100)], "MDMQ 22 1280x720"),
+ (
+ 1200,
+ vec![hls_stream("137", 16, 100), hls_stream("140", 4, 100)],
+ "MDMQ 137+140 1920x1080",
+ ),
+ (
+ 1800,
+ vec![hls_stream("137", 16, 100), hls_stream("140", 4, 100)],
+ "MDMQ 137+140 1920x1080",
+ ),
+ ] {
+ let with = run(Some(expected), &lines(Some(quality), &streams));
+ assert_eq!(with, as_before(Some(expected), &streams));
+ assert_forward(&fractions(&with));
+ }
+ }
+
+ /// The streams `MDMQ` names, and which format ids are theirs: the resolution after the last
+ /// one (two words for a sound) is not part of its id; the merged id is all of them at once;
+ /// nothing is named before yt-dlp has said, nor `NA`.
+ #[test]
+ fn the_streams_are_named_by_their_format_ids() {
+ let mut m = Meter::new(None, false);
+ assert_eq!(m.named(Some("137")), None);
+ let cases: [(&str, &[&str], &[&str]); 4] = [
+ (
+ "137+140 1920x1080",
+ &["137", "140"],
+ &["13", "14", "251", "NA"],
+ ),
+ ("18 640x360", &["18"], &["1", "640x360"]),
+ (
+ "hls-720p+hls-audio-English 1280x720",
+ &["hls-720p", "hls-audio-English"],
+ &["hls-audio", "hls-720p+hls-audio"],
+ ),
+ (
+ "aud-English (US) audio only",
+ &["aud-English (US)"],
+ &["aud"],
+ ),
+ ];
+ for (q, ids, others) in cases {
+ m.quality(q);
+ assert_eq!(m.streams(), Some(ids.len()), "{q}");
+ for id in ids {
+ assert_eq!(m.named(Some(*id)), Some((*id, false)), "{q}");
+ }
+ for id in others {
+ assert_eq!(m.named(Some(*id)), None, "{q}: {id}");
+ }
+ }
+ m.quality("137+140 1920x1080");
+ assert_eq!(m.named(Some("137+140")), Some(("137+140", true)));
+ assert_eq!(m.named(None), None);
+ m.quality("");
+ assert_eq!(m.streams(), None);
+ }
+
/// The subtitle arguments (#68): none asked, none passed; beside the video as SRT with
/// ffmpeg, the site's own format without; embedded only with ffmpeg; every uploader's
/// language but a live stream's chat.
@@ -1533,6 +2375,91 @@ mod tests {
assert_eq!(saved_by_name(&none), None);
}
+ /// A2: the quality menu's look-up is taken for the very choice it offered only (its selector
+ /// under the same label, merged or not as the menu had it), and waited for while it's being
+ /// made, never past its time or a Stop. Too big to keep: none. Nothing of it in `Debug`.
+ #[test]
+ fn the_menus_look_up_serves_its_own_choice_only() {
+ const PAGE: &str = r#"{"title": "T", "duration": 10, "formats": [
+ {"format_id": "18", "ext": "mp4", "height": 360, "vcodec": "avc1", "acodec": "mp4a", "tbr": 500}]}"#;
+ let page = PAGE.as_bytes();
+ assert!(offered(page, "b[height=360]", "360p MP4", false).is_some());
+ assert!(offered(page, "b[height=720]", "720p MP4", false).is_none());
+ assert!(offered(page, "b[height=360]", "360p WEBM", false).is_none());
+ assert!(offered(page, "b[height=360]", "360p MP4", true).is_none());
+ assert!(offered(page, "bv*[height=360]+ba/b[height=360]", "360p MP4", true).is_some());
+ assert!(offered(b"not json", "b", "b", false).is_none());
+
+ let slot = InfoSlot::new(Instant::now());
+ let filler = slot.clone();
+ std::thread::spawn(move || {
+ std::thread::sleep(Duration::from_millis(100));
+ filler.fill(page.to_vec(), true);
+ });
+ let (json, without) = slot
+ .wait(Instant::now() + Duration::from_secs(10), || false)
+ .unwrap();
+ assert_eq!((json.as_slice(), without), (page, true));
+ slot.fail();
+ assert!(slot.wait(Instant::now(), || false).is_some(), "kept");
+ assert_eq!(format!("{slot:?}"), "InfoSlot");
+
+ let pending = InfoSlot::new(Instant::now());
+ let at = Instant::now();
+ assert!(
+ pending
+ .wait(at + Duration::from_millis(200), || false)
+ .is_none()
+ );
+ assert!(at.elapsed() >= Duration::from_millis(200));
+ assert!(
+ pending
+ .wait(at + Duration::from_secs(60), || true)
+ .is_none(),
+ "stopped"
+ );
+ assert!(pending.pending());
+ pending.fail();
+ assert!(!pending.pending());
+
+ let big = InfoSlot::new(Instant::now());
+ big.fill(vec![b' '; INFO_MAX + 1], false);
+ assert!(!big.pending());
+ assert!(
+ big.wait(Instant::now() + Duration::from_secs(1), || false)
+ .is_none()
+ );
+ }
+
+ /// All the look-ups kept together stay within their budget: the oldest answers are let go
+ /// (their downloads look the page up afresh); one no longer kept anywhere counts no more.
+ #[test]
+ fn look_ups_kept_have_a_budget_together() {
+ let pool = Kept::new(100);
+ let now = Instant::now();
+ let kept = |n: usize| {
+ let slot = InfoSlot::counted_in(now, pool.clone());
+ slot.fill(vec![b' '; n], false);
+ slot
+ };
+ let has = |s: &InfoSlot| s.wait(Instant::now(), || false).is_some();
+ let (a, b) = (kept(40), kept(40));
+ assert!(has(&a) && has(&b));
+ let c = kept(40);
+ assert!(!has(&a), "the oldest let go");
+ assert!(has(&b) && has(&c));
+ assert!(!a.pending(), "not waited for either");
+ // Dropped: its 40 bytes are free.
+ drop(b);
+ let d = kept(40);
+ assert!(has(&c) && has(&d));
+ // One bigger than the rest together: the others go, it stays.
+ let e = kept(90);
+ assert!(!has(&c) && !has(&d) && has(&e));
+ // The process's own pool: INFO_TOTAL.
+ assert_eq!(Kept::shared().limit, INFO_TOTAL);
+ }
+
#[test]
fn percent_signs_in_titles_stay_text() {
assert_eq!(template_text("100% fun"), "100%% fun");
diff --git a/crates/tools/tests/fake_ytdlp.rs b/crates/tools/tests/fake_ytdlp.rs
index 846623ff..1a5b0859 100644
Binary files a/crates/tools/tests/fake_ytdlp.rs and b/crates/tools/tests/fake_ytdlp.rs differ
diff --git a/crates/tools/tests/fixtures/hls/README.md b/crates/tools/tests/fixtures/hls/README.md
new file mode 100644
index 00000000..13488f1b
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/README.md
@@ -0,0 +1,43 @@
+# HLS parity corpus
+
+What `crates/tools/src/manifest.rs` reads of an HLS master playlist must be what yt-dlp lists for
+it (`streams_are_read_as_yt_dlp_lists_them`). Each folder is one stream, served on this computer
+only, and yt-dlp's own answer for it:
+
+- `master.m3u8`: the master playlist, as served;
+- `media.m3u8`: the playlist yt-dlp asked for after it (its "Checking m3u8 live status", which
+ reads the duration), as the servers' request logs showed;
+- `ytdlp.json`: yt-dlp's answer, trimmed to what `resolve::parse` reads: `title`, `duration`,
+ `direct`, `language`; `subtitles` and `automatic_captions` with each file's `name` only (none
+ here); and of each format `format_id`, `ext`, `height`, `fps`, `vcodec`, `acodec`, `filesize`,
+ `filesize_approx`, `tbr`, `protocol` (each kept only where yt-dlp gave it, nulls included).
+ Formats keep yt-dlp's order.
+
+yt-dlp **2026.10.26** (the Windows `yt-dlp.exe` MDM installs), on 2026-11-09. Each case ran
+
+ yt-dlp --ignore-config --no-update --proxy "" -J --no-playlist <address>
+
+(`group` also had `-v`, for its log; it changes nothing in the answer). The addresses:
+
+| Case | Address | Then read |
+|---|---|---|
+| `lab` | `http://127.0.0.1:8093/hls/master.m3u8` (the lab server's stream) | `/hls/audio/index.m3u8` |
+| `group` | `http://127.0.0.1:8094/group.m3u8` | `/a/en.m3u8` |
+| `videoonly` | `http://127.0.0.1:8094/videoonly.m3u8` | `/a/en.m3u8` |
+| `repeated` | `http://127.0.0.1:8094/repeated.m3u8` | `/v/v720.m3u8` |
+| `nocodecs` | `http://127.0.0.1:8094/nocodecs.m3u8` | `/a/en.m3u8` |
+| `aes` | `http://127.0.0.1:8094/aes.m3u8` | `/v/aes.m3u8` |
+| `portrait` | `http://127.0.0.1:8094/my%20clip.m3u8` | `/v/v720.m3u8` |
+| `order` | `http://127.0.0.1:8094/order.m3u8` | `/a/en.m3u8` |
+| `redirect` | `http://127.0.0.1:8093/redirect?to=http%3A%2F%2F127.0.0.1%3A8094%2Frepeated.m3u8` | `/v/v720.m3u8` |
+
+Port 8093 is `mdm-labserver`; 8094 served the streams `capture.py` lists (`STREAMS`), then with
+Python's `http.server`, as `application/vnd.apple.mpegurl`.
+
+To make the corpus again (it rewrites these folders; nothing is asked of any other host):
+
+ cargo run -p mdm-labserver -- --bind 127.0.0.1:8093
+ python -I crates/tools/tests/fixtures/hls/capture.py --ytdlp <yt-dlp 2026.10.26> [--out DIR]
+
+With yt-dlp 2026.10.26 it writes these files byte for byte. A newer yt-dlp may answer otherwise:
+then the test says where MDM's reading and yt-dlp's part.
diff --git a/crates/tools/tests/fixtures/hls/aes/master.m3u8 b/crates/tools/tests/fixtures/hls/aes/master.m3u8
new file mode 100644
index 00000000..0f9936f8
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/aes/master.m3u8
@@ -0,0 +1,5 @@
+#EXTM3U
+#EXT-X-STREAM-INF:BANDWIDTH=1500000,RESOLUTION=1280x720,CODECS="avc1.4d401f,mp4a.40.2"
+v/aes.m3u8
+#EXT-X-STREAM-INF:BANDWIDTH=600000,RESOLUTION=640x360,CODECS="avc1.42e01e,mp4a.40.2"
+v/v360.m3u8
diff --git a/crates/tools/tests/fixtures/hls/aes/media.m3u8 b/crates/tools/tests/fixtures/hls/aes/media.m3u8
new file mode 100644
index 00000000..e80c5cb9
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/aes/media.m3u8
@@ -0,0 +1,14 @@
+#EXTM3U
+#EXT-X-TARGETDURATION:10
+#EXT-X-KEY:METHOD=AES-128,URI="key.bin",KEYFORMAT="identity"
+#EXTINF:6.006,
+seg0.ts
+#EXTINF:6.006,
+seg1.ts
+#EXTINF:6.006,
+seg2.ts
+#EXTINF:6.006,
+seg3.ts
+#EXTINF:6.006,
+seg4.ts
+#EXT-X-ENDLIST
diff --git a/crates/tools/tests/fixtures/hls/aes/ytdlp.json b/crates/tools/tests/fixtures/hls/aes/ytdlp.json
new file mode 100644
index 00000000..e2ecd553
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/aes/ytdlp.json
@@ -0,0 +1,27 @@
+{
+ "title": "aes",
+ "duration": 30,
+ "subtitles": {},
+ "formats": [
+ {
+ "format_id": "600",
+ "ext": "mp4",
+ "height": 360,
+ "fps": null,
+ "vcodec": "avc1.42e01e",
+ "acodec": "mp4a.40.2",
+ "tbr": 600.0,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "1500",
+ "ext": "mp4",
+ "height": 720,
+ "fps": null,
+ "vcodec": "avc1.4d401f",
+ "acodec": "mp4a.40.2",
+ "tbr": 1500.0,
+ "protocol": "m3u8_native"
+ }
+ ]
+}
diff --git a/crates/tools/tests/fixtures/hls/capture.py b/crates/tools/tests/fixtures/hls/capture.py
new file mode 100644
index 00000000..962a85fa
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/capture.py
@@ -0,0 +1,252 @@
+"""Makes the HLS parity corpus again (crates/tools/src/manifest.rs, `streams_are_read_as_yt_dlp_lists_them`):
+yt-dlp's own answers for streams served on this computer only. See README.md beside it.
+
+ cargo run -p mdm-labserver -- --bind 127.0.0.1:8093
+ python -I capture.py --ytdlp <yt-dlp 2026.10.26> [--out DIR]
+
+For each case it serves the stream (the lab server's, or one of STREAMS below on 127.0.0.1:8094),
+runs `yt-dlp --ignore-config --no-update --proxy "" -J --no-playlist <address>`, and writes into
+`<out>/<case>/`: `master.m3u8` (the master playlist as served), `media.m3u8` (the playlist yt-dlp
+asked for after it, as the servers' logs say: the one it reads the length from) and `ytdlp.json`
+(its answer trimmed to what `resolve::parse` reads). Nothing is asked of any other host.
+"""
+
+import argparse
+import ipaddress
+import json
+import os
+import subprocess
+import sys
+import threading
+import urllib.parse
+import urllib.request
+from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
+
+YTDLP_VERSION = '2026.10.26'
+
+
+def media(count, secs):
+ """A whole (VOD) media playlist of `count` segments of `secs` seconds."""
+ lines = ['#EXTM3U', '#EXT-X-VERSION:3', '#EXT-X-TARGETDURATION:10', '#EXT-X-PLAYLIST-TYPE:VOD']
+ for i in range(count):
+ lines += [f'#EXTINF:{secs},', f'seg{i}.ts']
+ lines.append('#EXT-X-ENDLIST')
+ return '\n'.join(lines) + '\n'
+
+
+# The streams made for the corpus, by path on 127.0.0.1:8094 (decoded: `/my clip.m3u8`).
+STREAMS = {
+ '/a/de.m3u8': media(12, '9.6'),
+ '/a/en.m3u8': media(12, '9.6'),
+ '/aes.m3u8': (
+ '#EXTM3U\n'
+ '#EXT-X-STREAM-INF:BANDWIDTH=1500000,RESOLUTION=1280x720,CODECS="avc1.4d401f,mp4a.40.2"\n'
+ 'v/aes.m3u8\n'
+ '#EXT-X-STREAM-INF:BANDWIDTH=600000,RESOLUTION=640x360,CODECS="avc1.42e01e,mp4a.40.2"\n'
+ 'v/v360.m3u8\n'
+ ),
+ '/group.m3u8': (
+ '#EXTM3U\n'
+ '#EXT-X-VERSION:4\n'
+ '#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="English",LANGUAGE="en",DEFAULT=YES,AUTOSELECT=YES,URI="a/en.m3u8"\n'
+ '#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="Deutsch",LANGUAGE="de",DEFAULT=NO,AUTOSELECT=YES,URI="a/de.m3u8"\n'
+ '#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="Deutsch",LANGUAGE="de",URI="s/de.m3u8"\n'
+ '#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="Francais",LANGUAGE="fr",URI="s/fr.m3u8"\n'
+ '#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="Unknown",URI="s/fr.m3u8"\n'
+ '#EXT-X-STREAM-INF:BANDWIDTH=5000000,AVERAGE-BANDWIDTH=4500000,RESOLUTION=1920x1080,FRAME-RATE=60.000,CODECS="avc1.640028,mp4a.40.2",AUDIO="aac",SUBTITLES="subs"\n'
+ 'v/v1080.m3u8\n'
+ '#EXT-X-STREAM-INF:BANDWIDTH=2800000,RESOLUTION=1280x720,FRAME-RATE=30,CODECS="avc1.4d401f,mp4a.40.2",AUDIO="aac",SUBTITLES="subs"\n'
+ 'v/v720.m3u8\n'
+ '#EXT-X-STREAM-INF:BANDWIDTH=800000,RESOLUTION=640x360,CODECS="avc1.42e01e,mp4a.40.2",AUDIO="aac",SUBTITLES="subs"\n'
+ 'v/v360.m3u8\n'
+ ),
+ '/my clip.m3u8': (
+ '#EXTM3U\n'
+ '#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aud",NAME="Main",DEFAULT=YES\n'
+ '#EXT-X-STREAM-INF:BANDWIDTH=1800000,RESOLUTION=720x1280,CODECS="avc1.4d401f,mp4a.40.2",AUDIO="aud"\n'
+ 'v/v720.m3u8\n'
+ '#EXT-X-STREAM-INF:BANDWIDTH=700000,RESOLUTION=360x640,CODECS="avc1.42e01e,mp4a.40.2",AUDIO="aud"\n'
+ 'v/v360.m3u8\n'
+ ),
+ '/nocodecs.m3u8': (
+ '#EXTM3U\n'
+ '#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aud",NAME="English",LANGUAGE="en",URI="a/en.m3u8"\n'
+ '#EXT-X-STREAM-INF:BANDWIDTH=2500000,RESOLUTION=1280x720,AUDIO="aud"\n'
+ 'v/v720.m3u8\n'
+ '#EXT-X-STREAM-INF:BANDWIDTH=900000,RESOLUTION=640x360,AUDIO="aud"\n'
+ 'v/v360.m3u8\n'
+ ),
+ '/order.m3u8': (
+ '#EXTM3U\n'
+ '#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aud",NAME="English",LANGUAGE="en",URI="a/en.m3u8"\n'
+ '#EXT-X-STREAM-INF:BANDWIDTH=500000,RESOLUTION=480x270,CODECS="avc1.42e01e",AUDIO="aud"\n'
+ 'v/v480.m3u8\n'
+ '#EXT-X-STREAM-INF:BANDWIDTH=6000000,RESOLUTION=1920x1080,CODECS="avc1.640028",AUDIO="aud"\n'
+ 'v/v1080.m3u8\n'
+ ),
+ '/repeated.m3u8': (
+ '#EXTM3U\n'
+ '#EXT-X-STREAM-INF:BANDWIDTH=2000000,AVERAGE-BANDWIDTH=1800000,RESOLUTION=1280x720,FRAME-RATE=30.000,CODECS="avc1.4d401f,mp4a.40.2"\n'
+ 'v/v720.m3u8\n'
+ '#EXT-X-STREAM-INF:BANDWIDTH=4000000,RESOLUTION=1280x720,FRAME-RATE=59.940,CODECS="avc1.4d401f,mp4a.40.2"\n'
+ 'v/v720b.m3u8\n'
+ '#EXT-X-STREAM-INF:BANDWIDTH=1234567,RESOLUTION=854x480,FRAME-RATE=29.97,CODECS="avc1.4d401e,mp4a.40.2"\n'
+ 'v/v480.m3u8\n'
+ '#EXT-X-STREAM-INF:BANDWIDTH=700000,RESOLUTION=854x480,CODECS="avc1.4d401e,mp4a.40.2"\n'
+ 'v/v360.m3u8\n'
+ ),
+ '/s/de.m3u8': media(3, '10'),
+ '/s/fr.m3u8': media(3, '10'),
+ '/v/aes.m3u8': (
+ '#EXTM3U\n'
+ '#EXT-X-TARGETDURATION:10\n'
+ '#EXT-X-KEY:METHOD=AES-128,URI="key.bin",KEYFORMAT="identity"\n'
+ '#EXTINF:6.006,\n'
+ 'seg0.ts\n'
+ '#EXTINF:6.006,\n'
+ 'seg1.ts\n'
+ '#EXTINF:6.006,\n'
+ 'seg2.ts\n'
+ '#EXTINF:6.006,\n'
+ 'seg3.ts\n'
+ '#EXTINF:6.006,\n'
+ 'seg4.ts\n'
+ '#EXT-X-ENDLIST\n'
+ ),
+ '/v/v1080.m3u8': media(10, '9.009'),
+ '/v/v360.m3u8': media(3, '10.0'),
+ '/v/v480.m3u8': media(7, '9.9'),
+ '/v/v720.m3u8': media(10, '9.5'),
+ '/v/v720b.m3u8': media(10, '9.5'),
+ '/videoonly.m3u8': (
+ '#EXTM3U\n'
+ '#EXT-X-INDEPENDENT-SEGMENTS\n'
+ '#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="a1",NAME="main",LANGUAGE="en",DEFAULT=YES,URI="a/en.m3u8"\n'
+ '#EXT-X-STREAM-INF:BANDWIDTH=3000000,RESOLUTION=1280x720,CODECS="avc1.4d401f",AUDIO="a1"\n'
+ 'v/v720.m3u8\n'
+ '#EXT-X-STREAM-INF:BANDWIDTH=1200000,RESOLUTION=854x480,CODECS="avc1.4d401e",AUDIO="a1"\n'
+ 'v/v480.m3u8\n'
+ '#EXT-X-STREAM-INF:BANDWIDTH=96000,CODECS="mp4a.40.2"\n'
+ 'a/de.m3u8\n'
+ '#EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=300000,RESOLUTION=1280x720,CODECS="avc1.4d401f",URI="v/v720b.m3u8"\n'
+ '#EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=100000,RESOLUTION=854x480,CODECS="avc1.4d401e",URI="v/v480.m3u8"\n'
+ ),
+}
+
+# Each case: its folder, where its master playlist is (`own`: STREAMS; `lab`: the lab server;
+# `redirect`: the lab server's /redirect to one of STREAMS) and its path there.
+CASES = [
+ ('lab', 'lab', '/hls/master.m3u8'),
+ ('group', 'own', '/group.m3u8'),
+ ('videoonly', 'own', '/videoonly.m3u8'),
+ ('repeated', 'own', '/repeated.m3u8'),
+ ('nocodecs', 'own', '/nocodecs.m3u8'),
+ ('aes', 'own', '/aes.m3u8'),
+ ('portrait', 'own', '/my%20clip.m3u8'),
+ ('order', 'own', '/order.m3u8'),
+ ('redirect', 'redirect', '/repeated.m3u8'),
+]
+
+# What resolve::parse reads of yt-dlp's answer.
+TOP = ['title', 'duration', 'direct', 'language']
+SUBS = ['subtitles', 'automatic_captions']
+FORMAT = ['format_id', 'ext', 'height', 'fps', 'vcodec', 'acodec', 'filesize', 'filesize_approx', 'tbr', 'protocol']
+
+
+def trim(info):
+ out = {k: info[k] for k in TOP if k in info}
+ for k in SUBS:
+ if info.get(k) is not None:
+ out[k] = {lang: [({'name': s['name']} if 'name' in s else {}) for s in subs]
+ for lang, subs in info[k].items()}
+ out['formats'] = [{k: f[k] for k in FORMAT if k in f} for f in info['formats']]
+ return json.dumps(out, indent=1, ensure_ascii=False) + '\n'
+
+
+class Streams(BaseHTTPRequestHandler):
+ def do_GET(self):
+ self.server.seen.append(urllib.parse.urlsplit(self.path).path)
+ body = STREAMS.get(urllib.parse.unquote(urllib.parse.urlsplit(self.path).path))
+ if body is None:
+ self.send_error(404)
+ return
+ data = body.encode()
+ self.send_response(200)
+ self.send_header('Content-Type', 'application/vnd.apple.mpegurl')
+ self.send_header('Content-Length', str(len(data)))
+ self.end_headers()
+ self.wfile.write(data)
+
+ def log_message(self, *args):
+ pass
+
+
+def loopback(url):
+ host = urllib.parse.urlsplit(url).hostname or ''
+ try:
+ return ipaddress.ip_address(host).is_loopback
+ except ValueError:
+ return host == 'localhost'
+
+
+def get(url, method='GET'):
+ assert loopback(url), url
+ with urllib.request.build_opener(urllib.request.ProxyHandler({})).open(
+ urllib.request.Request(url, method=method), timeout=10) as r:
+ return r.read()
+
+
+def main():
+ ap = argparse.ArgumentParser(description=__doc__.splitlines()[0])
+ ap.add_argument('--ytdlp', required=True, help='yt-dlp ' + YTDLP_VERSION)
+ ap.add_argument('--lab', default='http://127.0.0.1:8093', help='the lab server (mdm-labserver)')
+ ap.add_argument('--port', type=int, default=8094, help="the corpus's own streams' port")
+ ap.add_argument('--out', default=os.path.dirname(os.path.abspath(__file__)))
+ a = ap.parse_args()
+ if not loopback(a.lab):
+ sys.exit('the lab server must be on this computer')
+ version = subprocess.run([a.ytdlp, '--version'], capture_output=True, text=True).stdout.strip()
+ if version != YTDLP_VERSION:
+ print(f'note: yt-dlp {version}, the corpus is {YTDLP_VERSION}', file=sys.stderr)
+ server = ThreadingHTTPServer(('127.0.0.1', a.port), Streams)
+ server.seen = []
+ threading.Thread(target=server.serve_forever, daemon=True).start()
+ own = f'http://127.0.0.1:{a.port}'
+ lab = a.lab.rstrip('/')
+ try:
+ for case, where, path in CASES:
+ if where == 'lab':
+ address = lab + path
+ elif where == 'redirect':
+ address = lab + '/redirect?to=' + urllib.parse.quote(own + path, safe='')
+ else:
+ address = own + path
+ server.seen.clear()
+ get(lab + '/_log', 'DELETE')
+ cmd = [a.ytdlp, '--ignore-config', '--no-update', '--proxy', '', '-J', '--no-playlist', address]
+ print(' '.join(c if c else '""' for c in cmd[1:]), file=sys.stderr)
+ answer = subprocess.run(cmd, capture_output=True, timeout=120, check=True).stdout
+ info = json.loads(answer)
+ # The playlist yt-dlp asked for after the master: the first other one in the logs.
+ if where == 'lab':
+ seen = [e['path'] for e in json.loads(get(lab + '/_log')) if e['method'] == 'GET']
+ base = lab
+ else:
+ seen, base = list(server.seen), own
+ after = [p for p in seen if p != path]
+ master = get(base + path)
+ first = get(base + after[0])
+ folder = os.path.join(a.out, case)
+ os.makedirs(folder, exist_ok=True)
+ for name, data in [('master.m3u8', master), ('media.m3u8', first)]:
+ with open(os.path.join(folder, name), 'wb') as f:
+ f.write(data)
+ with open(os.path.join(folder, 'ytdlp.json'), 'w', encoding='utf-8', newline='\n') as f:
+ f.write(trim(info))
+ print(f'{case}: {address} -> {base}{after[0]}', file=sys.stderr)
+ finally:
+ server.shutdown()
+
+
+if __name__ == '__main__':
+ main()
diff --git a/crates/tools/tests/fixtures/hls/group/master.m3u8 b/crates/tools/tests/fixtures/hls/group/master.m3u8
new file mode 100644
index 00000000..10ec42a1
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/group/master.m3u8
@@ -0,0 +1,13 @@
+#EXTM3U
+#EXT-X-VERSION:4
+#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="English",LANGUAGE="en",DEFAULT=YES,AUTOSELECT=YES,URI="a/en.m3u8"
+#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",NAME="Deutsch",LANGUAGE="de",DEFAULT=NO,AUTOSELECT=YES,URI="a/de.m3u8"
+#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="Deutsch",LANGUAGE="de",URI="s/de.m3u8"
+#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="Francais",LANGUAGE="fr",URI="s/fr.m3u8"
+#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="Unknown",URI="s/fr.m3u8"
+#EXT-X-STREAM-INF:BANDWIDTH=5000000,AVERAGE-BANDWIDTH=4500000,RESOLUTION=1920x1080,FRAME-RATE=60.000,CODECS="avc1.640028,mp4a.40.2",AUDIO="aac",SUBTITLES="subs"
+v/v1080.m3u8
+#EXT-X-STREAM-INF:BANDWIDTH=2800000,RESOLUTION=1280x720,FRAME-RATE=30,CODECS="avc1.4d401f,mp4a.40.2",AUDIO="aac",SUBTITLES="subs"
+v/v720.m3u8
+#EXT-X-STREAM-INF:BANDWIDTH=800000,RESOLUTION=640x360,CODECS="avc1.42e01e,mp4a.40.2",AUDIO="aac",SUBTITLES="subs"
+v/v360.m3u8
diff --git a/crates/tools/tests/fixtures/hls/group/media.m3u8 b/crates/tools/tests/fixtures/hls/group/media.m3u8
new file mode 100644
index 00000000..3657baf0
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/group/media.m3u8
@@ -0,0 +1,29 @@
+#EXTM3U
+#EXT-X-VERSION:3
+#EXT-X-TARGETDURATION:10
+#EXT-X-PLAYLIST-TYPE:VOD
+#EXTINF:9.6,
+seg0.ts
+#EXTINF:9.6,
+seg1.ts
+#EXTINF:9.6,
+seg2.ts
+#EXTINF:9.6,
+seg3.ts
+#EXTINF:9.6,
+seg4.ts
+#EXTINF:9.6,
+seg5.ts
+#EXTINF:9.6,
+seg6.ts
+#EXTINF:9.6,
+seg7.ts
+#EXTINF:9.6,
+seg8.ts
+#EXTINF:9.6,
+seg9.ts
+#EXTINF:9.6,
+seg10.ts
+#EXTINF:9.6,
+seg11.ts
+#EXT-X-ENDLIST
diff --git a/crates/tools/tests/fixtures/hls/group/ytdlp.json b/crates/tools/tests/fixtures/hls/group/ytdlp.json
new file mode 100644
index 00000000..c3661d3b
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/group/ytdlp.json
@@ -0,0 +1,62 @@
+{
+ "title": "group",
+ "duration": 115,
+ "language": "en",
+ "subtitles": {
+ "de": [
+ {}
+ ],
+ "fr": [
+ {}
+ ],
+ "und": [
+ {}
+ ]
+ },
+ "formats": [
+ {
+ "format_id": "aac-Deutsch",
+ "ext": "mp4",
+ "vcodec": "none",
+ "tbr": null,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "aac-English",
+ "ext": "mp4",
+ "vcodec": "none",
+ "tbr": null,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "800",
+ "ext": "mp4",
+ "height": 360,
+ "fps": null,
+ "vcodec": "avc1.42e01e",
+ "acodec": "none",
+ "tbr": 800.0,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "2800",
+ "ext": "mp4",
+ "height": 720,
+ "fps": 30.0,
+ "vcodec": "avc1.4d401f",
+ "acodec": "none",
+ "tbr": 2800.0,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "4500",
+ "ext": "mp4",
+ "height": 1080,
+ "fps": 60.0,
+ "vcodec": "avc1.640028",
+ "acodec": "none",
+ "tbr": 4500.0,
+ "protocol": "m3u8_native"
+ }
+ ]
+}
diff --git a/crates/tools/tests/fixtures/hls/lab/master.m3u8 b/crates/tools/tests/fixtures/hls/lab/master.m3u8
new file mode 100644
index 00000000..133f68b8
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/lab/master.m3u8
@@ -0,0 +1,7 @@
+#EXTM3U
+#EXT-X-VERSION:3
+#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aud",NAME="English",LANGUAGE="en",DEFAULT=YES,AUTOSELECT=YES,URI="audio/index.m3u8"
+#EXT-X-STREAM-INF:BANDWIDTH=1280000,RESOLUTION=1280x720,CODECS="avc1.4d401f,mp4a.40.2",AUDIO="aud"
+720p/index.m3u8
+#EXT-X-STREAM-INF:BANDWIDTH=640000,RESOLUTION=640x360,CODECS="avc1.4d401f,mp4a.40.2",AUDIO="aud"
+360p/index.m3u8
diff --git a/crates/tools/tests/fixtures/hls/lab/media.m3u8 b/crates/tools/tests/fixtures/hls/lab/media.m3u8
new file mode 100644
index 00000000..66b244dc
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/lab/media.m3u8
@@ -0,0 +1,12 @@
+#EXTM3U
+#EXT-X-VERSION:3
+#EXT-X-TARGETDURATION:4
+#EXT-X-MEDIA-SEQUENCE:0
+#EXT-X-PLAYLIST-TYPE:VOD
+#EXTINF:4.000,
+seg0.ts
+#EXTINF:4.000,
+seg1.ts
+#EXTINF:4.000,
+seg2.ts
+#EXT-X-ENDLIST
diff --git a/crates/tools/tests/fixtures/hls/lab/ytdlp.json b/crates/tools/tests/fixtures/hls/lab/ytdlp.json
new file mode 100644
index 00000000..5de8768f
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/lab/ytdlp.json
@@ -0,0 +1,35 @@
+{
+ "title": "master",
+ "duration": 12,
+ "language": "en",
+ "subtitles": {},
+ "formats": [
+ {
+ "format_id": "aud-English",
+ "ext": "mp4",
+ "vcodec": "none",
+ "tbr": null,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "640",
+ "ext": "mp4",
+ "height": 360,
+ "fps": null,
+ "vcodec": "avc1.4d401f",
+ "acodec": "none",
+ "tbr": 640.0,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "1280",
+ "ext": "mp4",
+ "height": 720,
+ "fps": null,
+ "vcodec": "avc1.4d401f",
+ "acodec": "none",
+ "tbr": 1280.0,
+ "protocol": "m3u8_native"
+ }
+ ]
+}
diff --git a/crates/tools/tests/fixtures/hls/nocodecs/master.m3u8 b/crates/tools/tests/fixtures/hls/nocodecs/master.m3u8
new file mode 100644
index 00000000..02634ded
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/nocodecs/master.m3u8
@@ -0,0 +1,6 @@
+#EXTM3U
+#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aud",NAME="English",LANGUAGE="en",URI="a/en.m3u8"
+#EXT-X-STREAM-INF:BANDWIDTH=2500000,RESOLUTION=1280x720,AUDIO="aud"
+v/v720.m3u8
+#EXT-X-STREAM-INF:BANDWIDTH=900000,RESOLUTION=640x360,AUDIO="aud"
+v/v360.m3u8
diff --git a/crates/tools/tests/fixtures/hls/nocodecs/media.m3u8 b/crates/tools/tests/fixtures/hls/nocodecs/media.m3u8
new file mode 100644
index 00000000..3657baf0
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/nocodecs/media.m3u8
@@ -0,0 +1,29 @@
+#EXTM3U
+#EXT-X-VERSION:3
+#EXT-X-TARGETDURATION:10
+#EXT-X-PLAYLIST-TYPE:VOD
+#EXTINF:9.6,
+seg0.ts
+#EXTINF:9.6,
+seg1.ts
+#EXTINF:9.6,
+seg2.ts
+#EXTINF:9.6,
+seg3.ts
+#EXTINF:9.6,
+seg4.ts
+#EXTINF:9.6,
+seg5.ts
+#EXTINF:9.6,
+seg6.ts
+#EXTINF:9.6,
+seg7.ts
+#EXTINF:9.6,
+seg8.ts
+#EXTINF:9.6,
+seg9.ts
+#EXTINF:9.6,
+seg10.ts
+#EXTINF:9.6,
+seg11.ts
+#EXT-X-ENDLIST
diff --git a/crates/tools/tests/fixtures/hls/nocodecs/ytdlp.json b/crates/tools/tests/fixtures/hls/nocodecs/ytdlp.json
new file mode 100644
index 00000000..5cb6b11c
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/nocodecs/ytdlp.json
@@ -0,0 +1,30 @@
+{
+ "title": "nocodecs",
+ "duration": 115,
+ "subtitles": {},
+ "formats": [
+ {
+ "format_id": "aud-English",
+ "ext": "mp4",
+ "vcodec": "none",
+ "tbr": null,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "900",
+ "ext": "mp4",
+ "height": 360,
+ "fps": null,
+ "tbr": 900.0,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "2500",
+ "ext": "mp4",
+ "height": 720,
+ "fps": null,
+ "tbr": 2500.0,
+ "protocol": "m3u8_native"
+ }
+ ]
+}
diff --git a/crates/tools/tests/fixtures/hls/order/master.m3u8 b/crates/tools/tests/fixtures/hls/order/master.m3u8
new file mode 100644
index 00000000..0a170e4d
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/order/master.m3u8
@@ -0,0 +1,6 @@
+#EXTM3U
+#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aud",NAME="English",LANGUAGE="en",URI="a/en.m3u8"
+#EXT-X-STREAM-INF:BANDWIDTH=500000,RESOLUTION=480x270,CODECS="avc1.42e01e",AUDIO="aud"
+v/v480.m3u8
+#EXT-X-STREAM-INF:BANDWIDTH=6000000,RESOLUTION=1920x1080,CODECS="avc1.640028",AUDIO="aud"
+v/v1080.m3u8
diff --git a/crates/tools/tests/fixtures/hls/order/media.m3u8 b/crates/tools/tests/fixtures/hls/order/media.m3u8
new file mode 100644
index 00000000..3657baf0
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/order/media.m3u8
@@ -0,0 +1,29 @@
+#EXTM3U
+#EXT-X-VERSION:3
+#EXT-X-TARGETDURATION:10
+#EXT-X-PLAYLIST-TYPE:VOD
+#EXTINF:9.6,
+seg0.ts
+#EXTINF:9.6,
+seg1.ts
+#EXTINF:9.6,
+seg2.ts
+#EXTINF:9.6,
+seg3.ts
+#EXTINF:9.6,
+seg4.ts
+#EXTINF:9.6,
+seg5.ts
+#EXTINF:9.6,
+seg6.ts
+#EXTINF:9.6,
+seg7.ts
+#EXTINF:9.6,
+seg8.ts
+#EXTINF:9.6,
+seg9.ts
+#EXTINF:9.6,
+seg10.ts
+#EXTINF:9.6,
+seg11.ts
+#EXT-X-ENDLIST
diff --git a/crates/tools/tests/fixtures/hls/order/ytdlp.json b/crates/tools/tests/fixtures/hls/order/ytdlp.json
new file mode 100644
index 00000000..ff0ef15a
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/order/ytdlp.json
@@ -0,0 +1,35 @@
+{
+ "title": "order",
+ "duration": 115,
+ "language": "en",
+ "subtitles": {},
+ "formats": [
+ {
+ "format_id": "aud-English",
+ "ext": "mp4",
+ "vcodec": "none",
+ "tbr": null,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "500",
+ "ext": "mp4",
+ "height": 270,
+ "fps": null,
+ "vcodec": "avc1.42e01e",
+ "acodec": "none",
+ "tbr": 500.0,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "6000",
+ "ext": "mp4",
+ "height": 1080,
+ "fps": null,
+ "vcodec": "avc1.640028",
+ "acodec": "none",
+ "tbr": 6000.0,
+ "protocol": "m3u8_native"
+ }
+ ]
+}
diff --git a/crates/tools/tests/fixtures/hls/portrait/master.m3u8 b/crates/tools/tests/fixtures/hls/portrait/master.m3u8
new file mode 100644
index 00000000..9f053784
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/portrait/master.m3u8
@@ -0,0 +1,6 @@
+#EXTM3U
+#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aud",NAME="Main",DEFAULT=YES
+#EXT-X-STREAM-INF:BANDWIDTH=1800000,RESOLUTION=720x1280,CODECS="avc1.4d401f,mp4a.40.2",AUDIO="aud"
+v/v720.m3u8
+#EXT-X-STREAM-INF:BANDWIDTH=700000,RESOLUTION=360x640,CODECS="avc1.42e01e,mp4a.40.2",AUDIO="aud"
+v/v360.m3u8
diff --git a/crates/tools/tests/fixtures/hls/portrait/media.m3u8 b/crates/tools/tests/fixtures/hls/portrait/media.m3u8
new file mode 100644
index 00000000..eb142512
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/portrait/media.m3u8
@@ -0,0 +1,25 @@
+#EXTM3U
+#EXT-X-VERSION:3
+#EXT-X-TARGETDURATION:10
+#EXT-X-PLAYLIST-TYPE:VOD
+#EXTINF:9.5,
+seg0.ts
+#EXTINF:9.5,
+seg1.ts
+#EXTINF:9.5,
+seg2.ts
+#EXTINF:9.5,
+seg3.ts
+#EXTINF:9.5,
+seg4.ts
+#EXTINF:9.5,
+seg5.ts
+#EXTINF:9.5,
+seg6.ts
+#EXTINF:9.5,
+seg7.ts
+#EXTINF:9.5,
+seg8.ts
+#EXTINF:9.5,
+seg9.ts
+#EXT-X-ENDLIST
diff --git a/crates/tools/tests/fixtures/hls/portrait/ytdlp.json b/crates/tools/tests/fixtures/hls/portrait/ytdlp.json
new file mode 100644
index 00000000..36acecad
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/portrait/ytdlp.json
@@ -0,0 +1,27 @@
+{
+ "title": "my clip",
+ "duration": 95,
+ "subtitles": {},
+ "formats": [
+ {
+ "format_id": "700",
+ "ext": "mp4",
+ "height": 640,
+ "fps": null,
+ "vcodec": "avc1.42e01e",
+ "acodec": "mp4a.40.2",
+ "tbr": 700.0,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "1800",
+ "ext": "mp4",
+ "height": 1280,
+ "fps": null,
+ "vcodec": "avc1.4d401f",
+ "acodec": "mp4a.40.2",
+ "tbr": 1800.0,
+ "protocol": "m3u8_native"
+ }
+ ]
+}
diff --git a/crates/tools/tests/fixtures/hls/redirect/master.m3u8 b/crates/tools/tests/fixtures/hls/redirect/master.m3u8
new file mode 100644
index 00000000..6d9d2b0c
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/redirect/master.m3u8
@@ -0,0 +1,9 @@
+#EXTM3U
+#EXT-X-STREAM-INF:BANDWIDTH=2000000,AVERAGE-BANDWIDTH=1800000,RESOLUTION=1280x720,FRAME-RATE=30.000,CODECS="avc1.4d401f,mp4a.40.2"
+v/v720.m3u8
+#EXT-X-STREAM-INF:BANDWIDTH=4000000,RESOLUTION=1280x720,FRAME-RATE=59.940,CODECS="avc1.4d401f,mp4a.40.2"
+v/v720b.m3u8
+#EXT-X-STREAM-INF:BANDWIDTH=1234567,RESOLUTION=854x480,FRAME-RATE=29.97,CODECS="avc1.4d401e,mp4a.40.2"
+v/v480.m3u8
+#EXT-X-STREAM-INF:BANDWIDTH=700000,RESOLUTION=854x480,CODECS="avc1.4d401e,mp4a.40.2"
+v/v360.m3u8
diff --git a/crates/tools/tests/fixtures/hls/redirect/media.m3u8 b/crates/tools/tests/fixtures/hls/redirect/media.m3u8
new file mode 100644
index 00000000..eb142512
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/redirect/media.m3u8
@@ -0,0 +1,25 @@
+#EXTM3U
+#EXT-X-VERSION:3
+#EXT-X-TARGETDURATION:10
+#EXT-X-PLAYLIST-TYPE:VOD
+#EXTINF:9.5,
+seg0.ts
+#EXTINF:9.5,
+seg1.ts
+#EXTINF:9.5,
+seg2.ts
+#EXTINF:9.5,
+seg3.ts
+#EXTINF:9.5,
+seg4.ts
+#EXTINF:9.5,
+seg5.ts
+#EXTINF:9.5,
+seg6.ts
+#EXTINF:9.5,
+seg7.ts
+#EXTINF:9.5,
+seg8.ts
+#EXTINF:9.5,
+seg9.ts
+#EXT-X-ENDLIST
diff --git a/crates/tools/tests/fixtures/hls/redirect/ytdlp.json b/crates/tools/tests/fixtures/hls/redirect/ytdlp.json
new file mode 100644
index 00000000..e6c0cd51
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/redirect/ytdlp.json
@@ -0,0 +1,47 @@
+{
+ "title": "repeated",
+ "duration": 95,
+ "subtitles": {},
+ "formats": [
+ {
+ "format_id": "700",
+ "ext": "mp4",
+ "height": 480,
+ "fps": null,
+ "vcodec": "avc1.4d401e",
+ "acodec": "mp4a.40.2",
+ "tbr": 700.0,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "1234",
+ "ext": "mp4",
+ "height": 480,
+ "fps": 29.97,
+ "vcodec": "avc1.4d401e",
+ "acodec": "mp4a.40.2",
+ "tbr": 1234.567,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "1800",
+ "ext": "mp4",
+ "height": 720,
+ "fps": 30.0,
+ "vcodec": "avc1.4d401f",
+ "acodec": "mp4a.40.2",
+ "tbr": 1800.0,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "4000",
+ "ext": "mp4",
+ "height": 720,
+ "fps": 59.94,
+ "vcodec": "avc1.4d401f",
+ "acodec": "mp4a.40.2",
+ "tbr": 4000.0,
+ "protocol": "m3u8_native"
+ }
+ ]
+}
diff --git a/crates/tools/tests/fixtures/hls/repeated/master.m3u8 b/crates/tools/tests/fixtures/hls/repeated/master.m3u8
new file mode 100644
index 00000000..6d9d2b0c
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/repeated/master.m3u8
@@ -0,0 +1,9 @@
+#EXTM3U
+#EXT-X-STREAM-INF:BANDWIDTH=2000000,AVERAGE-BANDWIDTH=1800000,RESOLUTION=1280x720,FRAME-RATE=30.000,CODECS="avc1.4d401f,mp4a.40.2"
+v/v720.m3u8
+#EXT-X-STREAM-INF:BANDWIDTH=4000000,RESOLUTION=1280x720,FRAME-RATE=59.940,CODECS="avc1.4d401f,mp4a.40.2"
+v/v720b.m3u8
+#EXT-X-STREAM-INF:BANDWIDTH=1234567,RESOLUTION=854x480,FRAME-RATE=29.97,CODECS="avc1.4d401e,mp4a.40.2"
+v/v480.m3u8
+#EXT-X-STREAM-INF:BANDWIDTH=700000,RESOLUTION=854x480,CODECS="avc1.4d401e,mp4a.40.2"
+v/v360.m3u8
diff --git a/crates/tools/tests/fixtures/hls/repeated/media.m3u8 b/crates/tools/tests/fixtures/hls/repeated/media.m3u8
new file mode 100644
index 00000000..eb142512
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/repeated/media.m3u8
@@ -0,0 +1,25 @@
+#EXTM3U
+#EXT-X-VERSION:3
+#EXT-X-TARGETDURATION:10
+#EXT-X-PLAYLIST-TYPE:VOD
+#EXTINF:9.5,
+seg0.ts
+#EXTINF:9.5,
+seg1.ts
+#EXTINF:9.5,
+seg2.ts
+#EXTINF:9.5,
+seg3.ts
+#EXTINF:9.5,
+seg4.ts
+#EXTINF:9.5,
+seg5.ts
+#EXTINF:9.5,
+seg6.ts
+#EXTINF:9.5,
+seg7.ts
+#EXTINF:9.5,
+seg8.ts
+#EXTINF:9.5,
+seg9.ts
+#EXT-X-ENDLIST
diff --git a/crates/tools/tests/fixtures/hls/repeated/ytdlp.json b/crates/tools/tests/fixtures/hls/repeated/ytdlp.json
new file mode 100644
index 00000000..e6c0cd51
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/repeated/ytdlp.json
@@ -0,0 +1,47 @@
+{
+ "title": "repeated",
+ "duration": 95,
+ "subtitles": {},
+ "formats": [
+ {
+ "format_id": "700",
+ "ext": "mp4",
+ "height": 480,
+ "fps": null,
+ "vcodec": "avc1.4d401e",
+ "acodec": "mp4a.40.2",
+ "tbr": 700.0,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "1234",
+ "ext": "mp4",
+ "height": 480,
+ "fps": 29.97,
+ "vcodec": "avc1.4d401e",
+ "acodec": "mp4a.40.2",
+ "tbr": 1234.567,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "1800",
+ "ext": "mp4",
+ "height": 720,
+ "fps": 30.0,
+ "vcodec": "avc1.4d401f",
+ "acodec": "mp4a.40.2",
+ "tbr": 1800.0,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "4000",
+ "ext": "mp4",
+ "height": 720,
+ "fps": 59.94,
+ "vcodec": "avc1.4d401f",
+ "acodec": "mp4a.40.2",
+ "tbr": 4000.0,
+ "protocol": "m3u8_native"
+ }
+ ]
+}
diff --git a/crates/tools/tests/fixtures/hls/videoonly/master.m3u8 b/crates/tools/tests/fixtures/hls/videoonly/master.m3u8
new file mode 100644
index 00000000..54606b11
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/videoonly/master.m3u8
@@ -0,0 +1,11 @@
+#EXTM3U
+#EXT-X-INDEPENDENT-SEGMENTS
+#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="a1",NAME="main",LANGUAGE="en",DEFAULT=YES,URI="a/en.m3u8"
+#EXT-X-STREAM-INF:BANDWIDTH=3000000,RESOLUTION=1280x720,CODECS="avc1.4d401f",AUDIO="a1"
+v/v720.m3u8
+#EXT-X-STREAM-INF:BANDWIDTH=1200000,RESOLUTION=854x480,CODECS="avc1.4d401e",AUDIO="a1"
+v/v480.m3u8
+#EXT-X-STREAM-INF:BANDWIDTH=96000,CODECS="mp4a.40.2"
+a/de.m3u8
+#EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=300000,RESOLUTION=1280x720,CODECS="avc1.4d401f",URI="v/v720b.m3u8"
+#EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=100000,RESOLUTION=854x480,CODECS="avc1.4d401e",URI="v/v480.m3u8"
diff --git a/crates/tools/tests/fixtures/hls/videoonly/media.m3u8 b/crates/tools/tests/fixtures/hls/videoonly/media.m3u8
new file mode 100644
index 00000000..3657baf0
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/videoonly/media.m3u8
@@ -0,0 +1,29 @@
+#EXTM3U
+#EXT-X-VERSION:3
+#EXT-X-TARGETDURATION:10
+#EXT-X-PLAYLIST-TYPE:VOD
+#EXTINF:9.6,
+seg0.ts
+#EXTINF:9.6,
+seg1.ts
+#EXTINF:9.6,
+seg2.ts
+#EXTINF:9.6,
+seg3.ts
+#EXTINF:9.6,
+seg4.ts
+#EXTINF:9.6,
+seg5.ts
+#EXTINF:9.6,
+seg6.ts
+#EXTINF:9.6,
+seg7.ts
+#EXTINF:9.6,
+seg8.ts
+#EXTINF:9.6,
+seg9.ts
+#EXTINF:9.6,
+seg10.ts
+#EXTINF:9.6,
+seg11.ts
+#EXT-X-ENDLIST
diff --git a/crates/tools/tests/fixtures/hls/videoonly/ytdlp.json b/crates/tools/tests/fixtures/hls/videoonly/ytdlp.json
new file mode 100644
index 00000000..98eb2abb
--- /dev/null
+++ b/crates/tools/tests/fixtures/hls/videoonly/ytdlp.json
@@ -0,0 +1,44 @@
+{
+ "title": "videoonly",
+ "duration": 115,
+ "language": null,
+ "subtitles": {},
+ "formats": [
+ {
+ "format_id": "a1-main",
+ "ext": "mp4",
+ "vcodec": "none",
+ "tbr": null,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "96",
+ "ext": "mp4",
+ "fps": null,
+ "vcodec": "none",
+ "acodec": "mp4a.40.2",
+ "tbr": 96.0,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "1200",
+ "ext": "mp4",
+ "height": 480,
+ "fps": null,
+ "vcodec": "avc1.4d401e",
+ "acodec": "none",
+ "tbr": 1200.0,
+ "protocol": "m3u8_native"
+ },
+ {
+ "format_id": "3000",
+ "ext": "mp4",
+ "height": 720,
+ "fps": null,
+ "vcodec": "avc1.4d401f",
+ "acodec": "none",
+ "tbr": 3000.0,
+ "protocol": "m3u8_native"
+ }
+ ]
+}
diff --git a/docs/automation-api.schema.json b/docs/automation-api.schema.json
index 45952750..d3eb1026 100644
--- a/docs/automation-api.schema.json
+++ b/docs/automation-api.schema.json
@@ -554,6 +554,18 @@
"null"
]
},
+ "video_lookup": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/VideoLookup"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "From the browser's quality menu over a video (the button's click): look this video up\nwith yt-dlp, off the window, and answer at once with a token to ask about it\n([`api::VideoLookupAnswer`], `pending`). The browser's request context (`referer`,\n`cookies`, `cookie_jar`, `user_agent`, `private`) goes with it and stays the look-up's."
+ },
"video_page": {
"default": null,
"description": "From the browser's download button over a video: open the Download video window for this\npage (its address; an embedded player's own).",
@@ -562,6 +574,26 @@
"null"
]
},
+ "video_pick": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/VideoPick"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The quality menu: download the choice made there, with the look-up's own selector and\ncontext (`private` must be the look-up's); answered `started` or `queued`, or\n`use-window` when it can't be (the Download video window then does it)."
+ },
+ "video_poll": {
+ "default": null,
+ "description": "The quality menu: how is the look-up of this token going (`pending`, `ready` with the\nchoices, `failed`, `list`, `gone`)?",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
"video_title": {
"default": null,
"description": "The title of the page the button was clicked on: a video yt-dlp knows only by its address\nis named by it.",
@@ -593,11 +625,141 @@
"why"
],
"type": "object"
+ },
+ "VideoChoice": {
+ "description": "One quality the browser's quality menu offers.",
+ "properties": {
+ "audio": {
+ "default": false,
+ "description": "Only the sound (an audio file, a conversion to MP3, Opus or FLAC): the menu lists these\napart from the videos. False from an app older than the field.",
+ "type": "boolean"
+ },
+ "ext": {
+ "default": "",
+ "description": "The file's type (`mp4`, `mp3`).",
+ "type": "string"
+ },
+ "label": {
+ "default": "",
+ "description": "What the menu shows (\"720p mp4\"), in MDM's language.",
+ "type": "string"
+ },
+ "size": {
+ "default": null,
+ "description": "Bytes, exact or estimated; null when unknown.",
+ "format": "uint64",
+ "minimum": 0,
+ "type": [
+ "integer",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "VideoLookup": {
+ "description": "The video the browser's quality menu asks about ([`Command::video_lookup`]).",
+ "properties": {
+ "address": {
+ "default": "",
+ "description": "What yt-dlp looks up: the video's own file or its stream's manifest when the page plays\none, else the page.",
+ "type": "string"
+ },
+ "store_id": {
+ "default": null,
+ "description": "The browser's cookie store the page is in (Firefox's containers): a choice is only taken\nfrom the same one.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "title": {
+ "default": null,
+ "description": "The title of the page the button was clicked on: a video yt-dlp knows only by its address\nis named by it (as [`Command::video_title`]).",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "VideoLookupAnswer": {
+ "description": "The browser's quality menu (`video_lookup`, `video_poll`, `video_pick`): where a look-up is,\nor what became of a choice. Answered whatever the automation API's switch (the browser's\nhost asks, not a program).",
+ "properties": {
+ "choices": {
+ "description": "`ready`: the qualities to choose from, labelled in MDM's language; `video_pick` takes a\nplace in this list.",
+ "items": {
+ "$ref": "#/$defs/VideoChoice"
+ },
+ "type": "array"
+ },
+ "message": {
+ "description": "`failed` with [`lookup::ERROR`]: why, in MDM's words and language.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "reason": {
+ "description": "`failed`: [`lookup::NO_YTDLP`], [`lookup::NO_CHOICES`] or [`lookup::ERROR`].",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "state": {
+ "default": "",
+ "description": "One of [`lookup`]'s states.",
+ "type": "string"
+ },
+ "title": {
+ "description": "`ready`: the video's title, the file's name: the page's when yt-dlp knows the video only\nby its address, as the Download video window names it ([`crate::Command::video_title`]).",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "token": {
+ "description": "`pending` and `ready`: the look-up's token, to ask about it and to pick from it.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "VideoPick": {
+ "description": "A choice made in the browser's quality menu ([`Command::video_pick`]).",
+ "properties": {
+ "choice": {
+ "default": 0,
+ "description": "The choice's place in the look-up's `choices`.",
+ "format": "uint",
+ "minimum": 0,
+ "type": "integer"
+ },
+ "store_id": {
+ "default": null,
+ "description": "The cookie store the choice was made in: the look-up's, or it isn't taken.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "token": {
+ "default": "",
+ "description": "The look-up's token.",
+ "type": "string"
+ }
+ },
+ "type": "object"
}
},
"$id": "https://misterdownloadmanager.com/automation-api.schema.json",
"$ref": "#/$defs/Request",
"$schema": "https://json-schema.org/draft/2020-12/schema",
- "description": "One JSON line to the port in ipc.json (on 127.0.0.1), one line back. A request is `Request`. A command (an address to add, start_queue) is answered `ok`; a question is answered with the JSON object for it (`ListAnswer`, `ActAnswer`, `ApiAnswer`) or an `ErrorAnswer`. A wrong token is answered `denied`, an app that doesn't answer within 2 seconds `timeout`. Guide: https://misterdownloadmanager.com/help/command-line.html#the-automation-api",
+ "description": "One JSON line to the port in ipc.json (on 127.0.0.1), one line back. A request is `Request`. A command (an address to add, start_queue) is answered `ok`; a question is answered with the JSON object for it (`ListAnswer`, `ActAnswer`, `ApiAnswer`) or an `ErrorAnswer`. A wrong token is answered `denied`, an app that doesn't answer within 2 seconds `timeout`. The browser's quality menu (`video_lookup`, `video_poll`, `video_pick`, sent by its native host) is answered with a `VideoLookupAnswer`. Guide: https://misterdownloadmanager.com/help/command-line.html#the-automation-api",
"title": "Mister Download Manager automation API"
}
diff --git a/docs/browser-integration.md b/docs/browser-integration.md
index 2a870a80..d39714cd 100644
--- a/docs/browser-integration.md
+++ b/docs/browser-integration.md
@@ -178,7 +178,7 @@ If MDM can't be reached when you choose one of these, the help page opens at the
![The Download video button over a YouTube video in Chrome](images/help/video-button.webp)
*The button over a video. Drag it where you like; it stays there.*
-Point at a video on a web page and a small **Download video** button appears at its edge. Click it and MDM's **Download video from a page** window opens and looks up the qualities it can download. It takes the video you clicked: its own file when it plays one, or the stream the player loaded (HLS or DASH), else the page. When the button can't tell which one you mean, the toolbar button's [Media on this page](#media-on-this-page) lists them all. Embedded players work too, and your sign-in for the site, the page that embeds the player and your browser's User-Agent go with it, so videos for members, or that play only on the site that embeds them, can be downloaded. Sound players get the button too.
+Point at a video on a web page and a small **Download video** button appears at its edge. Click it and a menu opens over the video: MDM looks up the qualities it can download and lists them with their sizes. Pick one and it downloads at once, with only its progress window; MDM's main window stays where it is (with **Do not start downloading, only add files to the queue** on in Options, it goes in the queue instead). **Open in Mister Download Manager...** at the bottom of the menu opens the **Download video from a page** window instead. MDM must be running for the menu: when it isn't, or for another MDM you send downloads to, a click opens that window directly. It takes the video you clicked: its own file when it plays one, or the stream the player loaded (HLS or DASH), else the page. When the button can't tell which one you mean, the toolbar button's [Media on this page](#media-on-this-page) lists them all. Embedded players work too, and your sign-in for the site, the page that embeds the player and your browser's User-Agent go with it, so videos for members, or that play only on the site that embeds them, can be downloaded. Sound players get the button too.
It stays out of the way: it shows only while you point at a video (or the player has the keyboard's focus; **Tab** then moves to the button), fades when the pointer rests, and leaves out small videos and short muted loops (animated pictures, backgrounds). In fullscreen it follows the video when the player allows it. On a copy-protected video (DRM) it says that the video can't be saved.
diff --git a/extension/_locales/am/messages.json b/extension/_locales/am/messages.json
index cc6560c4..f27d45d4 100644
--- a/extension/_locales/am/messages.json
+++ b/extension/_locales/am/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "ይህ የትኛው ቪዲዮ እንደሆነ ማወቅ አልተቻለም፦ የራሱን ገጽ ከፍተው እዚያ ይሞክሩ"
},
+ "video_looking": {
+ "message": "ጥራቶችን በመፈለግ ላይ…"
+ },
+ "video_open_mdm": {
+ "message": "በMister Download Manager ውስጥ ክፈት…"
+ },
+ "video_no_choices": {
+ "message": "እዚህ የሚወርድ ቪዲዮ የለም"
+ },
+ "video_playlist": {
+ "message": "የቪዲዮዎች ዝርዝር፦ በMister Download Manager ውስጥ ይምረጧቸው"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager ለዚህ ቪዲዮ yt-dlp ይፈልጋል"
+ },
+ "video_too_long": {
+ "message": "መፈለጉ በጣም ረጅም ጊዜ ወሰደ"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager በሌሎች ቪዲዮዎች ተጠምዷል"
+ },
+ "video_queued": {
+ "message": "ወደ ወረፋው ታክሏል"
+ },
+ "video_failed_lookup": {
+ "message": "መፈለግ አልተቻለም"
+ },
+ "video_tab_video": {
+ "message": "ቪዲዮ"
+ },
+ "video_tab_audio": {
+ "message": "ኦዲዮ"
+ },
"video_open_post": {
"message": "ልጥፉን ይክፈቱ፣ ከዚያ እዚያ ያለውን አዝራር ይጠቀሙ"
},
diff --git a/extension/_locales/ar/messages.json b/extension/_locales/ar/messages.json
index 606e2937..21eeca07 100644
--- a/extension/_locales/ar/messages.json
+++ b/extension/_locales/ar/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "تعذّر تحديد هذا الفيديو: افتح صفحته الخاصة وحاول من هناك"
},
+ "video_looking": {
+ "message": "يجري البحث عن الجودات…"
+ },
+ "video_open_mdm": {
+ "message": "فتح في Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "لا يوجد فيديو للتنزيل هنا"
+ },
+ "video_playlist": {
+ "message": "قائمة فيديوهات: اختر منها في Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "يحتاج Mister Download Manager إلى yt-dlp لهذا الفيديو"
+ },
+ "video_too_long": {
+ "message": "استغرق البحث وقتا طويلا"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager مشغول بفيديوهات أخرى"
+ },
+ "video_queued": {
+ "message": "تمت الإضافة إلى قائمة الانتظار"
+ },
+ "video_failed_lookup": {
+ "message": "تعذر البحث"
+ },
+ "video_tab_video": {
+ "message": "فيديو"
+ },
+ "video_tab_audio": {
+ "message": "صوت"
+ },
"video_open_post": {
"message": "افتح المنشور، ثم استخدم الزر هناك"
},
diff --git a/extension/_locales/bg/messages.json b/extension/_locales/bg/messages.json
index 9f87953b..ba618af8 100644
--- a/extension/_locales/bg/messages.json
+++ b/extension/_locales/bg/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Не може да се определи кое видео е това: отворете собствената му страница и опитайте там"
},
+ "video_looking": {
+ "message": "Търсене на качествата…"
+ },
+ "video_open_mdm": {
+ "message": "Отваряне в Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Тук няма видео за изтегляне"
+ },
+ "video_playlist": {
+ "message": "Списък с видеоклипове: изберете ги в Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager се нуждае от yt-dlp за това видео"
+ },
+ "video_too_long": {
+ "message": "Търсенето отне твърде много време"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager е зает с други видеоклипове"
+ },
+ "video_queued": {
+ "message": "Добавено към опашката"
+ },
+ "video_failed_lookup": {
+ "message": "Търсенето не успя"
+ },
+ "video_tab_video": {
+ "message": "Видео"
+ },
+ "video_tab_audio": {
+ "message": "Аудио"
+ },
"video_open_post": {
"message": "Отворете публикацията, след това използвайте бутона там"
},
diff --git a/extension/_locales/bn/messages.json b/extension/_locales/bn/messages.json
index 954c4f58..312e7f21 100644
--- a/extension/_locales/bn/messages.json
+++ b/extension/_locales/bn/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "এটি কোন ভিডিও তা বোঝা যাচ্ছে না: ভিডিওটির নিজের পৃষ্ঠা খুলে সেখানে চেষ্টা করুন"
},
+ "video_looking": {
+ "message": "কোয়ালিটি খোঁজা হচ্ছে…"
+ },
+ "video_open_mdm": {
+ "message": "Mister Download Manager-এ খুলুন…"
+ },
+ "video_no_choices": {
+ "message": "এখানে ডাউনলোড করার মতো কোনো ভিডিও নেই"
+ },
+ "video_playlist": {
+ "message": "ভিডিওর তালিকা: Mister Download Manager-এ বেছে নিন"
+ },
+ "video_no_ytdlp": {
+ "message": "এই ভিডিওর জন্য Mister Download Manager-এর yt-dlp দরকার"
+ },
+ "video_too_long": {
+ "message": "খুঁজতে অনেক বেশি সময় লেগেছে"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager অন্য ভিডিওর কাজে ব্যস্ত"
+ },
+ "video_queued": {
+ "message": "কিউতে যোগ করা হয়েছে"
+ },
+ "video_failed_lookup": {
+ "message": "খোঁজা যায়নি"
+ },
+ "video_tab_video": {
+ "message": "ভিডিও"
+ },
+ "video_tab_audio": {
+ "message": "অডিও"
+ },
"video_open_post": {
"message": "পোস্টটি খুলুন, তারপর সেখানকার বোতামটি ব্যবহার করুন"
},
diff --git a/extension/_locales/ca/messages.json b/extension/_locales/ca/messages.json
index 139b6d5e..5b98820a 100644
--- a/extension/_locales/ca/messages.json
+++ b/extension/_locales/ca/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "No es pot saber quin vídeo és: obriu la seva pàgina i torneu-ho a provar allà"
},
+ "video_looking": {
+ "message": "Cercant les qualitats…"
+ },
+ "video_open_mdm": {
+ "message": "Obre a Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "No hi ha cap vídeo per baixar aquí"
+ },
+ "video_playlist": {
+ "message": "Una llista de vídeos: trieu-los a Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager necessita yt-dlp per a aquest vídeo"
+ },
+ "video_too_long": {
+ "message": "La cerca ha trigat massa"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager està ocupat amb altres vídeos"
+ },
+ "video_queued": {
+ "message": "S'ha afegit a la cua"
+ },
+ "video_failed_lookup": {
+ "message": "No s'ha pogut consultar"
+ },
+ "video_tab_video": {
+ "message": "Vídeo"
+ },
+ "video_tab_audio": {
+ "message": "Àudio"
+ },
"video_open_post": {
"message": "Obre la publicació i fes servir el botó que hi ha"
},
diff --git a/extension/_locales/cs/messages.json b/extension/_locales/cs/messages.json
index b14dfeb6..a49fcb8c 100644
--- a/extension/_locales/cs/messages.json
+++ b/extension/_locales/cs/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Nelze zjistit, o které video jde: otevřete jeho vlastní stránku a zkuste to tam"
},
+ "video_looking": {
+ "message": "Vyhledávání kvalit…"
+ },
+ "video_open_mdm": {
+ "message": "Otevřít v Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Tady není žádné video ke stažení"
+ },
+ "video_playlist": {
+ "message": "Seznam videí: vyberte je v Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager potřebuje pro toto video yt-dlp"
+ },
+ "video_too_long": {
+ "message": "Vyhledávání trvalo příliš dlouho"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager je zaneprázdněn jinými videi"
+ },
+ "video_queued": {
+ "message": "Přidáno do fronty"
+ },
+ "video_failed_lookup": {
+ "message": "Vyhledání se nezdařilo"
+ },
+ "video_tab_video": {
+ "message": "Video"
+ },
+ "video_tab_audio": {
+ "message": "Zvuk"
+ },
"video_open_post": {
"message": "Otevřete příspěvek a použijte tlačítko tam"
},
diff --git a/extension/_locales/da/messages.json b/extension/_locales/da/messages.json
index ddd387ff..04423601 100644
--- a/extension/_locales/da/messages.json
+++ b/extension/_locales/da/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Kan ikke se, hvilken video det er: Åbn videoens egen side, og prøv der"
},
+ "video_looking": {
+ "message": "Finder kvaliteterne…"
+ },
+ "video_open_mdm": {
+ "message": "Åbn i Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Ingen video at downloade her"
+ },
+ "video_playlist": {
+ "message": "En liste med videoer: vælg dem i Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager skal bruge yt-dlp til denne video"
+ },
+ "video_too_long": {
+ "message": "Opslaget tog for lang tid"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager er optaget af andre videoer"
+ },
+ "video_queued": {
+ "message": "Føjet til køen"
+ },
+ "video_failed_lookup": {
+ "message": "Kunne ikke slå det op"
+ },
+ "video_tab_video": {
+ "message": "Video"
+ },
+ "video_tab_audio": {
+ "message": "Lyd"
+ },
"video_open_post": {
"message": "Åbn opslaget, og brug derefter knappen der"
},
diff --git a/extension/_locales/de/messages.json b/extension/_locales/de/messages.json
index 71dc2691..322d1bc8 100644
--- a/extension/_locales/de/messages.json
+++ b/extension/_locales/de/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Nicht erkennbar, welches Video das ist: Öffnen Sie seine eigene Seite und versuchen Sie es dort"
},
+ "video_looking": {
+ "message": "Qualitäten werden gesucht…"
+ },
+ "video_open_mdm": {
+ "message": "In Mister Download Manager öffnen…"
+ },
+ "video_no_choices": {
+ "message": "Hier gibt es kein Video zum Herunterladen"
+ },
+ "video_playlist": {
+ "message": "Eine Liste von Videos: Wählen Sie sie in Mister Download Manager aus"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager benötigt yt-dlp für dieses Video"
+ },
+ "video_too_long": {
+ "message": "Die Abfrage hat zu lange gedauert"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager ist mit anderen Videos beschäftigt"
+ },
+ "video_queued": {
+ "message": "Zur Warteschlange hinzugefügt"
+ },
+ "video_failed_lookup": {
+ "message": "Abfrage nicht möglich"
+ },
+ "video_tab_video": {
+ "message": "Video"
+ },
+ "video_tab_audio": {
+ "message": "Audio"
+ },
"video_open_post": {
"message": "Beitrag öffnen, dann die Schaltfläche dort verwenden"
},
diff --git a/extension/_locales/el/messages.json b/extension/_locales/el/messages.json
index b6f6bf03..47d127c6 100644
--- a/extension/_locales/el/messages.json
+++ b/extension/_locales/el/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Δεν είναι σαφές ποιο βίντεο είναι αυτό: ανοίξτε τη δική του σελίδα και δοκιμάστε εκεί"
},
+ "video_looking": {
+ "message": "Αναζήτηση ποιοτήτων…"
+ },
+ "video_open_mdm": {
+ "message": "Άνοιγμα στο Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Δεν υπάρχει βίντεο για λήψη εδώ"
+ },
+ "video_playlist": {
+ "message": "Μια λίστα βίντεο: επιλέξτε τα στο Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Το Mister Download Manager χρειάζεται το yt-dlp για αυτό το βίντεο"
+ },
+ "video_too_long": {
+ "message": "Η αναζήτηση άργησε υπερβολικά"
+ },
+ "video_busy": {
+ "message": "Το Mister Download Manager είναι απασχολημένο με άλλα βίντεο"
+ },
+ "video_queued": {
+ "message": "Προστέθηκε στην ουρά"
+ },
+ "video_failed_lookup": {
+ "message": "Η αναζήτηση απέτυχε"
+ },
+ "video_tab_video": {
+ "message": "Βίντεο"
+ },
+ "video_tab_audio": {
+ "message": "Ήχος"
+ },
"video_open_post": {
"message": "Ανοίξτε την ανάρτηση και μετά χρησιμοποιήστε το κουμπί εκεί"
},
diff --git a/extension/_locales/en/messages.json b/extension/_locales/en/messages.json
index e9908d2a..1ed2a86a 100644
--- a/extension/_locales/en/messages.json
+++ b/extension/_locales/en/messages.json
@@ -241,6 +241,50 @@
"message": "Can't tell which video this is: open its own page and try there",
"description": "shown briefly on the download button when nothing on the page says which video the player is playing, so nothing was sent"
},
+ "video_looking": {
+ "message": "Looking up the qualities…",
+ "description": "in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in"
+ },
+ "video_open_mdm": {
+ "message": "Open in Mister Download Manager…",
+ "description": "last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is"
+ },
+ "video_no_choices": {
+ "message": "No video to download here",
+ "description": "in the menu under the download button over a video: the app found no quality of the video it could download"
+ },
+ "video_playlist": {
+ "message": "A list of videos: choose them in Mister Download Manager",
+ "description": "in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager needs yt-dlp for this video",
+ "description": "in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is"
+ },
+ "video_too_long": {
+ "message": "Looking up took too long",
+ "description": "in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager is busy with other videos",
+ "description": "in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is"
+ },
+ "video_queued": {
+ "message": "Added to the queue",
+ "description": "shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later"
+ },
+ "video_failed_lookup": {
+ "message": "Could not look it up",
+ "description": "in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line"
+ },
+ "video_tab_video": {
+ "message": "Video",
+ "description": "tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word"
+ },
+ "video_tab_audio": {
+ "message": "Audio",
+ "description": "tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word"
+ },
"video_open_post": {
"message": "Open the post, then use the button there",
"description": "shown briefly on the download button over a video in a feed (a social site's home page, a timeline) when nothing in the feed gives that video's own address, so nothing was sent: the user should open the post the video belongs to and click the button on that page; short"
diff --git a/extension/_locales/es/messages.json b/extension/_locales/es/messages.json
index a913a880..1e0b9583 100644
--- a/extension/_locales/es/messages.json
+++ b/extension/_locales/es/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "No se puede saber qué vídeo es: abre su propia página e inténtalo allí"
},
+ "video_looking": {
+ "message": "Buscando las calidades…"
+ },
+ "video_open_mdm": {
+ "message": "Abrir en Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "No hay vídeo que descargar aquí"
+ },
+ "video_playlist": {
+ "message": "Es una lista de vídeos: elíjalos en Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager necesita yt-dlp para este vídeo"
+ },
+ "video_too_long": {
+ "message": "La búsqueda tardó demasiado"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager está ocupado con otros vídeos"
+ },
+ "video_queued": {
+ "message": "Añadido a la cola"
+ },
+ "video_failed_lookup": {
+ "message": "No se pudieron buscar las calidades"
+ },
+ "video_tab_video": {
+ "message": "Vídeo"
+ },
+ "video_tab_audio": {
+ "message": "Audio"
+ },
"video_open_post": {
"message": "Abre la publicación y usa el botón allí"
},
diff --git a/extension/_locales/es_419/messages.json b/extension/_locales/es_419/messages.json
index ffe59500..615dafe8 100644
--- a/extension/_locales/es_419/messages.json
+++ b/extension/_locales/es_419/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "No se puede saber qué video es: abre su propia página e inténtalo ahí"
},
+ "video_looking": {
+ "message": "Buscando las calidades…"
+ },
+ "video_open_mdm": {
+ "message": "Abrir en Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "No hay video que descargar aquí"
+ },
+ "video_playlist": {
+ "message": "Es una lista de videos: elíjalos en Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager necesita yt-dlp para este video"
+ },
+ "video_too_long": {
+ "message": "La búsqueda tardó demasiado"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager está ocupado con otros videos"
+ },
+ "video_queued": {
+ "message": "Agregado a la cola"
+ },
+ "video_failed_lookup": {
+ "message": "No se pudieron buscar las calidades"
+ },
+ "video_tab_video": {
+ "message": "Video"
+ },
+ "video_tab_audio": {
+ "message": "Audio"
+ },
"video_open_post": {
"message": "Abre la publicación y usa el botón ahí"
},
diff --git a/extension/_locales/et/messages.json b/extension/_locales/et/messages.json
index 8755d9de..a19f20ef 100644
--- a/extension/_locales/et/messages.json
+++ b/extension/_locales/et/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Ei saa aru, mis video see on: ava video enda leht ja proovi seal"
},
+ "video_looking": {
+ "message": "Kvaliteetide otsimine…"
+ },
+ "video_open_mdm": {
+ "message": "Ava rakenduses Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Siin pole allalaaditavat videot"
+ },
+ "video_playlist": {
+ "message": "Videode loend: valige need rakenduses Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager vajab selle video jaoks programmi yt-dlp"
+ },
+ "video_too_long": {
+ "message": "Otsimine võttis liiga kaua aega"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager on teiste videotega hõivatud"
+ },
+ "video_queued": {
+ "message": "Lisatud järjekorda"
+ },
+ "video_failed_lookup": {
+ "message": "Otsimine ebaõnnestus"
+ },
+ "video_tab_video": {
+ "message": "Video"
+ },
+ "video_tab_audio": {
+ "message": "Heli"
+ },
"video_open_post": {
"message": "Ava postitus, siis kasuta sealset nuppu"
},
diff --git a/extension/_locales/fa/messages.json b/extension/_locales/fa/messages.json
index 48cf0092..313b97e7 100644
--- a/extension/_locales/fa/messages.json
+++ b/extension/_locales/fa/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "مشخص نیست این کدام ویدیو است: صفحهٔ خود ویدیو را باز کنید و آنجا امتحان کنید"
},
+ "video_looking": {
+ "message": "در حال جست‌وجوی کیفیت‌ها…"
+ },
+ "video_open_mdm": {
+ "message": "باز کردن در Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "ویدیویی برای دانلود در اینجا نیست"
+ },
+ "video_playlist": {
+ "message": "فهرستی از ویدیوها: آن‌ها را در Mister Download Manager انتخاب کنید"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager برای این ویدیو به yt-dlp نیاز دارد"
+ },
+ "video_too_long": {
+ "message": "جست‌وجو بیش از حد طول کشید"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager با ویدیوهای دیگر مشغول است"
+ },
+ "video_queued": {
+ "message": "به صف اضافه شد"
+ },
+ "video_failed_lookup": {
+ "message": "جست‌وجو انجام نشد"
+ },
+ "video_tab_video": {
+ "message": "ویدیو"
+ },
+ "video_tab_audio": {
+ "message": "صدا"
+ },
"video_open_post": {
"message": "پست را باز کنید، سپس از دکمه آنجا استفاده کنید"
},
diff --git a/extension/_locales/fi/messages.json b/extension/_locales/fi/messages.json
index b578d38d..f455992b 100644
--- a/extension/_locales/fi/messages.json
+++ b/extension/_locales/fi/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Ei selviä, mikä video tämä on: avaa videon oma sivu ja yritä siellä"
},
+ "video_looking": {
+ "message": "Haetaan laatuvaihtoehtoja…"
+ },
+ "video_open_mdm": {
+ "message": "Avaa sovelluksessa Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Täällä ei ole ladattavaa videota"
+ },
+ "video_playlist": {
+ "message": "Videoluettelo: valitse videot sovelluksessa Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager tarvitsee yt-dlp:n tätä videota varten"
+ },
+ "video_too_long": {
+ "message": "Haku kesti liian kauan"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager on varattu muiden videoiden takia"
+ },
+ "video_queued": {
+ "message": "Lisätty jonoon"
+ },
+ "video_failed_lookup": {
+ "message": "Hakeminen epäonnistui"
+ },
+ "video_tab_video": {
+ "message": "Video"
+ },
+ "video_tab_audio": {
+ "message": "Ääni"
+ },
"video_open_post": {
"message": "Avaa julkaisu ja käytä sitten painiketta siinä"
},
diff --git a/extension/_locales/fil/messages.json b/extension/_locales/fil/messages.json
index 8c440c52..ebbf3734 100644
--- a/extension/_locales/fil/messages.json
+++ b/extension/_locales/fil/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Hindi matukoy kung aling video ito: buksan ang sarili nitong page at subukan doon"
},
+ "video_looking": {
+ "message": "Hinahanap ang mga kalidad…"
+ },
+ "video_open_mdm": {
+ "message": "Buksan sa Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Walang video na ida-download dito"
+ },
+ "video_playlist": {
+ "message": "Listahan ng mga video: piliin ang mga ito sa Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Kailangan ng Mister Download Manager ng yt-dlp para sa video na ito"
+ },
+ "video_too_long": {
+ "message": "Masyadong natagalan ang paghahanap"
+ },
+ "video_busy": {
+ "message": "Abala ang Mister Download Manager sa ibang mga video"
+ },
+ "video_queued": {
+ "message": "Naidagdag sa queue"
+ },
+ "video_failed_lookup": {
+ "message": "Hindi ito nahanap"
+ },
+ "video_tab_video": {
+ "message": "Video"
+ },
+ "video_tab_audio": {
+ "message": "Audio"
+ },
"video_open_post": {
"message": "Buksan ang post, pagkatapos ay gamitin ang button doon"
},
diff --git a/extension/_locales/fr/messages.json b/extension/_locales/fr/messages.json
index 73e6d10d..8930d8c7 100644
--- a/extension/_locales/fr/messages.json
+++ b/extension/_locales/fr/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Impossible de savoir de quelle vidéo il s'agit : ouvrez sa propre page et réessayez"
},
+ "video_looking": {
+ "message": "Recherche des qualités…"
+ },
+ "video_open_mdm": {
+ "message": "Ouvrir dans Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Aucune vidéo à télécharger ici"
+ },
+ "video_playlist": {
+ "message": "Une liste de vidéos : choisissez-les dans Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager a besoin de yt-dlp pour cette vidéo"
+ },
+ "video_too_long": {
+ "message": "La recherche a pris trop de temps"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager est occupé avec d’autres vidéos"
+ },
+ "video_queued": {
+ "message": "Ajouté à la file d’attente"
+ },
+ "video_failed_lookup": {
+ "message": "Recherche impossible"
+ },
+ "video_tab_video": {
+ "message": "Vidéo"
+ },
+ "video_tab_audio": {
+ "message": "Audio"
+ },
"video_open_post": {
"message": "Ouvrez la publication, puis utilisez le bouton"
},
diff --git a/extension/_locales/gu/messages.json b/extension/_locales/gu/messages.json
index fa710031..135e7cb4 100644
--- a/extension/_locales/gu/messages.json
+++ b/extension/_locales/gu/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "આ કયો વીડિયો છે તે જાણી શકાતું નથી: તેનું પોતાનું પેજ ખોલીને ત્યાં પ્રયાસ કરો"
},
+ "video_looking": {
+ "message": "ગુણવત્તાઓ શોધી રહ્યા છીએ…"
+ },
+ "video_open_mdm": {
+ "message": "Mister Download Managerમાં ખોલો…"
+ },
+ "video_no_choices": {
+ "message": "અહીં ડાઉનલોડ કરવા માટે કોઈ વીડિયો નથી"
+ },
+ "video_playlist": {
+ "message": "વીડિયોની સૂચિ: તેમને Mister Download Managerમાં પસંદ કરો"
+ },
+ "video_no_ytdlp": {
+ "message": "આ વીડિયો માટે Mister Download Managerને yt-dlp ની જરૂર છે"
+ },
+ "video_too_long": {
+ "message": "શોધવામાં ખૂબ સમય લાગ્યો"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager અન્ય વીડિયોમાં વ્યસ્ત છે"
+ },
+ "video_queued": {
+ "message": "કતારમાં ઉમેર્યું"
+ },
+ "video_failed_lookup": {
+ "message": "શોધી શકાયું નથી"
+ },
+ "video_tab_video": {
+ "message": "વિડિઓ"
+ },
+ "video_tab_audio": {
+ "message": "ઑડિઓ"
+ },
"video_open_post": {
"message": "પોસ્ટ ખોલો, પછી ત્યાં બટનનો ઉપયોગ કરો"
},
diff --git a/extension/_locales/he/messages.json b/extension/_locales/he/messages.json
index f17ccd07..1377173e 100644
--- a/extension/_locales/he/messages.json
+++ b/extension/_locales/he/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "לא ניתן לדעת איזה סרטון זה: פתחו את הדף שלו ונסו שם"
},
+ "video_looking": {
+ "message": "מחפש את האיכויות…"
+ },
+ "video_open_mdm": {
+ "message": "פתח ב-Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "אין כאן סרטון להורדה"
+ },
+ "video_playlist": {
+ "message": "רשימת סרטונים: בחר אותם ב-Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager זקוק ל-yt-dlp עבור סרטון זה"
+ },
+ "video_too_long": {
+ "message": "החיפוש ארך זמן רב מדי"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager עסוק בסרטונים אחרים"
+ },
+ "video_queued": {
+ "message": "נוסף לתור"
+ },
+ "video_failed_lookup": {
+ "message": "החיפוש נכשל"
+ },
+ "video_tab_video": {
+ "message": "וידאו"
+ },
+ "video_tab_audio": {
+ "message": "שמע"
+ },
"video_open_post": {
"message": "פתח את הפוסט, ואז השתמש בלחצן שם"
},
diff --git a/extension/_locales/hi/messages.json b/extension/_locales/hi/messages.json
index f45b8f89..8b23e56b 100644
--- a/extension/_locales/hi/messages.json
+++ b/extension/_locales/hi/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "पता नहीं चल पा रहा कि यह कौन-सा वीडियो है: इसका अपना पेज खोलकर वहाँ आज़माएँ"
},
+ "video_looking": {
+ "message": "क्वालिटी खोजी जा रही हैं…"
+ },
+ "video_open_mdm": {
+ "message": "Mister Download Manager में खोलें…"
+ },
+ "video_no_choices": {
+ "message": "यहाँ डाउनलोड करने के लिए कोई वीडियो नहीं है"
+ },
+ "video_playlist": {
+ "message": "वीडियो की सूची: उन्हें Mister Download Manager में चुनें"
+ },
+ "video_no_ytdlp": {
+ "message": "इस वीडियो के लिए Mister Download Manager को yt-dlp की आवश्यकता है"
+ },
+ "video_too_long": {
+ "message": "खोजने में बहुत समय लगा"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager अन्य वीडियो में व्यस्त है"
+ },
+ "video_queued": {
+ "message": "कतार में जोड़ा गया"
+ },
+ "video_failed_lookup": {
+ "message": "खोज नहीं हो सकी"
+ },
+ "video_tab_video": {
+ "message": "वीडियो"
+ },
+ "video_tab_audio": {
+ "message": "ऑडियो"
+ },
"video_open_post": {
"message": "पोस्ट खोलें, फिर वहां बटन का उपयोग करें"
},
diff --git a/extension/_locales/hr/messages.json b/extension/_locales/hr/messages.json
index 061f5057..2f5da78e 100644
--- a/extension/_locales/hr/messages.json
+++ b/extension/_locales/hr/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Nije moguće utvrditi koji je ovo videozapis: otvorite njegovu stranicu i pokušajte ondje"
},
+ "video_looking": {
+ "message": "Traženje kvaliteta…"
+ },
+ "video_open_mdm": {
+ "message": "Otvori u Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Ovdje nema videozapisa za preuzimanje"
+ },
+ "video_playlist": {
+ "message": "Popis videozapisa: odaberite ih u Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager treba yt-dlp za ovaj videozapis"
+ },
+ "video_too_long": {
+ "message": "Traženje je trajalo predugo"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager je zauzet drugim videozapisima"
+ },
+ "video_queued": {
+ "message": "Dodano u red čekanja"
+ },
+ "video_failed_lookup": {
+ "message": "Traženje nije uspjelo"
+ },
+ "video_tab_video": {
+ "message": "Video"
+ },
+ "video_tab_audio": {
+ "message": "Zvuk"
+ },
"video_open_post": {
"message": "Otvorite objavu, a zatim upotrijebite gumb tamo"
},
diff --git a/extension/_locales/hu/messages.json b/extension/_locales/hu/messages.json
index 33758114..ab4c69b2 100644
--- a/extension/_locales/hu/messages.json
+++ b/extension/_locales/hu/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Nem állapítható meg, melyik videóról van szó: nyissa meg a saját oldalát, és próbálja ott"
},
+ "video_looking": {
+ "message": "Minőségek keresése…"
+ },
+ "video_open_mdm": {
+ "message": "Megnyitás a Mister Download Manager alkalmazásban…"
+ },
+ "video_no_choices": {
+ "message": "Itt nincs letölthető videó"
+ },
+ "video_playlist": {
+ "message": "Videók listája: válassza ki őket a Mister Download Manager alkalmazásban"
+ },
+ "video_no_ytdlp": {
+ "message": "A Mister Download Manager alkalmazásnak szüksége van a yt-dlp eszközre ehhez a videóhoz"
+ },
+ "video_too_long": {
+ "message": "A keresés túl sokáig tartott"
+ },
+ "video_busy": {
+ "message": "A Mister Download Manager alkalmazás más videókkal van elfoglalva"
+ },
+ "video_queued": {
+ "message": "Hozzáadva a sorhoz"
+ },
+ "video_failed_lookup": {
+ "message": "A keresés sikertelen"
+ },
+ "video_tab_video": {
+ "message": "Videó"
+ },
+ "video_tab_audio": {
+ "message": "Hang"
+ },
"video_open_post": {
"message": "Nyissa meg a bejegyzést, majd használja az ottani gombot"
},
diff --git a/extension/_locales/id/messages.json b/extension/_locales/id/messages.json
index 508159ba..39fa5a83 100644
--- a/extension/_locales/id/messages.json
+++ b/extension/_locales/id/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Tidak bisa diketahui video mana ini: buka halamannya sendiri dan coba di sana"
},
+ "video_looking": {
+ "message": "Mencari kualitas…"
+ },
+ "video_open_mdm": {
+ "message": "Buka di Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Tidak ada video untuk diunduh di sini"
+ },
+ "video_playlist": {
+ "message": "Daftar video: pilih di Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager memerlukan yt-dlp untuk video ini"
+ },
+ "video_too_long": {
+ "message": "Pencarian memakan waktu terlalu lama"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager sedang sibuk dengan video lain"
+ },
+ "video_queued": {
+ "message": "Ditambahkan ke antrean"
+ },
+ "video_failed_lookup": {
+ "message": "Gagal mencarinya"
+ },
+ "video_tab_video": {
+ "message": "Video"
+ },
+ "video_tab_audio": {
+ "message": "Audio"
+ },
"video_open_post": {
"message": "Buka postingan, lalu gunakan tombol di sana"
},
diff --git a/extension/_locales/it/messages.json b/extension/_locales/it/messages.json
index 4f80ef07..7a446594 100644
--- a/extension/_locales/it/messages.json
+++ b/extension/_locales/it/messages.json
@@ -165,10 +165,10 @@
"message": "Nessun video o audio trovato ancora in questa pagina. Avvialo, poi riapri questo menu."
},
"popup_media_streamed": {
- "message": "Il lettore di questa pagina trasmette il video a pezzi, quindi non c'è alcun file da elencare. Punta il video e usa il suo pulsante «Scarica video»."
+ "message": "Il lettore di questa pagina trasmette il video a pezzi, quindi non c'è nessun file da elencare. Passa il puntatore sul video e usa il suo pulsante Scarica video."
},
"popup_media_store": {
- "message": "Le regole del Chrome Web Store tengono questa copia del componente lontana dai video di questo sito. La Guida spiega cosa puoi fare."
+ "message": "Le regole del Chrome Web Store non consentono a questa copia dell'estensione di scaricare i video di questo sito. La Guida spiega cosa puoi fare."
},
"popup_media_download": {
"message": "Scarica"
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Impossibile capire di quale video si tratta: apri la sua pagina e riprova da lì"
},
+ "video_looking": {
+ "message": "Ricerca delle qualità…"
+ },
+ "video_open_mdm": {
+ "message": "Apri in Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Nessun video da scaricare qui"
+ },
+ "video_playlist": {
+ "message": "Un elenco di video: sceglili in Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager richiede yt-dlp per questo video"
+ },
+ "video_too_long": {
+ "message": "La ricerca ha richiesto troppo tempo"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager è occupato con altri video"
+ },
+ "video_queued": {
+ "message": "Aggiunto alla coda"
+ },
+ "video_failed_lookup": {
+ "message": "Impossibile eseguire la ricerca"
+ },
+ "video_tab_video": {
+ "message": "Video"
+ },
+ "video_tab_audio": {
+ "message": "Audio"
+ },
"video_open_post": {
"message": "Apri il post, poi usa il pulsante lì"
},
diff --git a/extension/_locales/ja/messages.json b/extension/_locales/ja/messages.json
index c59dbd08..37a92baa 100644
--- a/extension/_locales/ja/messages.json
+++ b/extension/_locales/ja/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "どの動画か判別できません。動画自体のページを開いて、そこでお試しください"
},
+ "video_looking": {
+ "message": "画質を検索しています…"
+ },
+ "video_open_mdm": {
+ "message": "Mister Download Manager で開く…"
+ },
+ "video_no_choices": {
+ "message": "ここにはダウンロードできる動画がありません"
+ },
+ "video_playlist": {
+ "message": "動画の一覧: Mister Download Manager で選択してください"
+ },
+ "video_no_ytdlp": {
+ "message": "この動画には Mister Download Manager に yt-dlp が必要です"
+ },
+ "video_too_long": {
+ "message": "検索に時間がかかりすぎました"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager は他の動画の処理中です"
+ },
+ "video_queued": {
+ "message": "キューに追加しました"
+ },
+ "video_failed_lookup": {
+ "message": "検索できませんでした"
+ },
+ "video_tab_video": {
+ "message": "ビデオ"
+ },
+ "video_tab_audio": {
+ "message": "オーディオ"
+ },
"video_open_post": {
"message": "投稿を開いて、そこにあるボタンを使用してください"
},
diff --git a/extension/_locales/kn/messages.json b/extension/_locales/kn/messages.json
index 1ef1a2ef..1311434f 100644
--- a/extension/_locales/kn/messages.json
+++ b/extension/_locales/kn/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "ಇದು ಯಾವ ವೀಡಿಯೊ ಎಂದು ತಿಳಿಯುತ್ತಿಲ್ಲ: ಅದರ ಸ್ವಂತ ಪುಟವನ್ನು ತೆರೆದು ಅಲ್ಲಿ ಪ್ರಯತ್ನಿಸಿ"
},
+ "video_looking": {
+ "message": "ಗುಣಮಟ್ಟಗಳನ್ನು ಹುಡುಕಲಾಗುತ್ತಿದೆ…"
+ },
+ "video_open_mdm": {
+ "message": "Mister Download Manager ನಲ್ಲಿ ತೆರೆಯಿರಿ…"
+ },
+ "video_no_choices": {
+ "message": "ಇಲ್ಲಿ ಡೌನ್‌ಲೋಡ್ ಮಾಡಲು ವೀಡಿಯೊ ಇಲ್ಲ"
+ },
+ "video_playlist": {
+ "message": "ವೀಡಿಯೊಗಳ ಪಟ್ಟಿ: ಅವುಗಳನ್ನು Mister Download Manager ನಲ್ಲಿ ಆಯ್ಕೆಮಾಡಿ"
+ },
+ "video_no_ytdlp": {
+ "message": "ಈ ವೀಡಿಯೊಗೆ Mister Download Manager ಗೆ yt-dlp ಬೇಕು"
+ },
+ "video_too_long": {
+ "message": "ಹುಡುಕಲು ತುಂಬಾ ಸಮಯ ತೆಗೆದುಕೊಂಡಿತು"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager ಇತರ ವೀಡಿಯೊಗಳಲ್ಲಿ ನಿರತವಾಗಿದೆ"
+ },
+ "video_queued": {
+ "message": "ಕ್ಯೂಗೆ ಸೇರಿಸಲಾಗಿದೆ"
+ },
+ "video_failed_lookup": {
+ "message": "ಹುಡುಕಲು ಸಾಧ್ಯವಾಗಲಿಲ್ಲ"
+ },
+ "video_tab_video": {
+ "message": "ವೀಡಿಯೊ"
+ },
+ "video_tab_audio": {
+ "message": "ಆಡಿಯೊ"
+ },
"video_open_post": {
"message": "ಪೋಸ್ಟ್ ತೆರೆಯಿರಿ, ನಂತರ ಅಲ್ಲಿರುವ ಬಟನ್ ಬಳಸಿ"
},
diff --git a/extension/_locales/ko/messages.json b/extension/_locales/ko/messages.json
index 4ade4ac4..4e7890f6 100644
--- a/extension/_locales/ko/messages.json
+++ b/extension/_locales/ko/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "어떤 비디오인지 알 수 없습니다. 비디오 자체 페이지를 열어 다시 시도하세요"
},
+ "video_looking": {
+ "message": "화질을 찾는 중…"
+ },
+ "video_open_mdm": {
+ "message": "Mister Download Manager에서 열기…"
+ },
+ "video_no_choices": {
+ "message": "여기에는 다운로드할 비디오가 없습니다"
+ },
+ "video_playlist": {
+ "message": "비디오 목록: Mister Download Manager에서 선택하세요"
+ },
+ "video_no_ytdlp": {
+ "message": "이 비디오에는 Mister Download Manager에 yt-dlp가 필요합니다"
+ },
+ "video_too_long": {
+ "message": "찾는 데 시간이 너무 오래 걸렸습니다"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager가 다른 비디오를 처리하는 중입니다"
+ },
+ "video_queued": {
+ "message": "대기열에 추가되었습니다"
+ },
+ "video_failed_lookup": {
+ "message": "찾지 못했습니다"
+ },
+ "video_tab_video": {
+ "message": "비디오"
+ },
+ "video_tab_audio": {
+ "message": "오디오"
+ },
"video_open_post": {
"message": "게시물을 열고 버튼을 사용하세요"
},
diff --git a/extension/_locales/lt/messages.json b/extension/_locales/lt/messages.json
index 17ef955b..c8f0a5b1 100644
--- a/extension/_locales/lt/messages.json
+++ b/extension/_locales/lt/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Neaišku, kuris tai vaizdo įrašas: atidarykite jo paties puslapį ir bandykite ten"
},
+ "video_looking": {
+ "message": "Ieškoma kokybių…"
+ },
+ "video_open_mdm": {
+ "message": "Atidaryti programoje Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Čia nėra vaizdo įrašo, kurį būtų galima atsisiųsti"
+ },
+ "video_playlist": {
+ "message": "Vaizdo įrašų sąrašas: pasirinkite juos programoje Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager šiam vaizdo įrašui reikia yt-dlp"
+ },
+ "video_too_long": {
+ "message": "Paieška užtruko per ilgai"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager užsiėmusi kitais vaizdo įrašais"
+ },
+ "video_queued": {
+ "message": "Pridėta į eilę"
+ },
+ "video_failed_lookup": {
+ "message": "Nepavyko surasti"
+ },
+ "video_tab_video": {
+ "message": "Vaizdas"
+ },
+ "video_tab_audio": {
+ "message": "Garsas"
+ },
"video_open_post": {
"message": "Atidarykite įrašą, tada naudokite ten esantį mygtuką"
},
diff --git a/extension/_locales/lv/messages.json b/extension/_locales/lv/messages.json
index cd304555..9b10a44c 100644
--- a/extension/_locales/lv/messages.json
+++ b/extension/_locales/lv/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Nevar noteikt, kurš video tas ir: atveriet tā lapu un mēģiniet tur"
},
+ "video_looking": {
+ "message": "Meklē kvalitātes…"
+ },
+ "video_open_mdm": {
+ "message": "Atvērt programmā Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Šeit nav lejupielādējama video"
+ },
+ "video_playlist": {
+ "message": "Video saraksts: izvēlieties tos programmā Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Programmai Mister Download Manager šim video ir nepieciešams yt-dlp"
+ },
+ "video_too_long": {
+ "message": "Meklēšana ilga pārāk ilgi"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager ir aizņemts ar citiem video"
+ },
+ "video_queued": {
+ "message": "Pievienots rindai"
+ },
+ "video_failed_lookup": {
+ "message": "Meklēšana neizdevās"
+ },
+ "video_tab_video": {
+ "message": "Video"
+ },
+ "video_tab_audio": {
+ "message": "Audio"
+ },
"video_open_post": {
"message": "Atveriet ierakstu, tad izmantojiet pogu tur"
},
diff --git a/extension/_locales/ml/messages.json b/extension/_locales/ml/messages.json
index 04c87d64..7fdcdf3d 100644
--- a/extension/_locales/ml/messages.json
+++ b/extension/_locales/ml/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "ഇത് ഏത് വീഡിയോ ആണെന്ന് അറിയാൻ കഴിയുന്നില്ല: അതിന്റെ സ്വന്തം പേജ് തുറന്ന് അവിടെ ശ്രമിക്കുക"
},
+ "video_looking": {
+ "message": "ക്വാളിറ്റികൾ തിരയുന്നു…"
+ },
+ "video_open_mdm": {
+ "message": "Mister Download Manager-ൽ തുറക്കുക…"
+ },
+ "video_no_choices": {
+ "message": "ഇവിടെ ഡൗൺലോഡ് ചെയ്യാൻ വീഡിയോ ഒന്നുമില്ല"
+ },
+ "video_playlist": {
+ "message": "വീഡിയോകളുടെ ഒരു പട്ടിക: അവ Mister Download Manager-ൽ തിരഞ്ഞെടുക്കുക"
+ },
+ "video_no_ytdlp": {
+ "message": "ഈ വീഡിയോയ്ക്ക് Mister Download Manager-ന് yt-dlp ആവശ്യമാണ്"
+ },
+ "video_too_long": {
+ "message": "തിരയാൻ വളരെയധികം സമയമെടുത്തു"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager മറ്റ് വീഡിയോകളിൽ തിരക്കിലാണ്"
+ },
+ "video_queued": {
+ "message": "ക്യൂവിലേക്ക് ചേർത്തു"
+ },
+ "video_failed_lookup": {
+ "message": "തിരയാൻ കഴിഞ്ഞില്ല"
+ },
+ "video_tab_video": {
+ "message": "വീഡിയോ"
+ },
+ "video_tab_audio": {
+ "message": "ഓഡിയോ"
+ },
"video_open_post": {
"message": "പോസ്റ്റ് തുറക്കുക, എന്നിട്ട് അവിടെയുള്ള ബട്ടൺ ഉപയോഗിക്കുക"
},
diff --git a/extension/_locales/mr/messages.json b/extension/_locales/mr/messages.json
index 1e4c8e14..0dc74cc6 100644
--- a/extension/_locales/mr/messages.json
+++ b/extension/_locales/mr/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "हा कोणता व्हिडिओ आहे ते कळत नाही: त्याचे स्वतःचे पृष्ठ उघडून तिथे प्रयत्न करा"
},
+ "video_looking": {
+ "message": "गुणवत्ता शोधत आहे…"
+ },
+ "video_open_mdm": {
+ "message": "Mister Download Manager मध्ये उघडा…"
+ },
+ "video_no_choices": {
+ "message": "येथे डाउनलोड करण्यासाठी व्हिडिओ नाही"
+ },
+ "video_playlist": {
+ "message": "व्हिडिओंची सूची: ते Mister Download Manager मध्ये निवडा"
+ },
+ "video_no_ytdlp": {
+ "message": "या व्हिडिओसाठी Mister Download Manager ला yt-dlp आवश्यक आहे"
+ },
+ "video_too_long": {
+ "message": "शोधण्यास खूप वेळ लागला"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager इतर व्हिडिओंमध्ये व्यस्त आहे"
+ },
+ "video_queued": {
+ "message": "रांगेत जोडले"
+ },
+ "video_failed_lookup": {
+ "message": "शोधता आले नाही"
+ },
+ "video_tab_video": {
+ "message": "व्हिडिओ"
+ },
+ "video_tab_audio": {
+ "message": "ऑडिओ"
+ },
"video_open_post": {
"message": "पोस्ट उघडा, नंतर तेथील बटण वापरा"
},
diff --git a/extension/_locales/ms/messages.json b/extension/_locales/ms/messages.json
index 21330d4f..dcdf4a6b 100644
--- a/extension/_locales/ms/messages.json
+++ b/extension/_locales/ms/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Tidak dapat dipastikan video yang mana ini: buka halamannya sendiri dan cuba di sana"
},
+ "video_looking": {
+ "message": "Mencari kualiti…"
+ },
+ "video_open_mdm": {
+ "message": "Buka dalam Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Tiada video untuk dimuat turun di sini"
+ },
+ "video_playlist": {
+ "message": "Senarai video: pilih video dalam Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager memerlukan yt-dlp untuk video ini"
+ },
+ "video_too_long": {
+ "message": "Pencarian mengambil masa terlalu lama"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager sedang sibuk dengan video lain"
+ },
+ "video_queued": {
+ "message": "Ditambah pada giliran"
+ },
+ "video_failed_lookup": {
+ "message": "Tidak dapat mencarinya"
+ },
+ "video_tab_video": {
+ "message": "Video"
+ },
+ "video_tab_audio": {
+ "message": "Audio"
+ },
"video_open_post": {
"message": "Buka siaran, kemudian gunakan butang di sana"
},
diff --git a/extension/_locales/nl/messages.json b/extension/_locales/nl/messages.json
index b61dde1b..55f160ac 100644
--- a/extension/_locales/nl/messages.json
+++ b/extension/_locales/nl/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Niet duidelijk welke video dit is: open de eigen pagina van de video en probeer het daar"
},
+ "video_looking": {
+ "message": "Kwaliteiten opzoeken…"
+ },
+ "video_open_mdm": {
+ "message": "Openen in Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Geen video om hier te downloaden"
+ },
+ "video_playlist": {
+ "message": "Een lijst met video's: kies ze in Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager heeft yt-dlp nodig voor deze video"
+ },
+ "video_too_long": {
+ "message": "Opzoeken duurde te lang"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager is bezig met andere video's"
+ },
+ "video_queued": {
+ "message": "Toegevoegd aan de wachtrij"
+ },
+ "video_failed_lookup": {
+ "message": "Kon het niet opzoeken"
+ },
+ "video_tab_video": {
+ "message": "Video"
+ },
+ "video_tab_audio": {
+ "message": "Audio"
+ },
"video_open_post": {
"message": "Open het bericht en gebruik dan de knop daar"
},
diff --git a/extension/_locales/no/messages.json b/extension/_locales/no/messages.json
index d6b4a2f6..b2bd2dba 100644
--- a/extension/_locales/no/messages.json
+++ b/extension/_locales/no/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Kan ikke se hvilken video dette er: åpne videoens egen side og prøv der"
},
+ "video_looking": {
+ "message": "Finner kvalitetene…"
+ },
+ "video_open_mdm": {
+ "message": "Åpne i Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Ingen video å laste ned her"
+ },
+ "video_playlist": {
+ "message": "En liste med videoer: velg dem i Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager trenger yt-dlp for denne videoen"
+ },
+ "video_too_long": {
+ "message": "Oppslaget tok for lang tid"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager er opptatt med andre videoer"
+ },
+ "video_queued": {
+ "message": "Lagt til i køen"
+ },
+ "video_failed_lookup": {
+ "message": "Kunne ikke slå det opp"
+ },
+ "video_tab_video": {
+ "message": "Video"
+ },
+ "video_tab_audio": {
+ "message": "Lyd"
+ },
"video_open_post": {
"message": "Åpne innlegget, og bruk deretter knappen der"
},
diff --git a/extension/_locales/pl/messages.json b/extension/_locales/pl/messages.json
index 74247876..1df24f78 100644
--- a/extension/_locales/pl/messages.json
+++ b/extension/_locales/pl/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Nie można ustalić, który to film: otwórz jego własną stronę i spróbuj tam"
},
+ "video_looking": {
+ "message": "Wyszukiwanie jakości…"
+ },
+ "video_open_mdm": {
+ "message": "Otwórz w Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Brak wideo do pobrania w tym miejscu"
+ },
+ "video_playlist": {
+ "message": "Lista wideo: wybierz je w Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager potrzebuje yt-dlp dla tego wideo"
+ },
+ "video_too_long": {
+ "message": "Wyszukiwanie trwało zbyt długo"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager jest zajęty innymi wideo"
+ },
+ "video_queued": {
+ "message": "Dodano do kolejki"
+ },
+ "video_failed_lookup": {
+ "message": "Nie udało się wyszukać"
+ },
+ "video_tab_video": {
+ "message": "Wideo"
+ },
+ "video_tab_audio": {
+ "message": "Dźwięk"
+ },
"video_open_post": {
"message": "Otwórz wpis, a następnie użyj przycisku"
},
diff --git a/extension/_locales/pt_BR/messages.json b/extension/_locales/pt_BR/messages.json
index ea4f13d8..5f935ceb 100644
--- a/extension/_locales/pt_BR/messages.json
+++ b/extension/_locales/pt_BR/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Não dá para saber qual é este vídeo: abra a página dele e tente lá"
},
+ "video_looking": {
+ "message": "Buscando as qualidades…"
+ },
+ "video_open_mdm": {
+ "message": "Abrir no Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Nenhum vídeo para baixar aqui"
+ },
+ "video_playlist": {
+ "message": "Uma lista de vídeos: escolha-os no Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "O Mister Download Manager precisa do yt-dlp para este vídeo"
+ },
+ "video_too_long": {
+ "message": "A busca demorou demais"
+ },
+ "video_busy": {
+ "message": "O Mister Download Manager está ocupado com outros vídeos"
+ },
+ "video_queued": {
+ "message": "Adicionado à fila"
+ },
+ "video_failed_lookup": {
+ "message": "Não foi possível buscar"
+ },
+ "video_tab_video": {
+ "message": "Vídeo"
+ },
+ "video_tab_audio": {
+ "message": "Áudio"
+ },
"video_open_post": {
"message": "Abra a publicação e use o botão lá"
},
diff --git a/extension/_locales/pt_PT/messages.json b/extension/_locales/pt_PT/messages.json
index 89d74b4a..b4138399 100644
--- a/extension/_locales/pt_PT/messages.json
+++ b/extension/_locales/pt_PT/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Não é possível saber que vídeo é este: abra a página do próprio vídeo e tente lá"
},
+ "video_looking": {
+ "message": "A procurar as qualidades…"
+ },
+ "video_open_mdm": {
+ "message": "Abrir no Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Não há nenhum vídeo para transferir aqui"
+ },
+ "video_playlist": {
+ "message": "Uma lista de vídeos: escolha-os no Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "O Mister Download Manager precisa do yt-dlp para este vídeo"
+ },
+ "video_too_long": {
+ "message": "A pesquisa demorou demasiado"
+ },
+ "video_busy": {
+ "message": "O Mister Download Manager está ocupado com outros vídeos"
+ },
+ "video_queued": {
+ "message": "Adicionado à fila"
+ },
+ "video_failed_lookup": {
+ "message": "Não foi possível pesquisar"
+ },
+ "video_tab_video": {
+ "message": "Vídeo"
+ },
+ "video_tab_audio": {
+ "message": "Áudio"
+ },
"video_open_post": {
"message": "Abra a publicação e use o botão lá"
},
diff --git a/extension/_locales/ro/messages.json b/extension/_locales/ro/messages.json
index 8126cc3e..42a506d7 100644
--- a/extension/_locales/ro/messages.json
+++ b/extension/_locales/ro/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Nu se poate stabili ce videoclip este: deschideți pagina proprie a videoclipului și încercați acolo"
},
+ "video_looking": {
+ "message": "Se caută calitățile…"
+ },
+ "video_open_mdm": {
+ "message": "Deschideți în Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Nu există niciun videoclip de descărcat aici"
+ },
+ "video_playlist": {
+ "message": "O listă de videoclipuri: alegeți-le în Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager are nevoie de yt-dlp pentru acest videoclip"
+ },
+ "video_too_long": {
+ "message": "Căutarea a durat prea mult"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager este ocupat cu alte videoclipuri"
+ },
+ "video_queued": {
+ "message": "Adăugat la coadă"
+ },
+ "video_failed_lookup": {
+ "message": "Căutarea nu a reușit"
+ },
+ "video_tab_video": {
+ "message": "Video"
+ },
+ "video_tab_audio": {
+ "message": "Audio"
+ },
"video_open_post": {
"message": "Deschideți postarea, apoi utilizați butonul de acolo"
},
diff --git a/extension/_locales/ru/messages.json b/extension/_locales/ru/messages.json
index 2d3e408a..280ad739 100644
--- a/extension/_locales/ru/messages.json
+++ b/extension/_locales/ru/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Не удалось определить, что это за видео: откройте его страницу и попробуйте там"
},
+ "video_looking": {
+ "message": "Поиск доступных качеств…"
+ },
+ "video_open_mdm": {
+ "message": "Открыть в Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Здесь нет видео для скачивания"
+ },
+ "video_playlist": {
+ "message": "Список видео: выберите их в Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Для этого видео Mister Download Manager нужен yt-dlp"
+ },
+ "video_too_long": {
+ "message": "Поиск занял слишком много времени"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager занят другими видео"
+ },
+ "video_queued": {
+ "message": "Добавлено в очередь"
+ },
+ "video_failed_lookup": {
+ "message": "Не удалось выполнить поиск"
+ },
+ "video_tab_video": {
+ "message": "Видео"
+ },
+ "video_tab_audio": {
+ "message": "Аудио"
+ },
"video_open_post": {
"message": "Откройте публикацию, затем используйте кнопку на этой странице"
},
diff --git a/extension/_locales/sk/messages.json b/extension/_locales/sk/messages.json
index f3677dbb..6567421c 100644
--- a/extension/_locales/sk/messages.json
+++ b/extension/_locales/sk/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Nedá sa zistiť, o ktoré video ide: otvorte jeho vlastnú stránku a skúste to tam"
},
+ "video_looking": {
+ "message": "Vyhľadávanie kvalít…"
+ },
+ "video_open_mdm": {
+ "message": "Otvoriť v Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Tu nie je žiadne video na stiahnutie"
+ },
+ "video_playlist": {
+ "message": "Zoznam videí: vyberte ich v Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager potrebuje pre toto video yt-dlp"
+ },
+ "video_too_long": {
+ "message": "Vyhľadávanie trvalo príliš dlho"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager je zaneprázdnený inými videami"
+ },
+ "video_queued": {
+ "message": "Pridané do radu"
+ },
+ "video_failed_lookup": {
+ "message": "Vyhľadanie zlyhalo"
+ },
+ "video_tab_video": {
+ "message": "Video"
+ },
+ "video_tab_audio": {
+ "message": "Zvuk"
+ },
"video_open_post": {
"message": "Otvorte príspevok a potom použite tlačidlo na tej stránke"
},
diff --git a/extension/_locales/sl/messages.json b/extension/_locales/sl/messages.json
index 6d2b0e72..026f4294 100644
--- a/extension/_locales/sl/messages.json
+++ b/extension/_locales/sl/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Ni mogoče ugotoviti, kateri videoposnetek je to: odprite njegovo stran in poskusite tam"
},
+ "video_looking": {
+ "message": "Iskanje kakovosti…"
+ },
+ "video_open_mdm": {
+ "message": "Odpri v programu Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Tu ni videa za prenos"
+ },
+ "video_playlist": {
+ "message": "Seznam videoposnetkov: izberite jih v programu Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager potrebuje yt-dlp za ta videoposnetek"
+ },
+ "video_too_long": {
+ "message": "Iskanje je trajalo predolgo"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager je zaseden z drugimi videoposnetki"
+ },
+ "video_queued": {
+ "message": "Dodano v čakalno vrsto"
+ },
+ "video_failed_lookup": {
+ "message": "Iskanje ni uspelo"
+ },
+ "video_tab_video": {
+ "message": "Video"
+ },
+ "video_tab_audio": {
+ "message": "Zvok"
+ },
"video_open_post": {
"message": "Odprite objavo, nato uporabite gumb tam"
},
diff --git a/extension/_locales/sr/messages.json b/extension/_locales/sr/messages.json
index 3de1981b..d4e3cfb3 100644
--- a/extension/_locales/sr/messages.json
+++ b/extension/_locales/sr/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Не може да се утврди који је ово видео: отворите његову страницу и покушајте тамо"
},
+ "video_looking": {
+ "message": "Тражење квалитета…"
+ },
+ "video_open_mdm": {
+ "message": "Отвори у Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Овде нема видео снимка за преузимање"
+ },
+ "video_playlist": {
+ "message": "Листа видео снимака: изаберите их у Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager треба yt-dlp за овај видео снимак"
+ },
+ "video_too_long": {
+ "message": "Тражење је трајало предуго"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager је заузет другим видео снимцима"
+ },
+ "video_queued": {
+ "message": "Додато у ред"
+ },
+ "video_failed_lookup": {
+ "message": "Тражење није успело"
+ },
+ "video_tab_video": {
+ "message": "Видео"
+ },
+ "video_tab_audio": {
+ "message": "Аудио"
+ },
"video_open_post": {
"message": "Отворите објаву, па користите дугме тамо"
},
diff --git a/extension/_locales/sv/messages.json b/extension/_locales/sv/messages.json
index bf6c61a6..bdf37701 100644
--- a/extension/_locales/sv/messages.json
+++ b/extension/_locales/sv/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Det går inte att avgöra vilken video det här är: öppna videons egen sida och försök där"
},
+ "video_looking": {
+ "message": "Söker efter kvaliteter…"
+ },
+ "video_open_mdm": {
+ "message": "Öppna i Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Ingen video att hämta här"
+ },
+ "video_playlist": {
+ "message": "En lista med videor: välj dem i Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager behöver yt-dlp för den här videon"
+ },
+ "video_too_long": {
+ "message": "Sökningen tog för lång tid"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager är upptaget med andra videor"
+ },
+ "video_queued": {
+ "message": "Tillagd i kön"
+ },
+ "video_failed_lookup": {
+ "message": "Det gick inte att söka"
+ },
+ "video_tab_video": {
+ "message": "Video"
+ },
+ "video_tab_audio": {
+ "message": "Ljud"
+ },
"video_open_post": {
"message": "Öppna inlägget och använd sedan knappen där"
},
diff --git a/extension/_locales/ta/messages.json b/extension/_locales/ta/messages.json
index c56c5238..0a157d24 100644
--- a/extension/_locales/ta/messages.json
+++ b/extension/_locales/ta/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "இது எந்த வீடியோ என்று தெரியவில்லை: அதன் சொந்தப் பக்கத்தைத் திறந்து அங்கே முயலுங்கள்"
},
+ "video_looking": {
+ "message": "தரங்களைத் தேடுகிறது…"
+ },
+ "video_open_mdm": {
+ "message": "Mister Download Manager இல் திறக்கவும்…"
+ },
+ "video_no_choices": {
+ "message": "இங்கே பதிவிறக்க வீடியோ எதுவும் இல்லை"
+ },
+ "video_playlist": {
+ "message": "வீடியோக்களின் பட்டியல்: அவற்றை Mister Download Manager இல் தேர்ந்தெடுக்கவும்"
+ },
+ "video_no_ytdlp": {
+ "message": "இந்த வீடியோவுக்கு Mister Download Manager க்கு yt-dlp தேவை"
+ },
+ "video_too_long": {
+ "message": "தேட மிக அதிக நேரம் ஆனது"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager பிற வீடியோக்களில் பிஸியாக உள்ளது"
+ },
+ "video_queued": {
+ "message": "வரிசையில் சேர்க்கப்பட்டது"
+ },
+ "video_failed_lookup": {
+ "message": "தேட முடியவில்லை"
+ },
+ "video_tab_video": {
+ "message": "வீடியோ"
+ },
+ "video_tab_audio": {
+ "message": "ஆடியோ"
+ },
"video_open_post": {
"message": "பதிவைத் திறந்து, அங்குள்ள பொத்தானைப் பயன்படுத்தவும்"
},
diff --git a/extension/_locales/te/messages.json b/extension/_locales/te/messages.json
index 09df4999..f2bc5fbb 100644
--- a/extension/_locales/te/messages.json
+++ b/extension/_locales/te/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "ఇది ఏ వీడియోనో తెలియడం లేదు: దాని స్వంత పేజీని తెరిచి అక్కడ ప్రయత్నించండి"
},
+ "video_looking": {
+ "message": "నాణ్యతలను వెతుకుతోంది…"
+ },
+ "video_open_mdm": {
+ "message": "Mister Download Managerలో తెరువు…"
+ },
+ "video_no_choices": {
+ "message": "ఇక్కడ డౌన్‌లోడ్ చేయడానికి వీడియో లేదు"
+ },
+ "video_playlist": {
+ "message": "వీడియోల జాబితా: వాటిని Mister Download Managerలో ఎంచుకోండి"
+ },
+ "video_no_ytdlp": {
+ "message": "ఈ వీడియో కోసం Mister Download Managerకి yt-dlp అవసరం"
+ },
+ "video_too_long": {
+ "message": "వెతకడానికి చాలా సమయం పట్టింది"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager ఇతర వీడియోలతో బిజీగా ఉంది"
+ },
+ "video_queued": {
+ "message": "క్యూకి జోడించబడింది"
+ },
+ "video_failed_lookup": {
+ "message": "వెతకడం సాధ్యం కాలేదు"
+ },
+ "video_tab_video": {
+ "message": "వీడియో"
+ },
+ "video_tab_audio": {
+ "message": "ఆడియో"
+ },
"video_open_post": {
"message": "పోస్ట్‌ను తెరవండి, ఆపై అక్కడ బటన్‌ను ఉపయోగించండి"
},
diff --git a/extension/_locales/th/messages.json b/extension/_locales/th/messages.json
index 2e15a25f..16dc5878 100644
--- a/extension/_locales/th/messages.json
+++ b/extension/_locales/th/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "ไม่สามารถระบุได้ว่าเป็นวิดีโอใด: เปิดหน้าของวิดีโอนั้นแล้วลองอีกครั้งที่นั่น"
},
+ "video_looking": {
+ "message": "กำลังค้นหาคุณภาพ…"
+ },
+ "video_open_mdm": {
+ "message": "เปิดใน Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "ไม่มีวิดีโอให้ดาวน์โหลดที่นี่"
+ },
+ "video_playlist": {
+ "message": "รายการวิดีโอ: เลือกใน Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager ต้องใช้ yt-dlp สำหรับวิดีโอนี้"
+ },
+ "video_too_long": {
+ "message": "การค้นหาใช้เวลานานเกินไป"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager กำลังยุ่งกับวิดีโออื่น"
+ },
+ "video_queued": {
+ "message": "เพิ่มลงในคิวแล้ว"
+ },
+ "video_failed_lookup": {
+ "message": "ค้นหาไม่สำเร็จ"
+ },
+ "video_tab_video": {
+ "message": "วิดีโอ"
+ },
+ "video_tab_audio": {
+ "message": "เสียง"
+ },
"video_open_post": {
"message": "เปิดโพสต์ แล้วใช้ปุ่มที่นั่น"
},
diff --git a/extension/_locales/tr/messages.json b/extension/_locales/tr/messages.json
index b59d4203..7a57fd49 100644
--- a/extension/_locales/tr/messages.json
+++ b/extension/_locales/tr/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Bunun hangi video olduğu anlaşılamıyor: videonun kendi sayfasını açıp orada deneyin"
},
+ "video_looking": {
+ "message": "Kaliteler aranıyor…"
+ },
+ "video_open_mdm": {
+ "message": "Mister Download Manager uygulamasında aç…"
+ },
+ "video_no_choices": {
+ "message": "Burada indirilecek video yok"
+ },
+ "video_playlist": {
+ "message": "Bir video listesi: videoları Mister Download Manager uygulamasında seçin"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager uygulamasının bu video için yt-dlp'ye ihtiyacı var"
+ },
+ "video_too_long": {
+ "message": "Arama çok uzun sürdü"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager diğer videolarla meşgul"
+ },
+ "video_queued": {
+ "message": "Sıraya eklendi"
+ },
+ "video_failed_lookup": {
+ "message": "Aranamadı"
+ },
+ "video_tab_video": {
+ "message": "Video"
+ },
+ "video_tab_audio": {
+ "message": "Ses"
+ },
"video_open_post": {
"message": "Gönderiyi açın, sonra oradaki düğmeyi kullanın"
},
diff --git a/extension/_locales/uk/messages.json b/extension/_locales/uk/messages.json
index 2f4c9ff5..f5176eca 100644
--- a/extension/_locales/uk/messages.json
+++ b/extension/_locales/uk/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Не вдалося визначити, що це за відео: відкрийте його власну сторінку і спробуйте там"
},
+ "video_looking": {
+ "message": "Пошук доступних якостей…"
+ },
+ "video_open_mdm": {
+ "message": "Відкрити в Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Тут немає відео для завантаження"
+ },
+ "video_playlist": {
+ "message": "Список відео: виберіть їх у Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Для цього відео Mister Download Manager потрібен yt-dlp"
+ },
+ "video_too_long": {
+ "message": "Пошук тривав надто довго"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager зайнятий іншими відео"
+ },
+ "video_queued": {
+ "message": "Додано до черги"
+ },
+ "video_failed_lookup": {
+ "message": "Не вдалося виконати пошук"
+ },
+ "video_tab_video": {
+ "message": "Відео"
+ },
+ "video_tab_audio": {
+ "message": "Аудіо"
+ },
"video_open_post": {
"message": "Відкрийте допис, потім скористайтеся кнопкою там"
},
diff --git a/extension/_locales/vi/messages.json b/extension/_locales/vi/messages.json
index e68648a9..2debb96d 100644
--- a/extension/_locales/vi/messages.json
+++ b/extension/_locales/vi/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "Không xác định được đây là video nào: hãy mở trang riêng của video và thử ở đó"
},
+ "video_looking": {
+ "message": "Đang tìm các chất lượng…"
+ },
+ "video_open_mdm": {
+ "message": "Mở trong Mister Download Manager…"
+ },
+ "video_no_choices": {
+ "message": "Không có video nào để tải xuống ở đây"
+ },
+ "video_playlist": {
+ "message": "Danh sách video: hãy chọn chúng trong Mister Download Manager"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager cần yt-dlp cho video này"
+ },
+ "video_too_long": {
+ "message": "Việc tìm kiếm mất quá nhiều thời gian"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager đang bận với các video khác"
+ },
+ "video_queued": {
+ "message": "Đã thêm vào hàng đợi"
+ },
+ "video_failed_lookup": {
+ "message": "Không thể tìm kiếm"
+ },
+ "video_tab_video": {
+ "message": "Video"
+ },
+ "video_tab_audio": {
+ "message": "Âm thanh"
+ },
"video_open_post": {
"message": "Mở bài đăng, sau đó dùng nút ở đó"
},
diff --git a/extension/_locales/zh_CN/messages.json b/extension/_locales/zh_CN/messages.json
index 6da321db..809af597 100644
--- a/extension/_locales/zh_CN/messages.json
+++ b/extension/_locales/zh_CN/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "无法判断这是哪个视频:请打开该视频自己的页面再试"
},
+ "video_looking": {
+ "message": "正在查找画质…"
+ },
+ "video_open_mdm": {
+ "message": "在 Mister Download Manager 中打开…"
+ },
+ "video_no_choices": {
+ "message": "此处没有可下载的视频"
+ },
+ "video_playlist": {
+ "message": "视频列表:请在 Mister Download Manager 中选择"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager 需要 yt-dlp 才能下载此视频"
+ },
+ "video_too_long": {
+ "message": "查找耗时过长"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager 正忙于处理其他视频"
+ },
+ "video_queued": {
+ "message": "已添加到队列"
+ },
+ "video_failed_lookup": {
+ "message": "无法查找"
+ },
+ "video_tab_video": {
+ "message": "视频"
+ },
+ "video_tab_audio": {
+ "message": "音频"
+ },
"video_open_post": {
"message": "打开帖子,然后使用那里的按钮"
},
diff --git a/extension/_locales/zh_TW/messages.json b/extension/_locales/zh_TW/messages.json
index 09af2bc2..aa787ad5 100644
--- a/extension/_locales/zh_TW/messages.json
+++ b/extension/_locales/zh_TW/messages.json
@@ -188,6 +188,39 @@
"video_unnamed": {
"message": "無法判斷這是哪部影片:請開啟該影片本身的頁面再試一次"
},
+ "video_looking": {
+ "message": "正在尋找畫質…"
+ },
+ "video_open_mdm": {
+ "message": "在 Mister Download Manager 中開啟…"
+ },
+ "video_no_choices": {
+ "message": "此處沒有可下載的影片"
+ },
+ "video_playlist": {
+ "message": "影片清單:請在 Mister Download Manager 中選擇"
+ },
+ "video_no_ytdlp": {
+ "message": "Mister Download Manager 需要 yt-dlp 才能處理此影片"
+ },
+ "video_too_long": {
+ "message": "尋找耗時過久"
+ },
+ "video_busy": {
+ "message": "Mister Download Manager 正忙於處理其他影片"
+ },
+ "video_queued": {
+ "message": "已新增至佇列"
+ },
+ "video_failed_lookup": {
+ "message": "無法尋找"
+ },
+ "video_tab_video": {
+ "message": "影片"
+ },
+ "video_tab_audio": {
+ "message": "音訊"
+ },
"video_open_post": {
"message": "開啟貼文,然後使用該處的按鈕"
},
diff --git a/extension/background.js b/extension/background.js
index 0f41bb91..95604c3a 100644
--- a/extension/background.js
+++ b/extension/background.js
@@ -69,8 +69,11 @@ async function native(message, ms = HOST_WAIT) {
const sent = { ...message, userAgent: navigator.userAgent, brands, v: VERSION };
try {
const reply = (await withTimeout(ext.runtime.sendNativeMessage(HOST, sent), ms)) || {};
- if (reply.version) await noteStatus(older(reply.version, VERSION) ? "update-app" : null, reply.version);
- else if (reply.ok || reply.why === "options") await noteStatus(null);
+ if (reply.version) {
+ await noteStatus(older(reply.version, VERSION) ? "update-app" : null, reply.version);
+ // The answer to `rules` also says whether the app looks videos up for the button.
+ await noteLookup(reply.videoLookup === true);
+ } else if (reply.ok || reply.why === "options") await noteStatus(null);
else if (reply.why && reply.why !== "refused") await noteStatus(reply.why);
return reply;
} catch (e) {
@@ -176,7 +179,7 @@ function older(a, b) {
// ---- status: the toolbar button's badge and title, the popup's first line ------------------
-let status = null; // {why, app, at}
+let status = null; // {why, app, at, videoLookup}
async function readStatus() {
if (!status) status = (await ext.storage.local.get({ status: { why: null } })).status;
return status;
@@ -188,13 +191,23 @@ async function noteStatus(why, app) {
const now = await readStatus();
if (now.why === why && (!app || now.app === app)) return;
const was = !now.why || now.why === "update-app";
- status = { why, app: app || now.app || null, at: Date.now() };
+ status = { ...now, why, app: app || now.app || null, at: Date.now() };
await ext.storage.local.set({ status });
await showStatus();
// Unreachable, PDFs and music open in the browser again (and back once connected).
if (was !== (!why || why === "update-app")) await syncOpenedRule();
}
+// Whether this computer's MDM looks videos up for the button over videos (its qualities listed in
+// the page, video.js), kept with the status beside the app's version: from every answer to
+// `rules`, and dropped when a lookup's answer says otherwise (an older host or app).
+async function noteLookup(on) {
+ const now = await readStatus();
+ if (Boolean(now.videoLookup) === on) return;
+ status = { ...now, videoLookup: on };
+ await ext.storage.local.set({ status });
+}
+
async function showStatus() {
const why = (await remoteTarget()) ? null : (await readStatus()).why;
const { paused } = await ext.storage.local.get({ paused: false });
@@ -1783,11 +1796,14 @@ ext.contextMenus.onClicked.addListener(async (info, tab) => {
const storeId = tab && tab.cookieStoreId;
if (info.menuItemId === "mdm-link") {
const url = info.linkUrl || info.srcUrl;
+ // The tab's title, as the button's click sends it: the app names a video yt-dlp knows only
+ // by its address (a stream's `master`, a long hash) after it (#345).
+ const title = String((tab && tab.title) || "").slice(0, 300);
// A player's own stream (blob:, a MediaSource) or a stream's manifest: the Download video
// window, which reads streams (a manifest downloaded as a file is only a short list).
// The manifest's own cookies (its server may not be the page's), as the media list sends.
if (url && MANIFEST.test(url)) {
- const reply = await native({ video: true, explicit: true, url: info.pageUrl, src: url, ...(await videoCookies(url, { incognito, storeId })), private: incognito });
+ const reply = await native({ video: true, explicit: true, url: info.pageUrl, src: url, title, ...(await videoCookies(url, { incognito, storeId })), private: incognito });
if (!reply.ok && reply.why !== "options") explain(reply.why);
return;
}
@@ -1805,6 +1821,7 @@ ext.contextMenus.onClicked.addListener(async (info, tab) => {
explicit: true,
url: page,
...(src ? { src } : {}),
+ ...(title ? { title } : {}),
referrer: info.pageUrl && info.pageUrl !== page ? info.pageUrl : "",
...(await videoCookies(src || page, { incognito, storeId })),
private: incognito,
@@ -1999,6 +2016,104 @@ async function videoAddress(m, page, sender) {
return named && siteKey(named) === siteKey(page) ? named : page;
}
+// What the button's click is about, as the browser knows it: the address yt-dlp is given (`own`,
+// the video's page), the video's own file or stream (`src`), the page's title, the tab as
+// referrer, and the cookies of what yt-dlp asks. Null when nothing names the video.
+async function videoTarget(m, page, sender) {
+ const tab = sender.tab || {};
+ await mediaBack;
+ const named = await videoAddress(m, page, sender);
+ const youtube = isYouTube(page);
+ // The post a video in a feed sits in (#689): the app looks that up. Nothing names it (`url`
+ // null): the feed is never sent as its page, only the video's own plain file, if it has one.
+ // Either way no stream the tab loaded goes with it (a feed's first stream may be another
+ // video's), nor the page's title (the feed's).
+ const post = !youtube && Boolean(named) && named !== page;
+ const feed = !youtube && m.url === null;
+ // The video's own file (video.js leaves it out beside a post a big site's reader knows), or a
+ // stream it plays, still goes as `src`, with the page for its Referer.
+ const file = typeof m.src === "string" && /^https?:/i.test(m.src) ? m.src : "";
+ const src = file || (post || feed ? "" : await streamFor(sender));
+ if (!named && !src) return null;
+ const own = named || page;
+ return {
+ own,
+ src,
+ title: typeof m.title === "string" && !post && !feed ? m.title.slice(0, 300) : "",
+ referrer: tab.url && tab.url !== own ? tab.url : "",
+ // The cookies of what yt-dlp is given (the app files them under its host): the stream's
+ // own server may not be the page's, and the page's cookies are not for it.
+ ...(await videoCookies(src || own, { incognito: tab.incognito, storeId: tab.cookieStoreId })),
+ };
+}
+
+// ---- the button's qualities: the app looks the video up, the page lists what it found --------
+// The click asks the app to look the video up (yt-dlp, in the background), video.js asks how it
+// is going until it is done, and the quality picked is downloaded without the app's window. Only
+// with an app that says it can (`videoLookup`, noteLookup) and never for another MDM: else
+// ({fallback: true}) the click opens the app's Download video window, as it always did. None of
+// these messages has `video` or a top-level `url`: an older host refuses them and does nothing.
+// What a lookup comes to travels in `lookup`, never in `why`: the toolbar button's status (and
+// the rule for PDFs and music that follows it) is the host's, not a video's.
+
+async function videoLookup(m, page, sender) {
+ if (await remoteTarget()) return { fallback: true };
+ if (!(await readStatus()).videoLookup) {
+ // An MDM updated since its rules were last asked may look up now: they are asked again,
+ // for the next click.
+ const r = await storedRules();
+ if (!r || Date.now() - r.at > 60000) refreshRules();
+ return { fallback: true };
+ }
+ const tab = sender.tab || {};
+ const v = await videoTarget(m, page, sender);
+ if (!v) return { ok: false, why: isYouTube(page) ? "unnamed" : "feed" };
+ const reply = await native({
+ videoLookup: {
+ page: v.own,
+ ...(v.src ? { src: v.src } : {}),
+ ...(v.title ? { title: v.title } : {}),
+ ...(v.referrer ? { referrer: v.referrer } : {}),
+ // The lookup is the window's and the container's it was asked from (the app gives its
+ // pick to no other).
+ ...(tab.cookieStoreId ? { storeId: tab.cookieStoreId } : {}),
+ },
+ cookies: v.cookies,
+ cookieJar: v.cookieJar,
+ private: Boolean(tab.incognito),
+ });
+ if (reply.lookup && typeof reply.lookup === "object") return { lookup: reply.lookup };
+ // No `lookup`: a host or an app that can't look up after all (an older one refuses the message),
+ // or a host that failed. Not kept as able; its rules are asked again, and this click opens
+ // the window.
+ await noteLookup(false);
+ refreshRules();
+ return { fallback: true };
+}
+
+// The token is the app's, from the lookup's answer; it means nothing to anyone else.
+const lookupToken = (token) => typeof token === "string" && token.length > 0 && token.length <= 200;
+
+async function videoPoll(m) {
+ if (await remoteTarget()) return { fallback: true };
+ if (!lookupToken(m.token)) return { lookup: { state: "gone" } };
+ const reply = await native({ videoPoll: { token: m.token } });
+ return { lookup: reply.lookup && typeof reply.lookup === "object" ? reply.lookup : { state: "gone" } };
+}
+
+async function videoPick(m, sender) {
+ if (await remoteTarget()) return { fallback: true };
+ if (!lookupToken(m.token) || !Number.isInteger(m.choice) || m.choice < 0) return { fallback: true };
+ const tab = sender.tab || {};
+ // The token and the row's number from the page, nothing else: private or not and the
+ // container are the tab's, as the browser says; the app checks them against the lookup's.
+ const reply = await native({
+ videoPick: { token: m.token, choice: m.choice, ...(tab.cookieStoreId ? { storeId: tab.cookieStoreId } : {}) },
+ private: Boolean(tab.incognito),
+ });
+ return reply.lookup && typeof reply.lookup === "object" ? { lookup: reply.lookup } : { fallback: true };
+}
+
async function pageMessage(m, sender) {
const page = senderPage(sender);
const tab = sender.tab || {};
@@ -2024,34 +2139,23 @@ async function pageMessage(m, sender) {
return { ok: true };
}
if (m.type === "video" && page) {
- await mediaBack;
- const named = await videoAddress(m, page, sender);
- const youtube = isYouTube(page);
- // The post a video in a feed sits in (#689): the app looks that up. Nothing names it (`url`
- // null): the feed is never sent as its page, only the video's own plain file, if it has one.
- // Either way no stream the tab loaded goes with it (a feed's first stream may be another
- // video's), nor the page's title (the feed's).
- const post = !youtube && Boolean(named) && named !== page;
- const feed = !youtube && m.url === null;
- // The video's own file (video.js leaves it out beside a post a big site's reader knows), or a
- // stream it plays, still goes as `src`, with the page for its Referer.
- const file = typeof m.src === "string" && /^https?:/i.test(m.src) ? m.src : "";
- const src = file || (post || feed ? "" : await streamFor(sender));
- if (!named && !src) return { ok: false, why: youtube ? "unnamed" : "feed" };
- const own = named || page;
+ const v = await videoTarget(m, page, sender);
+ if (!v) return { ok: false, why: isYouTube(page) ? "unnamed" : "feed" };
const reply = await native({
video: true,
- url: own,
- ...(src ? { src } : {}),
- title: typeof m.title === "string" && !post && !feed ? m.title.slice(0, 300) : "",
- referrer: tab.url && tab.url !== own ? tab.url : "",
- // The cookies of what yt-dlp is given (the app files them under its host): the stream's
- // own server may not be the page's, and the page's cookies are not for it.
- ...(await videoCookies(src || own, { incognito: tab.incognito, storeId: tab.cookieStoreId })),
+ url: v.own,
+ ...(v.src ? { src: v.src } : {}),
+ title: v.title,
+ referrer: v.referrer,
+ cookies: v.cookies,
+ cookieJar: v.cookieJar,
...(tab.incognito ? { private: true } : {}),
});
return { ok: Boolean(reply.ok), why: reply.why };
}
+ if (m.type === "video-lookup" && page) return videoLookup(m, page, sender);
+ if (m.type === "video-poll") return videoPoll(m);
+ if (m.type === "video-pick") return videoPick(m, sender);
if (m.type === "hide-site" && page) {
const host = new URL(page).hostname;
// Off at once on this site, whatever the tab around it, while the app saves it.
diff --git a/extension/video.js b/extension/video.js
index 0a639c98..ef17abd6 100644
--- a/extension/video.js
+++ b/extension/video.js
@@ -1,8 +1,11 @@
// Mister Download Manager's download button over videos (a content script, in every page and
// frame). Our own design: a small pill at the video's edge that appears while the pointer is
// over the video (or it has the keyboard's focus) and fades when the pointer rests or leaves.
-// Clicking it opens the app's Download video window for this page (an embedded player's own
-// address, which yt-dlp understands), with the video's own address when it has a plain one. It can be dragged along the video's edge, and stays where
+// Clicking it has the app look the video up (an embedded player's own address, which yt-dlp
+// understands, with the video's own address when it has a plain one) and lists its qualities in a
+// menu over the page; the one picked downloads without the app's window. An app that can't look
+// up (an older one, another MDM chosen) opens its Download video window for this page instead,
+// as does the menu's last command. It can be dragged along the video's edge, and stays where
// it was put on that site. Its menu hides it on this video, keeps it off the site (the app's
// Options → General → Download panels lists those sites), or opens those settings. The app
// decides where it may show at all (the native host: integration on, this browser captured,
@@ -41,7 +44,20 @@
video_unnamed: "Can't tell which video this is: open its own page and try there",
video_open_post: "Open the post, then use the button there",
video_drag: "Drag to move it along the video's edge",
+ video_looking: "Looking up the qualities…",
+ video_open_mdm: "Open in Mister Download Manager…",
+ video_no_choices: "No video to download here",
+ video_playlist: "A list of videos: choose them in Mister Download Manager",
+ video_no_ytdlp: "Mister Download Manager needs yt-dlp for this video",
+ video_too_long: "Looking up took too long",
+ video_busy: "Mister Download Manager is busy with other videos",
+ video_queued: "Added to the queue",
+ video_failed_lookup: "Could not look it up",
+ video_tab_video: "Video",
+ video_tab_audio: "Audio",
};
+ // Sizes as the browser's language writes them.
+ const lang = ext.i18n.getUILanguage?.() || undefined;
// To the background. After the extension was updated or removed, this page's copy of the script
// is cut off from it (calls throw at once): then it takes itself away.
const send = (m) => {
@@ -131,6 +147,152 @@
return location.href;
}
+ // ---- the qualities: the app looks the video up (yt-dlp), the user picks one here ------------
+ // How long a lookup is followed, from the click.
+ const LOOKUP_MS = 60000;
+
+ // The wait before asking how a lookup is going: 100 ms before the first question. An app that
+ // held the last question while it looked (a newer one, up to ~1.5 s: `took` ms of HELD_MS or
+ // more) is asked again at once (50 ms), so the answer reaches the page as soon as it is ready.
+ // One that answers at once (an older one) is asked as seldom as ever: the old backoff's target
+ // (1 s, a little longer each time, 2 s at most) less the time the question took, 50 ms at least.
+ function pollDelay(n, took) {
+ const HELD_MS = 1000;
+ if (n <= 0) return 100;
+ const spent = Number.isFinite(took) ? Math.max(0, took) : 0;
+ if (spent >= HELD_MS) return 50;
+ const target = Math.min(2000, Math.round(1000 * 1.25 ** n));
+ return Math.max(50, Math.round(target - spent));
+ }
+
+ // A size as the browser's language writes it ("178.8 MB"); "" when unknown.
+ function sizeText(bytes, lang) {
+ const n = Number(bytes);
+ if (!Number.isFinite(n) || n <= 0) return "";
+ const units = [["gigabyte", 2 ** 30], ["megabyte", 2 ** 20], ["kilobyte", 2 ** 10]];
+ const [unit, per] = units.find(([, u]) => n >= u) || ["byte", 1];
+ try {
+ return new Intl.NumberFormat(lang, { style: "unit", unit, unitDisplay: "short", maximumFractionDigits: 1 }).format(n / per);
+ } catch {
+ return `${(n / per).toFixed(1)} ${unit}`;
+ }
+ }
+
+ // What a quality's row says: the app's name for it (in the app's language) and its size. Only
+ // ever set as text, never as markup.
+ function rowText(choice, lang) {
+ const c = choice && typeof choice === "object" ? choice : {};
+ return { name: String(c.label ?? "").slice(0, 200), size: sizeText(c.size, lang) };
+ }
+
+ // Which of the app's qualities go in which tab: `choice.audio === true` is sound only, anything
+ // else (an app that doesn't say, an older one) is video. Tabs only when both kinds are there;
+ // otherwise one list (`all`) in the app's order. Every number is the quality's place in the
+ // app's own list (what a pick sends), never its place in a tab.
+ function groupChoices(choices, max) {
+ const list = Array.isArray(choices) ? choices.slice(0, Math.max(0, Number.isFinite(max) ? max : 100)) : [];
+ const video = [];
+ const audio = [];
+ list.forEach((c, i) => (c && typeof c === "object" && c.audio === true ? audio : video).push(i));
+ return {
+ tabbed: video.length > 0 && audio.length > 0,
+ video,
+ audio,
+ all: list.map((_, i) => i),
+ start: video.length || !audio.length ? "video" : "audio",
+ };
+ }
+
+ // Follows a lookup the app is running, from its first answer: asks again only once the last
+ // question was answered (never on a timer of its own), pollDelay later, until it is no longer
+ // pending (that answer, with its token), the minute is up ({state: "late"}) or it is no longer
+ // wanted (null: the menu closed, the video or the page changed). `ask(token, ms)`: the
+ // background's answer, or {late: true} after `ms`; `sleep(ms)` may end early when dropped.
+ async function followLookup(first, { ask, alive, sleep, now, end }) {
+ let s = first;
+ let token = "";
+ let took = 0;
+ for (let n = 0; ; n += 1) {
+ if (!alive()) return null;
+ if (!s || typeof s !== "object") return { state: "gone" };
+ if (typeof s.token === "string" && s.token) token = s.token;
+ if (s.state !== "pending") return { ...s, token };
+ if (!token) return { state: "gone" };
+ const left = end - now();
+ if (left <= 0) return { state: "late" };
+ await sleep(Math.min(pollDelay(n, took), left));
+ if (!alive()) return null;
+ if (end - now() <= 0) return { state: "late" };
+ const asked = now();
+ const r = await ask(token, end - asked);
+ took = now() - asked;
+ if (!alive() || !r || r.gone) return null;
+ if (r.late) return { state: "late" };
+ // Another MDM chosen meanwhile: the window, as for a click.
+ s = r.fallback ? { state: "use-window" } : r.lookup;
+ }
+ }
+
+ // The background's answer to a lookup or to a choice, as a lookup's state: null when there is
+ // nothing to show (the extension gone); "late" past the minute, "unnamed" for a video it can't
+ // tell, "feed" for a video in a feed no post names (#689), and "use-window" for no lookups here
+ // (another MDM, an older one) or an answer that isn't one.
+ function replyState(r) {
+ if (r && r.gone) return null;
+ if (r && r.late) return { state: "late" };
+ if (r && (r.why === "unnamed" || r.why === "feed")) return { state: r.why };
+ if (!r || r.fallback || !r.lookup || typeof r.lookup !== "object") return { state: "use-window" };
+ return r.lookup;
+ }
+
+ // What a lookup's state (or replyState's) comes to, as the menu does it: "follow" it while the
+ // app looks, "offer" its qualities, "say" a message in the menu (with the app's own words under
+ // it), "flash" a word on the button (the menu closed), or "window": the click as it always was,
+ // the app's Download video window. `t`: the texts. `picked`: the answer to a choice, which only
+ // a download confirms; anything else there is the window's.
+ function lookupAction(s, t, picked) {
+ const state = s && typeof s === "object" && typeof s.state === "string" ? s.state : "";
+ // A choice taken: downloading, in the queue, or handed to the app, which didn't say in time
+ // what became of it ("sent": it will download it; the window would download it again).
+ if (state === "started" || state === "sent") return { act: "flash", kind: "ok", text: t("video_sent") };
+ if (state === "queued") return { act: "flash", kind: "ok", text: t("video_queued") };
+ if (!picked) {
+ if (state === "pending") return { act: "follow" };
+ if (state === "ready" && Array.isArray(s.choices) && s.choices.length) return { act: "offer" };
+ if (state === "ready" || (state === "failed" && s.reason === "no-choices")) return { act: "say", text: t("video_no_choices") };
+ if (state === "failed" && s.reason === "no-ytdlp") return { act: "say", text: t("video_no_ytdlp") };
+ if (state === "failed") return { act: "say", text: t("video_failed_lookup"), detail: typeof s.message === "string" ? s.message : "" };
+ if (state === "late") return { act: "say", text: t("video_too_long") };
+ if (state === "list") return { act: "say", text: t("video_playlist") };
+ if (state === "busy") return { act: "say", text: t("video_busy") };
+ if (state === "off") return { act: "flash", kind: "err", text: t("video_off") };
+ if (state === "unnamed") return { act: "flash", kind: "err", text: t("video_unnamed") };
+ if (state === "feed") return { act: "flash", kind: "err", text: t("video_open_post") };
+ }
+ // "use-window", "gone" (the app forgot it: restarted), a choice the app didn't take, and
+ // anything newer: the window.
+ return { act: "window" };
+ }
+
+ // The click's window at most once, whichever way the click comes to it (an answer that isn't a
+ // lookup, the lookup's end, a choice the app didn't take, "Open in…"): true the first time for
+ // `j`, the click's lookup.
+ function firstWindow(j) {
+ if (!j || j.windowed) return false;
+ j.windowed = true;
+ return true;
+ }
+
+ // The video the pointer takes the button to: the one under it (`found`), but not another than
+ // its own (`shown`) while the qualities' menu is open (`picking`): the menu reaches over the
+ // videos around its own (a feed's), and the pointer crosses them on its way to a row. The menu
+ // still closes when its video plays something else or the page changes (tick), or on a click
+ // elsewhere.
+ function pointerTarget(found, shown, picking) {
+ if (!found || (picking && found !== shown)) return null;
+ return found;
+ }
+
// Up from a node: its parent, or the element whose shadow root holds it (Reddit's player keeps
// its <video> in one).
const upFrom = (n) => n.parentElement || (n.parentNode && n.parentNode.host) || null;
@@ -511,6 +673,8 @@
let menuOpen = false;
let dragging = null;
let busy = false;
+ // The lookup the qualities menu is for (one at a time), until the menu closes.
+ let job = null;
let flashing = false;
let raf = 0;
let scan = 0;
@@ -577,6 +741,20 @@ button:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
.menu button { display: block; width: 100%; padding: 8px 12px; border-radius: 6px; cursor: default; }
.menu button:hover, .menu button:focus-visible { background: #dceafb; outline: none; }
.menu hr { border: 0; border-top: 1px solid rgba(23, 50, 77, .12); margin: 4px 2px; }
+/* The qualities: a row each (the app's name for it, its size at the end), a message while it
+ looks or when it found none, "Open in…" last. Scrolls when there are many. */
+.picks { min-width: 240px; max-width: 360px; max-height: min(300px, 45vh); overflow: auto; overscroll-behavior: contain; }
+.picks:focus { outline: none; }
+.menu .pick { display: flex; align-items: baseline; gap: 16px; }
+.pick .name { overflow-wrap: anywhere; }
+.pick .size { margin-inline-start: auto; color: #4a6681; font-variant-numeric: tabular-nums; white-space: nowrap; }
+/* Video / Audio tabs over the rows, when the video has both. */
+.tabs { display: flex; gap: 4px; padding: 0 0 4px; }
+.tabs[hidden] { display: none; }
+.menu .tab { flex: 1 1 0; width: auto; text-align: center; font-weight: 600; color: #3b5876; border-radius: 6px 6px 0 0; border-bottom: 2px solid transparent; }
+.menu .tab[aria-selected="true"] { color: #17324d; border-bottom-color: #2a78d6; }
+.note { padding: 8px 12px; color: #3b5876; overflow-wrap: anywhere; }
+.note .why { display: block; margin-top: 4px; font-size: 12px; color: #5a7086; }
@media (prefers-reduced-motion: reduce) { .pill { transition: none; transform: none; } }
`;
// A constructed sheet: a page whose Content-Security-Policy refuses inline styles can't strip
@@ -608,6 +786,18 @@ button:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
<button role="menuitem" data-act="never"></button>
<hr>
<button role="menuitem" data-act="settings"></button>
+</div>
+<div class="menu picks" role="group" tabindex="-1" aria-describedby="said">
+ <div class="note" id="said" role="status"></div>
+ <div class="tabs" role="tablist" hidden>
+ <button type="button" class="tab" role="tab" id="tab-video" aria-controls="qualities" data-tab="video"></button>
+ <button type="button" class="tab" role="tab" id="tab-audio" aria-controls="qualities" data-tab="audio"></button>
+ </div>
+ <div class="qualities" id="qualities" role="none">
+ <div class="rows" role="menu"></div>
+ </div>
+ <hr>
+ <button data-act="window"></button>
</div>`;
shadow.querySelector(".go img").src = LOGO;
const pill = shadow.querySelector(".pill");
@@ -616,8 +806,19 @@ button:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
const more = shadow.querySelector(".more");
const menu = shadow.querySelector(".menu");
const item = (act) => menu.querySelector(`[data-act="${act}"]`);
+ // The qualities' menu: its message, its rows, "Open in…".
+ const picks = shadow.querySelector(".picks");
+ const note = picks.querySelector(".note");
+ const rows = picks.querySelector(".rows");
+ const tabs = picks.querySelector(".tabs");
+ const tabList = [...tabs.querySelectorAll("[data-tab]")];
+ const qualities = picks.querySelector(".qualities");
+ const openRow = picks.querySelector('[data-act="window"]');
+ // Which of the two menus is open (`menuOpen`).
+ let panel = menu;
pill.dir = ext.i18n.getMessage("@@bidi_dir") || "ltr";
menu.dir = pill.dir;
+ picks.dir = pill.dir;
const idleLabel = t("video_download");
label.textContent = idleLabel;
go.title = `${idleLabel} — ${t("video_drag")}`;
@@ -628,6 +829,12 @@ button:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
item("hide").textContent = t("video_hide_here");
item("never").textContent = ext.i18n.getMessage("video_never_site", [host]) || `Never on ${host}`;
item("settings").textContent = t("video_settings");
+ picks.setAttribute("aria-label", idleLabel);
+ rows.setAttribute("aria-label", idleLabel);
+ tabs.setAttribute("aria-label", idleLabel);
+ tabs.dir = pill.dir;
+ for (const b of tabList) b.textContent = t(b.dataset.tab === "audio" ? "video_tab_audio" : "video_tab_video");
+ openRow.textContent = t("video_open_mdm");
// ---- which video ----------------------------------------------------------------------------
const videos = document.getElementsByTagName("video");
@@ -726,6 +933,9 @@ button:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
const CORNERS = [{ x: 0, y: 0 }, { x: 0, y: 1 }, { x: 1, y: 1 }];
function spot(r, w, h, roomX, roomY) {
if (chosen) return place;
+ // Still while its menu is open: the player's own controls come and go as the pointer moves
+ // over the video, and the menu's rows would move away from under it.
+ if (menuOpen && auto.v === video && auto.at) return auto.at;
const now = Date.now();
const same = auto.v === video;
if (same && now - auto.t < AUTO_MS) return auto.at;
@@ -770,16 +980,16 @@ button:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
if (menuOpen) placeMenu(top, left, w);
}
- // The menu opens below the button, or above it near the bottom of the window; aligned with
- // whichever of its sides is nearer the video's middle.
+ // The open menu opens below the button, or above it near the bottom of the window; aligned
+ // with whichever of its sides is nearer the video's middle.
function placeMenu(top, left, w) {
- const h = menu.offsetHeight;
+ const h = panel.offsetHeight;
const below = top + 36 + h < innerHeight;
- menu.style.top = below ? "36px" : `${-h - 4}px`;
+ panel.style.top = below ? "36px" : `${-h - 4}px`;
const { r } = rects();
const rightHalf = left + w / 2 > r.left + r.width / 2;
- menu.style.left = rightHalf ? "" : "0";
- menu.style.right = rightHalf ? "0" : "";
+ panel.style.left = rightHalf ? "" : "0";
+ panel.style.right = rightHalf ? "0" : "";
}
// Snap a free spot (fractions, after a drag) to the nearest edge.
@@ -884,6 +1094,8 @@ button:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
const r = video.getBoundingClientRect();
const over =
pointer.x >= r.left && pointer.x <= r.right && pointer.y >= r.top && pointer.y <= r.bottom;
+ // The qualities' menu for a video this element no longer plays, or a page left: it goes.
+ if (menuOpen && panel === picks && !(job && current(job))) closeMenu();
if (!onButton && !menuOpen && !dragging && !keyboardOn() && (!over || Date.now() - lastMove > IDLE_MS)) {
return hide();
}
@@ -901,7 +1113,8 @@ button:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
function look() {
scan = 0;
if (dragging || never || (allowed === false && answered())) return;
- const v = videoAt(pointer.x, pointer.y);
+ // Kept on its video while the qualities' menu is open (pointerTarget).
+ const v = pointerTarget(videoAt(pointer.x, pointer.y), video, menuOpen && panel === picks);
if (!v) return;
if (!answered()) return void ask().then(() => allowed && look());
show(v);
@@ -939,7 +1152,24 @@ button:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
}
// ---- acting ---------------------------------------------------------------------------------
+ // The middle of the video: where the background asks the page's own player what it plays.
+ function middle(v) {
+ const box = v.getBoundingClientRect();
+ return { x: box.left + box.width / 2, y: box.top + box.height / 2 };
+ }
+
+ // A promise's answer, or {late: true} once `ms` is up.
+ const within = (promise, ms) => {
+ let timer = 0;
+ const late = new Promise((done) => (timer = setTimeout(() => done({ late: true }), Math.max(0, ms))));
+ return Promise.race([promise, late]).finally(() => clearTimeout(timer));
+ };
+
+ // The click: the app looks the video up and its qualities open in a menu here. An app that can't
+ // (an older one, another MDM chosen) gets the click as it always was: its Download video window.
async function download() {
+ // The button again while its qualities are open: they close.
+ if (menuOpen && panel === picks) return closeMenu();
if (busy || !video) return;
busy = true;
try {
@@ -952,15 +1182,238 @@ button:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
// A page that moved in place keeps its first page's og:title; its document title follows.
const og = location.href === landedAt ? document.querySelector('meta[property="og:title"]')?.content : "";
const title = (og || document.title || "").trim();
- const r = await send({ type: "video", src, title, url, at });
- if (r.gone) return;
- const why = { options: "video_off", unnamed: "video_unnamed", feed: "video_open_post" }[r.why];
- flash(r.ok ? "ok" : "err", t(r.ok ? "video_sent" : why || "video_failed"));
+ const j = { video, src: video.currentSrc || "", href: location.href, asked: { src, title, url, at }, started: Date.now(), token: "", count: 0 };
+ job = j;
+ // The menu opens at once, saying it is looking; an answer that needs none and comes first
+ // (no lookups here: the window) shows none.
+ const opening = setTimeout(() => openPicks(j), 100);
+ const s = replyState(await within(send({ type: "video-lookup", ...j.asked }), LOOKUP_MS));
+ clearTimeout(opening);
+ if (!s || !current(j)) return;
+ const a = lookupAction(s, t);
+ // No lookups here, or an answer that isn't one: the click as it was, once.
+ if (a.act === "window") return await useWindow(j);
+ // A video it can't tell, or the button off here: a word on the button, no menu.
+ if (a.act === "flash") {
+ closeMenu();
+ dropLookup();
+ return flash(a.kind, a.text);
+ }
+ openPicks(j);
+ follow(j, s);
} finally {
busy = false;
}
}
+ // Still the lookup the menu is for: the menu open on the same video (the same element playing
+ // the same thing) on the same page. Whatever answers a lookup after that is dropped.
+ const current = (j) =>
+ job === j && video === j.video && (!j.src || video.currentSrc === j.src) && location.href === j.href;
+
+ function openPicks(j) {
+ if (!current(j) || (menuOpen && panel === picks)) return;
+ closeMenu();
+ panel = picks;
+ menuOpen = true;
+ clearRows();
+ said(t("video_looking"));
+ picks.setAttribute("aria-busy", "true");
+ picks.classList.add("open");
+ go.setAttribute("aria-expanded", "true");
+ lastMove = Date.now();
+ position();
+ picks.focus({ preventScroll: true });
+ }
+
+ // No rows, no tabs.
+ function clearRows() {
+ rows.replaceChildren();
+ tabs.hidden = true;
+ qualities.setAttribute("role", "none");
+ qualities.removeAttribute("aria-labelledby");
+ }
+
+ // The menu's message (plain text), with the app's own words under it.
+ function said(text, detail) {
+ note.textContent = text;
+ if (detail) {
+ const why = document.createElement("span");
+ why.className = "why";
+ why.textContent = String(detail).slice(0, 400);
+ note.append(why);
+ }
+ note.hidden = !text;
+ }
+
+ // The keyboard's focus goes to the menu's new rows while it is in the menu or on the button
+ // (not when it was taken elsewhere meanwhile).
+ const focusHere = () => {
+ const a = shadow.activeElement;
+ return Boolean(a) && (a === go || picks.contains(a));
+ };
+
+ // A message instead of qualities, "Open in…" under it.
+ function say(j, text, detail) {
+ if (!current(j)) return;
+ picks.setAttribute("aria-busy", "false");
+ clearRows();
+ said(text, detail);
+ position();
+ if (focusHere()) openRow.focus();
+ }
+
+ // The lookup's end, in the menu (lookupAction).
+ function settle(j, s) {
+ if (!current(j)) return;
+ const a = lookupAction(s, t);
+ if (a.act === "offer") return offer(j, s);
+ if (a.act === "say") return say(j, a.text, a.detail);
+ if (a.act === "flash") {
+ closeMenu();
+ dropLookup();
+ return flash(a.kind, a.text);
+ }
+ // "use-window", "gone" (the app forgot it: restarted) and anything newer: the window.
+ return useWindow(j);
+ }
+
+ // The rows for these qualities of the app's list (their numbers), a row each: the app's name
+ // for it and its size, as text. The row keeps the quality's number in the app's list.
+ function showRows(s, numbers) {
+ rows.replaceChildren(
+ ...numbers.map((i) => {
+ const { name, size } = rowText(s.choices[i], lang);
+ const b = document.createElement("button");
+ b.type = "button";
+ b.className = "pick";
+ b.setAttribute("role", "menuitem");
+ b.dataset.choice = String(i);
+ const n = document.createElement("span");
+ n.className = "name";
+ n.textContent = name;
+ b.append(n);
+ if (size) {
+ const z = document.createElement("span");
+ z.className = "size";
+ z.textContent = size;
+ b.append(z);
+ }
+ return b;
+ }),
+ );
+ }
+
+ // One of the two tabs shown: it is the selected one (the only one in the tab order), its
+ // qualities are the rows.
+ function showTab(j, s, kind) {
+ for (const b of tabList) {
+ const on = b.dataset.tab === kind;
+ b.setAttribute("aria-selected", String(on));
+ b.tabIndex = on ? 0 : -1;
+ }
+ qualities.setAttribute("aria-labelledby", `tab-${kind}`);
+ j.tab = kind;
+ showRows(s, j.groups[kind]);
+ position();
+ }
+
+ // The qualities: in one list, or in the Video and Audio tabs when there are both.
+ function offer(j, s) {
+ j.count = Math.min(s.choices.length, 100);
+ j.token = s.token;
+ j.groups = groupChoices(s.choices, j.count);
+ j.s = s;
+ if (j.groups.tabbed) {
+ tabs.hidden = false;
+ qualities.setAttribute("role", "tabpanel");
+ showTab(j, s, j.groups.start);
+ } else {
+ clearRows();
+ showRows(s, j.groups.all);
+ }
+ said("");
+ picks.setAttribute("aria-busy", "false");
+ // Rows that just pushed "Open in…" down under the pointer aren't picked by a click meant for
+ // it.
+ j.armed = Date.now() + 300;
+ position();
+ if (focusHere()) (rows.firstElementChild || openRow).focus();
+ }
+
+ // Asks how the lookup is going until it ends (followLookup), then shows what it came to.
+ async function follow(j, first) {
+ const s = await followLookup(first, {
+ ask: (token, ms) => within(send({ type: "video-poll", token }), ms),
+ alive: () => current(j),
+ sleep: (ms) =>
+ new Promise((wake) => {
+ j.wake = wake;
+ j.timer = setTimeout(wake, ms);
+ }),
+ now: Date.now,
+ end: j.started + LOOKUP_MS,
+ });
+ if (!s || !current(j)) return;
+ settle(j, s);
+ }
+
+ // The lookup is no longer wanted (its menu closed): no more questions about it.
+ function dropLookup() {
+ const j = job;
+ job = null;
+ if (!j) return;
+ clearTimeout(j.timer);
+ if (j.wake) j.wake();
+ }
+
+ // A quality picked: the app downloads it (its own choice of it, with what it looked the video
+ // up with) without its window. Only the token and the row's number go.
+ async function pick(j, i) {
+ if (!current(j) || !j.count || j.picked || !(i >= 0 && i < j.count) || Date.now() < j.armed) return;
+ j.picked = true;
+ closeMenu();
+ busy = true;
+ try {
+ const s = replyState(await send({ type: "video-pick", token: j.token, choice: i }));
+ if (!s) return;
+ // Downloading, queued, or handed to the app ("sent"): a word on the button. Anything else
+ // (the lookup forgotten or another window's, an older app): the window.
+ const a = lookupAction(s, t, true);
+ if (a.act === "flash") return flash(a.kind, a.text);
+ return await useWindow(j);
+ } finally {
+ busy = false;
+ }
+ }
+
+ // The click as it always was: the app's Download video window for this video. Once per click.
+ async function useWindow(j) {
+ if (job === j) {
+ closeMenu();
+ dropLookup();
+ }
+ if (!firstWindow(j)) return;
+ // Where the video is now, for the background to ask the page's player there.
+ const r = await send({ type: "video", ...j.asked, ...(j.video.isConnected ? { at: middle(j.video) } : {}) });
+ if (r.gone) return;
+ const why = { options: "video_off", unnamed: "video_unnamed", feed: "video_open_post" }[r.why];
+ flash(r.ok ? "ok" : "err", t(r.ok ? "video_sent" : why || "video_failed"));
+ }
+
+ // A row of the qualities' menu, clicked or by key.
+ function choosePick(b) {
+ const j = job;
+ if (!j || !b) return;
+ if (b.dataset.act === "window") return useWindow(j);
+ // A tab: its qualities are the rows now (the keyboard stays on the tab).
+ if (b.dataset.tab !== undefined) {
+ if (j.groups && j.groups.tabbed && j.groups[b.dataset.tab] && j.s) showTab(j, j.s, b.dataset.tab);
+ return;
+ }
+ if (b.dataset.choice !== undefined) return pick(j, Number(b.dataset.choice));
+ }
+
// A short confirmation on the button itself, then back to normal.
function flash(kind, text) {
flashing = true;
@@ -978,6 +1431,8 @@ button:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
}
function openMenu() {
+ closeMenu();
+ panel = menu;
menuOpen = true;
menu.classList.add("open");
more.setAttribute("aria-expanded", "true");
@@ -985,11 +1440,19 @@ button:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
menu.querySelector("button").focus();
}
+ // Closes whichever menu is open; the qualities' takes its lookup with it.
function closeMenu() {
if (!menuOpen) return;
+ const back = panel === picks && picks.contains(shadow.activeElement);
menuOpen = false;
- menu.classList.remove("open");
+ panel.classList.remove("open");
more.setAttribute("aria-expanded", "false");
+ if (panel !== picks) return;
+ go.setAttribute("aria-expanded", "false");
+ picks.setAttribute("aria-busy", "false");
+ dropLookup();
+ // The keyboard's focus back on the button, not lost with the menu.
+ if (back) go.focus();
}
menu.addEventListener("click", (e) => {
@@ -1018,7 +1481,13 @@ button:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
if (act === "settings") send({ type: "options" });
}
- more.addEventListener("click", () => (menuOpen ? closeMenu() : openMenu()));
+ more.addEventListener("click", () => (menuOpen && panel === menu ? closeMenu() : openMenu()));
+
+ // The qualities' rows: only the user's own clicks.
+ picks.addEventListener("click", (e) => {
+ if (!e.isTrusted) return;
+ choosePick(e.target.closest("button"));
+ });
// The pointer reached the button: what the video plays now, kept in case the page stops it for
// that (a hover-to-play preview, #503).
@@ -1028,21 +1497,51 @@ button:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
}
});
- // Keys: Escape closes the menu, arrows move through it.
+ // Keys (only the user's own, never ones a page script makes up): Escape closes the open menu
+ // (the keyboard's focus back on its button), arrows move through it, Enter and Space run the
+ // focused command. Each stops there: a key the open menu used is not the page's too (a player's
+ // Space and arrows would pause it and change its volume behind the menu).
shadow.addEventListener("keydown", (e) => {
+ if (!e.isTrusted) return;
+ const focused = shadow.activeElement;
if (e.key === "Escape" && menuOpen) {
+ const opener = panel === picks ? go : more;
closeMenu();
- more.focus();
+ opener.focus();
e.stopPropagation();
- } else if (menuOpen && (e.key === "Enter" || e.key === " ") && menu.contains(shadow.activeElement)) {
+ } else if (menuOpen && (e.key === "Enter" || e.key === " ") && focused && focused !== panel && panel.contains(focused)) {
// The focused command, whatever the browser does with a key on a button.
- run(shadow.activeElement.dataset.act);
+ if (panel === picks) choosePick(focused);
+ else run(focused.dataset.act);
+ e.preventDefault();
+ e.stopPropagation();
+ } else if (menuOpen && panel === picks && !tabs.hidden && focused && focused.dataset.tab !== undefined && ["ArrowLeft", "ArrowRight", "Home", "End"].includes(e.key)) {
+ // Between the tabs (not on to the rows); the arrows follow the reading direction.
+ const i = tabList.indexOf(focused);
+ const step = (e.key === "ArrowRight") === (pill.dir !== "rtl") ? 1 : -1;
+ const next = e.key === "Home" ? 0 : e.key === "End" ? tabList.length - 1 : (i + step + tabList.length) % tabList.length;
+ tabList[next].focus();
+ e.preventDefault();
+ e.stopPropagation();
+ } else if (menuOpen && panel === picks && !tabs.hidden && focused && (e.key === "ArrowDown" || e.key === "ArrowUp") && (focused.dataset.tab !== undefined || (e.key === "ArrowUp" && focused === rows.firstElementChild))) {
+ // From a tab down to the rows; up from the first row to the selected tab.
+ if (focused.dataset.tab !== undefined) {
+ if (e.key === "ArrowDown") (rows.firstElementChild || openRow).focus();
+ } else {
+ (tabList.find((b) => b.tabIndex === 0) || tabList[0]).focus();
+ }
e.preventDefault();
+ e.stopPropagation();
} else if (menuOpen && (e.key === "ArrowDown" || e.key === "ArrowUp")) {
- const items = [...menu.querySelectorAll("button")];
- const i = items.indexOf(shadow.activeElement);
- items[(i + (e.key === "ArrowDown" ? 1 : items.length - 1)) % items.length].focus();
+ // The rows (and "Open in…"), never the tabs.
+ const items = [...panel.querySelectorAll("button:not([data-tab])")];
+ const i = items.indexOf(focused);
+ const down = e.key === "ArrowDown";
+ // From the menu itself (the qualities' while it looks): the first, or the last.
+ const next = i < 0 ? (down ? 0 : items.length - 1) : (i + (down ? 1 : items.length - 1)) % items.length;
+ items[next]?.focus();
e.preventDefault();
+ e.stopPropagation();
}
});
@@ -1125,6 +1624,7 @@ button:focus-visible { outline: 2px solid #2a78d6; outline-offset: -2px; }
// The extension updated or removed under this page: the button and its listeners go (a fresh
// copy of this script comes with the new extension).
function teardown() {
+ dropLookup();
cancelAnimationFrame(raf);
cancelAnimationFrame(scan);
removeEventListener("pointermove", onMove, true);
diff --git a/i18n/af.tsv b/i18n/af.tsv
index bce3d7c8..90f3ebcf 100644
--- a/i18n/af.tsv
+++ b/i18n/af.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Oplaaispoed
#, machine
extension Another Mister Download Manager (a server) Nog 'n Mister Download Manager ('n bediener)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Oudio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Blaaieruitbreiding
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Gebruik gevorderde blaaierintegrasie is afgeskakel in Opsies → Algemeen.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Wag 'n oomblik, probeer dan weer.
diff --git a/i18n/am.tsv b/i18n/am.tsv
index 9df834be..12693caf 100644
--- a/i18n/am.tsv
+++ b/i18n/am.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate የማስተላለፊያ ፍጥነት
#, machine
column Upload speed የስቀላ ፍጥነት
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager የቪዲዮዎች ዝርዝር፦ በMister Download Manager ውስጥ ይምረጧቸው
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue ወደ ወረፋው ታክሏል
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) ሌላ Mister Download Manager (አገልጋይ)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio ኦዲዮ
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension የአሳሽ ቅጥያ
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager ከMister Download Manager ጋር
#, machine
extension Connected to Mister Download Manager {version} ከMister Download Manager {version} ጋር ተገናኝቷል
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up መፈለግ አልተቻለም
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download አውርድ
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} ወደ አሳሹ የተተወው: {name}
#, machine
extension Live ቀጥታ
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… ጥራቶችን በመፈለግ ላይ…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long መፈለጉ በጣም ረጅም ጊዜ ወሰደ
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page በዚህ ገጽ ላይ ያሉ ሚዲያዎች
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager የዚህን ቅጥያ ቅጂ አይቀበልም
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager በሌሎች ቪዲዮዎች ተጠምዷል
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager አልተጫነም ወይም አልጀመረም
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager አልተጫነም፣ ወይም የአሳሽ ውህደቱ አልተዘጋጀም
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager ለዚህ ቪዲዮ yt-dlp ይፈልጋል
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager ከዚያ በዚህ አሳሽ ከሚጠቀምበት ፕሮክሲ በኩል ያወርዳል። አሳሹ አንድ ጊዜ እንዲፈቅዱ ይጠይቅዎታል፤ ይህን ማጥፋት ፈቃዱን ይሽራል።
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} ከ{site} የሚመጡ ውርዶች
#, machine
extension No video or sound found on this page yet. Play it, then open this again. በዚህ ገጽ ላይ እስካሁን ምንም ቪዲዮ ወይም ድምጽ አልተገኘም። ያጫውቱት፣ ከዚያ ይህን እንደገና ይክፈቱ።
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here እዚህ የሚወርድ ቪዲዮ የለም
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. አልተደረሰም። አድራሻውን በዚህ አሳሽ ውስጥ አንድ ጊዜ ይክፈቱ እና የምስክር ወረቀቱን ይቀበሉ፣ ከዚያ እንደገና ይሞክሩ።
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… በMister Download Manager ውስጥ ክፈት…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it ክፈት
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. የላቀ የአሳሽ ውህደትን ተጠቀም በአማራጮች → አጠቃላይ ውስጥ ጠፍቷል።
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video ቪዲዮ
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. ትንሽ ይጠብቁ፣ ከዚያ እንደገና ይሞክሩ።
diff --git a/i18n/ar.tsv b/i18n/ar.tsv
index 25c3c943..899f0d56 100644
--- a/i18n/ar.tsv
+++ b/i18n/ar.tsv
@@ -4307,10 +4307,22 @@ column Transfer rate معدل النقل
#, machine
column Upload speed سرعة الرفع
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager قائمة فيديوهات: اختر منها في Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue تمت الإضافة إلى قائمة الانتظار
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Mister Download Manager آخر (خادم)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio صوت
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension ملحق المتصفح
@@ -4330,6 +4342,10 @@ extension Connected to Mister Download Manager متصل بـ Mister Download Man
#. {version} = a version number (keep the braces as they are)
extension Connected to Mister Download Manager {version} متصل بـ Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up تعذر البحث
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
extension Download تنزيل
#. text in the browser extension
@@ -4407,6 +4423,14 @@ extension Left to the browser: {name} متروك للمتصفح: {name}
#. beside a stream in the toolbar button's popup: it is a live broadcast (no fixed length); short
extension Live مباشر
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… يجري البحث عن الجودات…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long استغرق البحث وقتا طويلا
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
extension Media on this page الوسائط في هذه الصفحة
#. text in the browser extension
@@ -4419,12 +4443,20 @@ extension Mister Download Manager didn't start in time لم يبدأ Mister Down
#. status when the app refuses this copy of the extension (another copy is installed, or it came from another store); keep the name Mister Download Manager as it is
extension Mister Download Manager doesn't accept this copy of the extension لا يقبل Mister Download Manager هذه النسخة من الملحق
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager مشغول بفيديوهات أخرى
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
extension Mister Download Manager isn't installed or didn't start لم يتم تثبيت Mister Download Manager أو لم يبدأ
#. text in the browser extension
#. status when the browser can't find the app's connection; keep the name Mister Download Manager as it is
extension Mister Download Manager isn't installed, or its browser integration isn't set up لم يتم تثبيت Mister Download Manager، أو لم يتم إعداد الربط بالمستعرض الخاص به
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video يحتاج Mister Download Manager إلى yt-dlp لهذا الفيديو
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. يجري Mister Download Manager التنزيل بعد ذلك عبر الوكيل نفسه الذي يستخدمه هذا المستعرض. يطلب منك المستعرض مرة واحدة السماح بذلك؛ وإيقاف هذا يلغي ذلك.
#. text in the browser extension
@@ -4446,10 +4478,18 @@ extension Never take downloads from {site} عدم التقاط التنزيلا
#. shown in the toolbar button's popup when the current web page hasn't loaded any video, sound or stream yet
extension No video or sound found on this page yet. Play it, then open this again. لم يتم العثور على أي فيديو أو صوت في هذه الصفحة بعد. ابدأ تشغيله، ثم افتح هذا مرة أخرى.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here لا يوجد فيديو للتنزيل هنا
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. لم يتم الوصول إليه. افتح عنوانه مرة واحدة في هذا المتصفح واقبل شهادته، ثم حاول مرة أخرى.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… فتح في Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it افتحه
@@ -4545,6 +4585,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. استخدام تكامل المتصفح المتقدم معطل في خيارات ← عام.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video فيديو
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. انتظر لحظة، ثم حاول مرة أخرى.
diff --git a/i18n/as.tsv b/i18n/as.tsv
index 9b549f77..72c90e67 100644
--- a/i18n/as.tsv
+++ b/i18n/as.tsv
@@ -5666,6 +5666,10 @@ column Upload speed আপলোড গতি
#, machine
extension Another Mister Download Manager (a server) আন এটা Mister Download Manager (এটা ছাৰ্ভাৰ)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio অডিঅ'
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension ব্ৰাউজাৰ এক্সটেনচন
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. বিকল্পসমূহ → সাধাৰণত উন্নত ব্ৰাউজাৰ ইন্টিগ্ৰেচন ব্যৱহাৰ কৰক বন্ধ আছে।
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video ভিডিঅ'
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. অলপ সময় অপেক্ষা কৰক, তাৰ পিছত পুনৰ চেষ্টা কৰক।
diff --git a/i18n/az.tsv b/i18n/az.tsv
index ca8103e9..9a3a5a3f 100644
--- a/i18n/az.tsv
+++ b/i18n/az.tsv
@@ -5662,6 +5662,10 @@ column Upload speed Göndərmə sürəti
#, machine
extension Another Mister Download Manager (a server) Başqa bir Mister Download Manager (server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Brauzer genişlənməsi
@@ -5936,6 +5940,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Seçimlər → Ümumi bölməsində Qabaqcıl brauzer inteqrasiyasından istifadə et söndürülüb.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Bir az gözləyin, sonra yenidən cəhd edin.
diff --git a/i18n/be.tsv b/i18n/be.tsv
index 21cf9bdb..385937b9 100644
--- a/i18n/be.tsv
+++ b/i18n/be.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Хуткасць аддачы
#, machine
extension Another Mister Download Manager (a server) Іншы Mister Download Manager (сервер)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Аўдыё
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Пашырэнне браўзера
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Выкарыстоўваць пашыраную інтэграцыю з браўзерам адключана ў Параметры → Агульныя.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Відэа
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Пачакайце крыху, потым паспрабуйце яшчэ раз.
diff --git a/i18n/bg.tsv b/i18n/bg.tsv
index 094e93a5..caf9b6b5 100644
--- a/i18n/bg.tsv
+++ b/i18n/bg.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Скорост на трансфер
#, machine
column Upload speed Скорост на качване
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Списък с видеоклипове: изберете ги в Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Добавено към опашката
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Друг Mister Download Manager (сървър)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Аудио
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Разширение на браузъра
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Свързан с Mister Download
#, machine
extension Connected to Mister Download Manager {version} Свързан с Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Търсенето не успя
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Изтеглете
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Оставено на браузъра: {n
#, machine
extension Live На живо
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Търсене на качествата…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Търсенето отне твърде много време
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Мултимедия на тази страница
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager не приема това копие на разширението
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager е зает с други видеоклипове
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager не е инсталиран или не е стартиран
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager не е инсталиран или интеграцията му с браузъра не е настроена
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager се нуждае от yt-dlp за това видео
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager след това изтегля през същия прокси сървър като този браузър. Браузърът ще ви попита веднъж дали да го разрешите; изключването на тази опция отменя това.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Никога не вземайте и
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Все още не е намерено видео или звук на тази страница. Пуснете го, след което отворете това отново.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Тук няма видео за изтегляне
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Не е достигнато. Отворете адреса му веднъж в този браузър и приемете сертификата му, след което опитайте отново.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Отваряне в Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Отворете го
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. „Използване на разширена интеграция с браузъра“ е изключено в Опции → Общи.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Видео
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Изчакайте малко, след което опитайте отново.
diff --git a/i18n/bn.tsv b/i18n/bn.tsv
index dd0208ff..fb1b4fda 100644
--- a/i18n/bn.tsv
+++ b/i18n/bn.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate স্থানান্তর হার
#, machine
column Upload speed আপলোড গতি
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager ভিডিওর তালিকা: Mister Download Manager-এ বেছে নিন
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue কিউতে যোগ করা হয়েছে
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) অন্য একটি Mister Download Manager (একটি সার্ভার)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio অডিও
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension ব্রাউজার এক্সটেনশন
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Mister Download Manager-এর
#, machine
extension Connected to Mister Download Manager {version} Mister Download Manager {version}-এর সাথে সংযুক্ত
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up খোঁজা যায়নি
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download ডাউনলোড করুন
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} ব্রাউজারে ছেড়
#, machine
extension Live লাইভ
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… কোয়ালিটি খোঁজা হচ্ছে…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long খুঁজতে অনেক বেশি সময় লেগেছে
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page এই পৃষ্ঠার মিডিয়া
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager এক্সটেনশনের এই কপি গ্রহণ করে না
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager অন্য ভিডিওর কাজে ব্যস্ত
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager ইনস্টল করা নেই বা চালু হয়নি
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager ইনস্টল করা নেই, অথবা এর ব্রাউজার ইন্টিগ্রেশন সেট আপ করা নেই
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video এই ভিডিওর জন্য Mister Download Manager-এর yt-dlp দরকার
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager তারপর এই ব্রাউজারের মতো একই প্রক্সির মাধ্যমে ডাউনলোড করে। ব্রাউজার আপনাকে একবার এটি অনুমতি দিতে বলবে; এটি বন্ধ করলে সেই অনুমতি বাতিল হয়ে যাবে।
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} {site} থেকে আর ডাউ
#, machine
extension No video or sound found on this page yet. Play it, then open this again. এই পৃষ্ঠায় এখনো কোনো ভিডিও বা অডিও পাওয়া যায়নি। এটি চালান, তারপর এটি আবার খুলুন।
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here এখানে ডাউনলোড করার মতো কোনো ভিডিও নেই
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. পৌঁছানো যায়নি। এই ব্রাউজারে একবার এর ঠিকানা খুলুন এবং এর সার্টিফিকেট গ্রহণ করুন, তারপর আবার চেষ্টা করুন।
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Mister Download Manager-এ খুলুন…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it এটি খুলুন
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. বিকল্প → সাধারণে উন্নত ব্রাউজার ইন্টিগ্রেশন ব্যবহার করুন বন্ধ আছে।
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video ভিডিও
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. এক মুহূর্ত অপেক্ষা করুন, তারপর আবার চেষ্টা করুন।
diff --git a/i18n/bs.tsv b/i18n/bs.tsv
index 7ca70427..cf2dc612 100644
--- a/i18n/bs.tsv
+++ b/i18n/bs.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Brzina slanja
#, machine
extension Another Mister Download Manager (a server) Drugi Mister Download Manager (server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Proširenje preglednika
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Opcija „Koristi naprednu integraciju preglednika” je isključena u Opcijama → Općenito.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Sačekajte trenutak, zatim pokušajte ponovo.
diff --git a/i18n/ca-es-valencia.tsv b/i18n/ca-es-valencia.tsv
index ec52ed48..0a1ce21d 100644
--- a/i18n/ca-es-valencia.tsv
+++ b/i18n/ca-es-valencia.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Velocitat de pujada
#, machine
extension Another Mister Download Manager (a server) Un altre Mister Download Manager (un servidor)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Àudio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Extensió del navegador
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. «Usar integració avançada del navegador» està desactivat en Opcions → General.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Vídeo
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Espereu un moment, després torneu a intentar-ho.
diff --git a/i18n/ca.tsv b/i18n/ca.tsv
index a39ead31..692b239f 100644
--- a/i18n/ca.tsv
+++ b/i18n/ca.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Velocitat de transferència
#, machine
column Upload speed Velocitat de pujada
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Una llista de vídeos: trieu-los a Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue S'ha afegit a la cua
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Un altre Mister Download Manager (un servidor)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Àudio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Extensió del navegador
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Connectat a Mister Download Manag
#, machine
extension Connected to Mister Download Manager {version} Connectat a Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up No s'ha pogut consultar
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Baixa
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Deixat al navegador: {name}
#, machine
extension Live En directe
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Cercant les qualitats…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long La cerca ha trigat massa
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Contingut multimèdia en aquesta pàgina
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager n
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager no accepta aquesta còpia de l'extensió
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager està ocupat amb altres vídeos
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager no està instal·lat o no s'ha iniciat
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager no està instal·lat o la seva integració amb el navegador no està configurada
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager necessita yt-dlp per a aquest vídeo
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Aleshores, Mister Download Manager baixa els fitxers a través del mateix servidor intermediari que aquest navegador. El navegador et demanarà una vegada que ho permetis; si desactives aquesta opció, revocaràs el permís.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} No interceptis mai les baixades de {s
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Encara no s’ha trobat cap vídeo ni cap so en aquesta pàgina. Reprodueix-ne un i torna a obrir-ho.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here No hi ha cap vídeo per baixar aquí
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. No s'ha pogut accedir. Obriu la seva adreça una vegada en aquest navegador i accepteu el seu certificat, i torneu-ho a provar.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Obre a Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Obrir-lo
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. L'opció «Utilitza la integració avançada del navegador» està desactivada a Opcions → General.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Vídeo
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Espereu un moment i torneu-ho a provar.
diff --git a/i18n/chr.tsv b/i18n/chr.tsv
index 67382e11..2332af81 100644
--- a/i18n/chr.tsv
+++ b/i18n/chr.tsv
@@ -5666,6 +5666,10 @@ column Upload speed ᏗᎦᏅᏍᎪᏂᏙᎲ ᏗᏟᎶᏍᏗ
#, machine
extension Another Mister Download Manager (a server) ᏅᏩᏓᎴ Mister Download Manager (ᎤᎾᏗᏱᏍᎩ)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension ᎤᏃᎴ-ᎠᏂᏃᏔᏅᎯ ᎤᏅᎯᏓᏍᏗ
@@ -5937,6 +5941,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. ᎦᎸᎳᏗᏢ ᏗᏓᏟᎶᏍᏗ ᎨᏒ ᎤᎵᏍᎪᎸᏔᏅᎯ ᎥᏝ ᏱᎩ ᎾᎿ ᎪᎯᏍᏗ → ᎦᎸᎳᏗᏢ.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. ᎣᏍᏓ ᎢᏣᎦᏘᏓ, ᎿᏉᏃ ᏔᎵᏁ ᎢᏣᏢᏓᎳ.
diff --git a/i18n/cs.tsv b/i18n/cs.tsv
index f8789804..6a00dddf 100644
--- a/i18n/cs.tsv
+++ b/i18n/cs.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Přenosová rychlost
#, machine
column Upload speed Rychlost odesílání
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Seznam videí: vyberte je v Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Přidáno do fronty
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Jiný Mister Download Manager (server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Zvuk
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Rozšíření prohlížeče
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Připojeno k Mister Download Mana
#, machine
extension Connected to Mister Download Manager {version} Připojeno k Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Vyhledání se nezdařilo
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Stáhnout
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Ponecháno prohlížeči: {name}
#, machine
extension Live Živě
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Vyhledávání kvalit…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Vyhledávání trvalo příliš dlouho
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Média na této stránce
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager s
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Aplikace Mister Download Manager tuto kopii rozšíření nepřijímá
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager je zaneprázdněn jinými videi
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Aplikace Mister Download Manager není nainstalovaná nebo se nespustila
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Aplikace Miste
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Aplikace Mister Download Manager není nainstalovaná nebo není nastavená její integrace s prohlížečem
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager potřebuje pro toto video yt-dlp
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Aplikace Mister Download Manager pak stahuje přes stejný proxy server jako tento prohlížeč. Prohlížeč vás jednou požádá o povolení; vypnutím této možnosti toto povolení zrušíte.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Nikdy nepřebírat stahování z webu
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Na této stránce zatím nebylo nalezeno žádné video ani zvuk. Spusťte přehrávání a poté toto znovu otevřete.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Tady není žádné video ke stažení
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Nedosaženo. Otevřete jeho adresu jednou v tomto prohlížeči a přijměte jeho certifikát, poté zkuste znovu.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Otevřít v Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Otevřít
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Použít pokročilou integraci prohlížeče je vypnuto v Možnosti → Obecné.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Počkejte chvíli a zkuste to znovu.
diff --git a/i18n/cy.tsv b/i18n/cy.tsv
index 9dacc4a3..65655a66 100644
--- a/i18n/cy.tsv
+++ b/i18n/cy.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Cyflymder llwytho i fyny
#, machine
extension Another Mister Download Manager (a server) Mister Download Manager arall (gweinydd)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Sain
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Estyniad porwr
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Mae Defnyddio integreiddio porwr uwch i ffwrdd yn Opsiynau → Cyffredinol.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Fideo
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Arhoswch funud, yna rhowch gynnig arall arni.
diff --git a/i18n/da.tsv b/i18n/da.tsv
index 7a2b9292..5ae88c56 100644
--- a/i18n/da.tsv
+++ b/i18n/da.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Overførselshastighed
#, machine
column Upload speed Uploadhastighed
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager En liste med videoer: vælg dem i Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Føjet til køen
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) En anden Mister Download Manager (en server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Lyd
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Browserudvidelse
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Forbundet til Mister Download Man
#, machine
extension Connected to Mister Download Manager {version} Forbundet til Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Kunne ikke slå det op
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Download
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Overladt til browseren: {name}
#, machine
extension Live Live
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Finder kvaliteterne…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Opslaget tog for lang tid
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Medier på denne side
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager s
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager accepterer ikke denne kopi af udvidelsen
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager er optaget af andre videoer
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager er ikke installeret eller blev ikke startet
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager er ikke installeret, eller dens browserintegration er ikke konfigureret
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager skal bruge yt-dlp til denne video
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager downloader derefter gennem den samme proxy som denne browser. Browseren spørger dig én gang, om du vil tillade det; hvis du slår dette fra, trækkes tilladelsen tilbage.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Overfør aldrig downloads fra {site}
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Der er endnu ikke fundet video eller lyd på denne side. Afspil den, og åbn derefter dette igen.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Ingen video at downloade her
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Ikke nået. Åbn dens adresse én gang i denne browser, og acceptér dens certifikat, og prøv derefter igen.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Åbn i Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Åbn den
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Brug avanceret browserintegration er slået fra i Indstillinger → Generelt.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Vent et øjeblik, og prøv derefter igen.
diff --git a/i18n/de.tsv b/i18n/de.tsv
index 5b7d09c6..e54740a9 100644
--- a/i18n/de.tsv
+++ b/i18n/de.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Übertragungsrate
#, machine
column Upload speed Upload-Geschwindigkeit
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Eine Liste von Videos: Wählen Sie sie in Mister Download Manager aus
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Zur Warteschlange hinzugefügt
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Ein anderer Mister Download Manager (ein Server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Browsererweiterung
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Mit Mister Download Manager verbu
#, machine
extension Connected to Mister Download Manager {version} Mit Mister Download Manager {version} verbunden
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Abfrage nicht möglich
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Herunterladen
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Für den Browser belassen: {name}
#, machine
extension Live Live
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Qualitäten werden gesucht…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Die Abfrage hat zu lange gedauert
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Medien auf dieser Seite
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager w
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager akzeptiert diese Kopie der Erweiterung nicht
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager ist mit anderen Videos beschäftigt
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager ist nicht installiert oder wurde nicht gestartet
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager ist nicht installiert oder die Browserintegration ist nicht eingerichtet
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager benötigt yt-dlp für dieses Video
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager lädt dann über denselben Proxy wie dieser Browser herunter. Der Browser fordert Sie einmal auf, dies zuzulassen; wenn Sie dies deaktivieren, wird dies rückgängig gemacht.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Niemals Downloads von {site} überneh
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Auf dieser Seite wurden noch keine Videos oder Sounds gefunden. Spielen Sie ein Video oder einen Sound ab und öffnen Sie dieses Fenster dann erneut.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Hier gibt es kein Video zum Herunterladen
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Nicht erreicht. Öffnen Sie die Adresse einmal in diesem Browser und akzeptieren Sie das Zertifikat, dann versuchen Sie es erneut.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… In Mister Download Manager öffnen…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Öffnen
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. „Erweiterte Browserintegration verwenden“ ist in „Optionen → Allgemein“ deaktiviert.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Warten Sie einen Moment, dann versuchen Sie es erneut.
diff --git a/i18n/el.tsv b/i18n/el.tsv
index e5bc722f..e18ca474 100644
--- a/i18n/el.tsv
+++ b/i18n/el.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Ρυθμός μεταφοράς
#, machine
column Upload speed Ταχύτητα αποστολής
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Μια λίστα βίντεο: επιλέξτε τα στο Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Προστέθηκε στην ουρά
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Άλλο Mister Download Manager (διακομιστής)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Ήχος
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Επέκταση προγράμματος περιήγησης
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Συνδεδεμένο στο Mis
#, machine
extension Connected to Mister Download Manager {version} Συνδεδεμένο στο Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Η αναζήτηση απέτυχε
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Λήψη
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Παραμένει στο πρόγραμμ
#, machine
extension Live Ζωντανά
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Αναζήτηση ποιοτήτων…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Η αναζήτηση άργησε υπερβολικά
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Πολυμέσα σε αυτήν τη σελίδα
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Το Mister Download Mana
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Το Mister Download Manager δεν δέχεται αυτό το αντίγραφο της επέκτασης
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Το Mister Download Manager είναι απασχολημένο με άλλα βίντεο
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Το Mister Download Manager δεν είναι εγκατεστημένο ή δεν ξεκίνησε
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Το Mister Do
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Το Mister Download Manager δεν είναι εγκατεστημένο ή η ενσωμάτωση του προγράμματος περιήγησης δεν έχει ρυθμιστεί
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Το Mister Download Manager χρειάζεται το yt-dlp για αυτό το βίντεο
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Στη συνέχεια, το Mister Download Manager πραγματοποιεί λήψεις μέσω του ίδιου διακομιστή μεσολάβησης με αυτό το πρόγραμμα περιήγησης. Το πρόγραμμα περιήγησης θα σας ζητήσει μία φορά να το επιτρέψετε. Η απενεργοποίηση αυτής της ρύθμισης ανακαλεί την άδεια.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Να μην λαμβάνονται π
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Δεν βρέθηκε ακόμα βίντεο ή ήχος σε αυτήν τη σελίδα. Αναπαραγάγετε το και, στη συνέχεια, ανοίξτε ξανά αυτό.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Δεν υπάρχει βίντεο για λήψη εδώ
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Δεν είναι προσβάσιμο. Ανοίξτε τη διεύθυνσή του μία φορά σε αυτό το πρόγραμμα περιήγησης και αποδεχτείτε το πιστοποιητικό του, μετά δοκιμάστε ξανά.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Άνοιγμα στο Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Άνοιγμα
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Η επιλογή «Χρήση προηγμένης ενσωμάτωσης προγράμματος περιήγησης» είναι απενεργοποιημένη στις Επιλογές → Γενικά.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Βίντεο
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Περιμένετε λίγο, μετά δοκιμάστε ξανά.
diff --git a/i18n/en.tsv b/i18n/en.tsv
index 04a22b1a..5788f081 100644
--- a/i18n/en.tsv
+++ b/i18n/en.tsv
@@ -143,6 +143,8 @@
#. window title in extracting archives (a download's log, the Archive password window)
#. window title: 7-Zip (a program's name) must be installed
7-Zip needed 7-Zip needed
+#. tab in the main window
+ 720p 720p
#. text in the Options window
#. Options → Archives: {path} is where 7-Zip's program is
7z and RAR archives are extracted by 7-Zip ({path}). 7z and RAR archives are extracted by 7-Zip ({path}).
@@ -4219,9 +4221,18 @@ column Transfer rate Transfer rate
#. column title: what a torrent sends to peers, bytes per second
column Upload speed Upload speed
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+extension A list of videos: choose them in Mister Download Manager A list of videos: choose them in Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+extension Added to the queue Added to the queue
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
extension Another Mister Download Manager (a server) Another Mister Download Manager (a server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
extension Browser extension Browser extension
#. text in the browser extension
@@ -4239,6 +4250,9 @@ extension Connected to Mister Download Manager Connected to Mister Download Mana
#. {version} = a version number (keep the braces as they are)
extension Connected to Mister Download Manager {version} Connected to Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+extension Could not look it up Could not look it up
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
extension Download Download
#. text in the browser extension
@@ -4307,6 +4321,12 @@ extension Left to the browser: {name} Left to the browser: {name}
#. beside a stream in the toolbar button's popup: it is a live broadcast (no fixed length); short
extension Live Live
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+extension Looking up the qualities… Looking up the qualities…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+extension Looking up took too long Looking up took too long
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
extension Media on this page Media on this page
#. text in the browser extension
@@ -4319,12 +4339,18 @@ extension Mister Download Manager didn't start in time Mister Download Manager d
#. status when the app refuses this copy of the extension (another copy is installed, or it came from another store); keep the name Mister Download Manager as it is
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager doesn't accept this copy of the extension
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+extension Mister Download Manager is busy with other videos Mister Download Manager is busy with other videos
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
extension Mister Download Manager isn't installed or didn't start Mister Download Manager isn't installed or didn't start
#. text in the browser extension
#. status when the browser can't find the app's connection; keep the name Mister Download Manager as it is
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager isn't installed, or its browser integration isn't set up
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager needs yt-dlp for this video
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back.
#. text in the browser extension
@@ -4345,9 +4371,15 @@ extension Never take downloads from {site} Never take downloads from {site}
#. shown in the toolbar button's popup when the current web page hasn't loaded any video, sound or stream yet
extension No video or sound found on this page yet. Play it, then open this again. No video or sound found on this page yet. Play it, then open this again.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+extension No video to download here No video to download here
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Not reached. Open its address once in this browser and accept its certificate, then try again.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+extension Open in Mister Download Manager… Open in Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
extension Open it Open it
#. text in the browser extension
@@ -4430,6 +4462,9 @@ extension Update Mister Download Manager to use everything this extension offers
#. why a download stayed with the browser: the app's setting 'Use advanced browser integration' is off; keep the setting's name as the app shows it
extension Use advanced browser integration is off in Options → General. Use advanced browser integration is off in Options → General.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
extension Wait a moment, then try again. Wait a moment, then try again.
#. text in the browser extension
diff --git a/i18n/es-mx.tsv b/i18n/es-mx.tsv
index 661e7da8..13270ac0 100644
--- a/i18n/es-mx.tsv
+++ b/i18n/es-mx.tsv
@@ -5662,10 +5662,21 @@ column Transfer rate Tasa de transferencia
#, machine
column Upload speed Velocidad de subida
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Es una lista de videos: elíjalos en Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Agregado a la cola
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Otro Mister Download Manager (un servidor)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Extensión del navegador
@@ -5688,6 +5699,10 @@ extension Connected to Mister Download Manager Conectado a Mister Download Manag
#, machine
extension Connected to Mister Download Manager {version} Conectado a Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up No se pudieron buscar las calidades
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Descargar
@@ -5778,6 +5793,14 @@ extension Left to the browser: {name} Se dejó al navegador: {name}
#, machine
extension Live En vivo
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Buscando las calidades…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long La búsqueda tardó demasiado
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Contenido multimedia en esta página
@@ -5794,6 +5817,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager n
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager no acepta esta copia de la extensión
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager está ocupado con otros videos
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager no está instalado o no se inició
@@ -5802,6 +5829,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager no está instalado o su integración con el navegador no está configurada
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager necesita yt-dlp para este video
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager descarga entonces a través del mismo proxy que este navegador. El navegador te pedirá una vez que lo permitas; al desactivar esto, se revoca el permiso.
@@ -5828,10 +5859,18 @@ extension Never take downloads from {site} Nunca tomar descargas de {site}
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Aún no se encontró ningún video ni sonido en esta página. Reprodúcelo y vuelve a abrir esto.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here No hay video que descargar aquí
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. No se pudo establecer conexión. Abra su dirección una vez en este navegador y acepte su certificado, luego inténtelo de nuevo.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Abrir en Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Abrir
@@ -5940,6 +5979,9 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. La opción Usar integración avanzada del navegador está desactivada en Opciones → General.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Espere un momento y vuelva a intentarlo.
diff --git a/i18n/es.tsv b/i18n/es.tsv
index 073d0e28..b26454e9 100644
--- a/i18n/es.tsv
+++ b/i18n/es.tsv
@@ -5662,10 +5662,21 @@ column Transfer rate Velocidad de transferencia
#, machine
column Upload speed Velocidad de subida
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Es una lista de vídeos: elíjalos en Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Añadido a la cola
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Otro Mister Download Manager (un servidor)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Extensión del navegador
@@ -5688,6 +5699,10 @@ extension Connected to Mister Download Manager Conectado a Mister Download Manag
#, machine
extension Connected to Mister Download Manager {version} Conectado a Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up No se pudieron buscar las calidades
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Descargar
@@ -5778,6 +5793,14 @@ extension Left to the browser: {name} Se dejó al navegador: {name}
#, machine
extension Live En directo
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Buscando las calidades…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long La búsqueda tardó demasiado
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Contenido multimedia en esta página
@@ -5794,6 +5817,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager n
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager no acepta esta copia de la extensión
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager está ocupado con otros vídeos
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager no está instalado o no se inició
@@ -5802,6 +5829,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager no está instalado o su integración con el navegador no está configurada
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager necesita yt-dlp para este vídeo
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager descarga entonces a través del mismo proxy que este navegador. El navegador te pedirá permiso una vez; al desactivar esta opción, se revoca.
@@ -5828,10 +5859,18 @@ extension Never take downloads from {site} No aceptar descargas de {site}
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Aún no se ha encontrado ningún vídeo ni sonido en esta página. Reprodúcelo y vuelve a abrir esto.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here No hay vídeo que descargar aquí
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. No se ha podido conectar. Abra su dirección una vez en este navegador y acepte su certificado, luego inténtelo de nuevo.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Abrir en Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Abrir
@@ -5940,6 +5979,9 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. La opción Usar integración avanzada del navegador está desactivada en Opciones → General.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+extension Video Vídeo
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Espere un momento y vuelva a intentarlo.
diff --git a/i18n/et.tsv b/i18n/et.tsv
index b637ab0d..af6214bc 100644
--- a/i18n/et.tsv
+++ b/i18n/et.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Edastuskiirus
#, machine
column Upload speed Üleslaadimiskiirus
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Videode loend: valige need rakenduses Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Lisatud järjekorda
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Muu Mister Download Manager (server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Heli
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Brauserilaiend
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Ühendatud rakendusega Mister Dow
#, machine
extension Connected to Mister Download Manager {version} Ühendatud rakendusega Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Otsimine ebaõnnestus
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Laadi alla
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Jäeti brauserile: {name}
#, machine
extension Live Otseülekanne
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Kvaliteetide otsimine…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Otsimine võttis liiga kaua aega
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Meedia sellel lehel
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager e
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager ei aktsepteeri seda laienduse koopiat
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager on teiste videotega hõivatud
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager pole installitud või ei käivitunud
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager pole installitud või selle brauseri integreerimine pole seadistatud
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager vajab selle video jaoks programmi yt-dlp
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager laadib seejärel alla sama puhverserveri kaudu, mida see brauser kasutab. Brauser küsib teilt selleks ühe korra luba; selle väljalülitamisel luba tühistatakse.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Ära võta enam allalaadimisi saidilt
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Sellelt lehelt pole veel videot ega heli leitud. Esitage seda ja avage seejärel see uuesti.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Siin pole allalaaditavat videot
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Pole kättesaadav. Avage selle aadress selles brauseris üks kord ja aktsepteerige selle sertifikaat, seejärel proovige uuesti.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Ava rakenduses Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Ava see
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Valik „Kasuta täiustatud brauseri integreerimist” on valikutes Suvandid → Üldine välja lülitatud.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Oodake hetk, seejärel proovige uuesti.
diff --git a/i18n/eu.tsv b/i18n/eu.tsv
index c2011719..6f4e6545 100644
--- a/i18n/eu.tsv
+++ b/i18n/eu.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Igoera-abiadura
#, machine
extension Another Mister Download Manager (a server) Beste Mister Download Manager bat (zerbitzari bat)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Audioa
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Arakatzailearen luzapena
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Arakatzailearen integrazio aurreratua erabili desaktibatuta dago Aukerak → Orokorra atalean.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Bideoa
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Itxaron une bat, eta saiatu berriro.
diff --git a/i18n/fa.tsv b/i18n/fa.tsv
index db1992db..8e979691 100644
--- a/i18n/fa.tsv
+++ b/i18n/fa.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate نرخ انتقال
#, machine
column Upload speed سرعت آپلود
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager فهرستی از ویدیوها: آن‌ها را در Mister Download Manager انتخاب کنید
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue به صف اضافه شد
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) یک Mister Download Manager دیگر (یک سرور)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio صدا
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension افزونه مرورگر
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager به Mister Download Manager مت
#, machine
extension Connected to Mister Download Manager {version} به Mister Download Manager {version} متصل شد
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up جست‌وجو انجام نشد
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download دانلود
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} واگذارشده به مرورگر: {nam
#, machine
extension Live زنده
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… در حال جست‌وجوی کیفیت‌ها…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long جست‌وجو بیش از حد طول کشید
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page رسانه‌های این صفحه
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager این نسخه از افزونه را نمی‌پذیرد
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager با ویدیوهای دیگر مشغول است
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager نصب نشده است یا اجرا نشد
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager نصب نشده است یا یکپارچه‌سازی آن با مرورگر تنظیم نشده است
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager برای این ویدیو به yt-dlp نیاز دارد
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager سپس از طریق همان پروکسی این مرورگر بارگیری می‌کند. مرورگر یک‌بار از شما اجازه می‌گیرد؛ با خاموش کردن این گزینه، اجازه لغو می‌شود.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} هرگز بارگیری‌های {sit
#, machine
extension No video or sound found on this page yet. Play it, then open this again. هنوز ویدیو یا صدایی در این صفحه پیدا نشده است. آن را پخش کنید و سپس این پنجره را دوباره باز کنید.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here ویدیویی برای دانلود در اینجا نیست
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. قابل دسترسی نیست. یک بار آدرس آن را در این مرورگر باز کنید و گواهی آن را بپذیرید، سپس دوباره امتحان کنید.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… باز کردن در Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it باز کردن آن
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. «استفاده از یکپارچه‌سازی پیشرفته مرورگر» در گزینه‌ها ← عمومی خاموش است.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video ویدیو
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. لحظه‌ای صبر کنید، سپس دوباره امتحان کنید.
diff --git a/i18n/fi.tsv b/i18n/fi.tsv
index 3b8ba725..e0efc130 100644
--- a/i18n/fi.tsv
+++ b/i18n/fi.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Siirtonopeus
#, machine
column Upload speed Lähetysnopeus
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Videoluettelo: valitse videot sovelluksessa Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Lisätty jonoon
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Toinen Mister Download Manager (palvelin)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Ääni
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Selaimen laajennus
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Yhdistetty sovellukseen Mister Do
#, machine
extension Connected to Mister Download Manager {version} Yhdistetty sovellukseen Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Hakeminen epäonnistui
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Lataa
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Jätetty selaimelle: {name}
#, machine
extension Live Live
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Haetaan laatuvaihtoehtoja…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Haku kesti liian kauan
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Sivun media
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager e
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager ei hyväksy tätä laajennuksen kopiota
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager on varattu muiden videoiden takia
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager ei ole asennettu tai sitä ei käynnistetty
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager ei ole asennettu, tai sen selainintegrointia ei ole määritetty
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager tarvitsee yt-dlp:n tätä videota varten
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Tällöin Mister Download Manager lataa saman välityspalvelimen kautta kuin tämä selain. Selain pyytää kerran lupaa; tämän poistaminen käytöstä peruuttaa luvan.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Älä koskaan ota latauksia sivustolt
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Sivulta ei ole vielä löytynyt videoita eikä ääntä. Toista videota tai ääntä ja avaa tämä uudelleen.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Täällä ei ole ladattavaa videota
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Ei tavoitettu. Avaa sen osoite kerran tässä selaimessa ja hyväksy sen varmenne, yritä sitten uudelleen.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Avaa sovelluksessa Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Avaa se
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Käytä laajennettua selainintegraatiota on pois päältä kohdassa Asetukset → Yleiset.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Odota hetki ja yritä sitten uudelleen.
diff --git a/i18n/fil.tsv b/i18n/fil.tsv
index 6a4c635a..83042f00 100644
--- a/i18n/fil.tsv
+++ b/i18n/fil.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Rate ng paglipat
#, machine
column Upload speed Bilis ng upload
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Listahan ng mga video: piliin ang mga ito sa Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Naidagdag sa queue
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Isa pang Mister Download Manager (isang server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Extension ng browser
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Nakakonekta sa Mister Download Ma
#, machine
extension Connected to Mister Download Manager {version} Nakakonekta sa Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Hindi ito nahanap
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download I-download
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Iniwan sa browser: {name}
#, machine
extension Live Live
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Hinahanap ang mga kalidad…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Masyadong natagalan ang paghahanap
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Media sa pahinang ito
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Hindi nagsimula sa oras a
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Hindi tinatanggap ng Mister Download Manager ang kopyang ito ng extension
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Abala ang Mister Download Manager sa ibang mga video
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Hindi naka-install ang Mister Download Manager o hindi nagsimula
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Hindi naka-ins
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Hindi naka-install ang Mister Download Manager, o hindi naka-set up ang integrasyon nito sa browser
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Kailangan ng Mister Download Manager ng yt-dlp para sa video na ito
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Pagkatapos ay magda-download ang Mister Download Manager sa pamamagitan ng parehong proxy gaya ng browser na ito. Isang beses kang tatanungin ng browser na payagan ito; ang pag-off nito ay babawiin iyon.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Huwag kailanman kumuha ng mga downloa
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Walang video o tunog na nakita sa pahinang ito. I-play ito, pagkatapos ay buksan muli ito.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Walang video na ida-download dito
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Hindi naabot. Buksan ang address nito nang isang beses sa browser na ito at tanggapin ang certificate nito, pagkatapos ay subukang muli.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Buksan sa Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Buksan ito
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Naka-off ang Gumamit ng advanced na integrasyon ng browser sa Mga Opsyon → Pangkalahatan.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Maghintay sandali, pagkatapos ay subukang muli.
diff --git a/i18n/fr-ca.tsv b/i18n/fr-ca.tsv
index 75d59b1f..33d37af0 100644
--- a/i18n/fr-ca.tsv
+++ b/i18n/fr-ca.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Vitesse de téléversement
#, machine
extension Another Mister Download Manager (a server) Un autre Mister Download Manager (un serveur)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Extension de navigateur
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. L’option « Utiliser l’intégration avancée du navigateur » est désactivée dans Options → Général.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Vidéo
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Attendez un instant, puis réessayez.
diff --git a/i18n/fr.tsv b/i18n/fr.tsv
index e8d9b97d..1c509428 100644
--- a/i18n/fr.tsv
+++ b/i18n/fr.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Taux de transfert
#, machine
column Upload speed Vitesse d'envoi
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Une liste de vidéos : choisissez-les dans Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Ajouté à la file d’attente
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Un autre Mister Download Manager (un serveur)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Extension de navigateur
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Connecté à Mister Download Mana
#, machine
extension Connected to Mister Download Manager {version} Connecté à Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Recherche impossible
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Télécharger
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Laissé au navigateur : {name}
#, machine
extension Live En direct
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Recherche des qualités…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long La recherche a pris trop de temps
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Contenu multimédia sur cette page
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager n
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager n’accepte pas cette copie de l’extension
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager est occupé avec d’autres vidéos
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager n’est pas installé ou n’a pas démarré
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager n’est pas installé, ou son intégration au navigateur n’est pas configurée
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager a besoin de yt-dlp pour cette vidéo
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager télécharge alors via le même proxy que ce navigateur. Le navigateur vous demande une fois de l’autoriser ; la désactivation de cette option annule cette autorisation.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Ne plus prendre les téléchargements
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Aucune vidéo ni aucun son n’a encore été détecté sur cette page. Lancez la lecture, puis rouvrez cette fenêtre.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Aucune vidéo à télécharger ici
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Non atteint. Ouvrez son adresse une fois dans ce navigateur et acceptez son certificat, puis réessayez.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Ouvrir dans Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Ouvrir
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. L’option « Utiliser l’intégration avancée du navigateur » est désactivée dans Options → Général.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Vidéo
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Attendez un instant, puis réessayez.
diff --git a/i18n/ga.tsv b/i18n/ga.tsv
index dee1d675..e0f7d8ca 100644
--- a/i18n/ga.tsv
+++ b/i18n/ga.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Luas uaslódála
#, machine
extension Another Mister Download Manager (a server) Mister Download Manager eile (freastalaí)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Fuaim
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Breiseán brabhsálaí
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Tá 'Úsáid comhtháthú brabhsálaí ardleibhéil' múchta in Roghanna → Ginearálta.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Físeán
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Fan nóiméad, ansin bain triail as arís.
diff --git a/i18n/gd.tsv b/i18n/gd.tsv
index 2ced32b0..a312585a 100644
--- a/i18n/gd.tsv
+++ b/i18n/gd.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Luaths luchdaidh suas
#, machine
extension Another Mister Download Manager (a server) Mister Download Manager eile (frithealaiche)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Fuaim
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Leudachan brabhsair
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Tha Cleachd amalachadh adhartach brobhsair dheth ann an Roghainnean → Coitcheann.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Fuirich mionaid, an uair sin feuch ris a-rithist.
diff --git a/i18n/gl.tsv b/i18n/gl.tsv
index 0351547e..e340e144 100644
--- a/i18n/gl.tsv
+++ b/i18n/gl.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Velocidade de subida
#, machine
extension Another Mister Download Manager (a server) Outro Mister Download Manager (un servidor)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Extensión do navegador
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Usar a integración avanzada do navegador está desactivado en Opcións → Xeral.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Vídeo
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Agarde un momento e ténteo de novo.
diff --git a/i18n/gu.tsv b/i18n/gu.tsv
index 1d1733af..b7f0ef08 100644
--- a/i18n/gu.tsv
+++ b/i18n/gu.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate ટ્રાન્સફર રેટ
#, machine
column Upload speed अपलोड સ્પીડ
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager વીડિયોની સૂચિ: તેમને Mister Download Managerમાં પસંદ કરો
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue કતારમાં ઉમેર્યું
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) બીજું Mister Download Manager (એક સર્વર)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio ઑડિઓ
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension બ્રાઉઝર એક્સ્ટેંશન
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Mister Download Manager સાથ
#, machine
extension Connected to Mister Download Manager {version} Mister Download Manager {version} સાથે કનેક્ટેડ
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up શોધી શકાયું નથી
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download ડાઉનલોડ કરો
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} બ્રાઉઝર પર છોડ્
#, machine
extension Live લાઇવ
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… ગુણવત્તાઓ શોધી રહ્યા છીએ…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long શોધવામાં ખૂબ સમય લાગ્યો
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page આ પૃષ્ઠ પર મીડિયા
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager એક્સટેન્શનની આ કૉપિ સ્વીકારતું નથી
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager અન્ય વીડિયોમાં વ્યસ્ત છે
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager ઇન્સ્ટોલ કરેલ નથી અથવા શરૂ થયું નથી
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager ઇન્સ્ટોલ કરેલ નથી, અથવા તેનું બ્રાઉઝર ઇન્ટિગ્રેશન સેટ અપ કરેલું નથી
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video આ વીડિયો માટે Mister Download Managerને yt-dlp ની જરૂર છે
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager પછી આ બ્રાઉઝર જેવા જ પ્રોક્સી દ્વારા ડાઉનલોડ કરે છે. બ્રાઉઝર તમને એક વાર તેને મંજૂરી આપવા માટે પૂછે છે; આ બંધ કરવાથી તે મંજૂરી પાછી ખેંચાઈ જાય છે.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} હવેથી {site} માંથ
#, machine
extension No video or sound found on this page yet. Play it, then open this again. આ પૃષ્ઠ પર હજી સુધી કોઈ વિડિયો કે ધ્વનિ મળ્યાં નથી. તેને ચલાવો, પછી આ ફરીથી ખોલો.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here અહીં ડાઉનલોડ કરવા માટે કોઈ વીડિયો નથી
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. પહોંચી શકાયું નથી. આ બ્રાઉઝરમાં તેનું સરનામું એકવાર ખોલો અને તેનું પ્રમાણપત્ર સ્વીકારો, પછી ફરી પ્રયાસ કરો.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Mister Download Managerમાં ખોલો…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it તે ખોલો
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. વિકલ્પો → સામાન્યમાં અદ્યતન બ્રાઉઝર એકીકરણનો ઉપયોગ કરો બંધ છે.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video વિડિઓ
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. થોડીવાર રાહ જુઓ, પછી ફરી પ્રયાસ કરો.
diff --git a/i18n/he.tsv b/i18n/he.tsv
index c9a99b3e..53817cae 100644
--- a/i18n/he.tsv
+++ b/i18n/he.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate קצב העברה
#, machine
column Upload speed מהירות העלאה
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager רשימת סרטונים: בחר אותם ב-Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue נוסף לתור
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Mister Download Manager אחר (שרת)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio שמע
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension הרחבת דפדפן
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager מחובר אל Mister Download M
#, machine
extension Connected to Mister Download Manager {version} מחובר אל Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up החיפוש נכשל
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download הורד
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} הושאר לדפדפן: {name}
#, machine
extension Live שידור חי
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… מחפש את האיכויות…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long החיפוש ארך זמן רב מדי
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page מדיה בדף זה
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager אינו מקבל עותק זה של ההרחבה
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager עסוק בסרטונים אחרים
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager אינו מותקן או לא הופעל
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager אינו מותקן, או ששילוב הדפדפן שלו אינו מוגדר
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager זקוק ל-yt-dlp עבור סרטון זה
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager מוריד אז דרך אותו שרת Proxy כמו הדפדפן הזה. הדפדפן יבקש ממך פעם אחת לאפשר זאת; כיבוי אפשרות זו מבטל זאת.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} לעולם אל תיקח הורדות
#, machine
extension No video or sound found on this page yet. Play it, then open this again. לא נמצאו סרטונים או צלילים בדף זה עדיין. הפעל אותם, ואז פתח זאת שוב.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here אין כאן סרטון להורדה
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. לא הושג. פתח את הכתובת שלו פעם אחת בדפדפן זה וקבל את האישור שלו, ואז נסה שוב.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… פתח ב-Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it פתח אותו
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. האפשרות 'השתמש בשילוב דפדפן מתקדם' כבויה ב'אפשרויות' ← 'כללי'.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video וידאו
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. המתן רגע, ואז נסה שוב.
diff --git a/i18n/hi.tsv b/i18n/hi.tsv
index 91e8668a..529d0ca4 100644
--- a/i18n/hi.tsv
+++ b/i18n/hi.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate स्थानांतरण दर
#, machine
column Upload speed अपलोड गति
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager वीडियो की सूची: उन्हें Mister Download Manager में चुनें
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue कतार में जोड़ा गया
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) कोई अन्य Mister Download Manager (एक सर्वर)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio ऑडियो
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension ब्राउज़र एक्सटेंशन
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Mister Download Manager से
#, machine
extension Connected to Mister Download Manager {version} Mister Download Manager {version} से कनेक्ट है
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up खोज नहीं हो सकी
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download डाउनलोड करें
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} ब्राउज़र के लिए
#, machine
extension Live लाइव
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… क्वालिटी खोजी जा रही हैं…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long खोजने में बहुत समय लगा
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page इस पृष्ठ का मीडिया
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager एक्सटेंशन की इस कॉपी को स्वीकार नहीं करता है
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager अन्य वीडियो में व्यस्त है
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager स्थापित नहीं है या शुरू नहीं हुआ
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager स्थापित नहीं है, या इसका ब्राउज़र एकीकरण सेट अप नहीं है
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video इस वीडियो के लिए Mister Download Manager को yt-dlp की आवश्यकता है
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager तब इसी ब्राउज़र के प्रॉक्सी के ज़रिए डाउनलोड करता है। ब्राउज़र एक बार इसकी अनुमति माँगता है; इसे बंद करने से वह अनुमति वापस ले ली जाती है।
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} {site} से डाउनलोड
#, machine
extension No video or sound found on this page yet. Play it, then open this again. इस पृष्ठ पर अभी तक कोई वीडियो या ध्वनि नहीं मिली। इसे चलाएँ, फिर इसे दोबारा खोलें।
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here यहाँ डाउनलोड करने के लिए कोई वीडियो नहीं है
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. पहुंचा नहीं जा सका। इस ब्राउज़र में एक बार इसका पता खोलें और इसके प्रमाणपत्र को स्वीकार करें, फिर पुनः प्रयास करें।
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Mister Download Manager में खोलें…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it इसे खोलें
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. विकल्प → सामान्य में उन्नत ब्राउज़र एकीकरण का उपयोग करें बंद है।
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video वीडियो
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. थोड़ा प्रतीक्षा करें, फिर पुनः प्रयास करें।
diff --git a/i18n/hr.tsv b/i18n/hr.tsv
index ee4c672a..a7c415c9 100644
--- a/i18n/hr.tsv
+++ b/i18n/hr.tsv
@@ -5658,10 +5658,22 @@ column Transfer rate Brzina prijenosa
#, machine
column Upload speed Brzina slanja
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Popis videozapisa: odaberite ih u Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Dodano u red čekanja
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Drugi Mister Download Manager (poslužitelj)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Zvuk
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Proširenje preglednika
@@ -5684,6 +5696,10 @@ extension Connected to Mister Download Manager Povezano s Mister Download Manage
#, machine
extension Connected to Mister Download Manager {version} Povezano s Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Traženje nije uspjelo
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Preuzmi
@@ -5774,6 +5790,14 @@ extension Left to the browser: {name} Prepušteno pregledniku: {name}
#, machine
extension Live Uživo
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Traženje kvaliteta…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Traženje je trajalo predugo
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Mediji na ovoj stranici
@@ -5790,6 +5814,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager s
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager ne prihvaća ovu kopiju proširenja
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager je zauzet drugim videozapisima
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager nije instaliran ili se nije pokrenuo
@@ -5798,6 +5826,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager nije instaliran ili njegova integracija preglednika nije postavljena
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager treba yt-dlp za ovaj videozapis
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager zatim preuzima putem istog proxyja kao i ovaj preglednik. Preglednik će vas jednom pitati želite li to dopustiti; isključivanjem ove opcije to se poništava.
@@ -5824,10 +5856,18 @@ extension Never take downloads from {site} Nikad ne preuzimaj s {site}
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Još nema videozapisa ili zvuka na ovoj stranici. Reproducirajte ih, a zatim ponovno otvorite ovo.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Ovdje nema videozapisa za preuzimanje
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Nije dosegnuto. Otvorite njegovu adresu jednom u ovom pregledniku i prihvatite njegov certifikat, a zatim pokušajte ponovno.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Otvori u Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Otvori
@@ -5936,6 +5976,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Opcija „Koristi naprednu integraciju preglednika” isključena je u Mogućnosti → Općenito.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Pričekajte trenutak, a zatim pokušajte ponovno.
diff --git a/i18n/hu.tsv b/i18n/hu.tsv
index 4a8becae..dd440c31 100644
--- a/i18n/hu.tsv
+++ b/i18n/hu.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Átviteli sebesség
#, machine
column Upload speed Feltöltési sebesség
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Videók listája: válassza ki őket a Mister Download Manager alkalmazásban
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Hozzáadva a sorhoz
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Másik Mister Download Manager (kiszolgáló)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Hang
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Böngészőbővítmény
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Csatlakoztatva az Mister Download
#, machine
extension Connected to Mister Download Manager {version} Csatlakoztatva az Mister Download Manager {version} alkalmazáshoz
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up A keresés sikertelen
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Letöltés
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Böngészőnek meghagyva: {name}
#, machine
extension Live Élő
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Minőségek keresése…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long A keresés túl sokáig tartott
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Média ezen az oldalon
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Az Mister Download Manage
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Az Mister Download Manager nem fogadja el a bővítmény ezen másolatát
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos A Mister Download Manager alkalmazás más videókkal van elfoglalva
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Az Mister Download Manager nincs telepítve, vagy nem indult el
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Az Mister Down
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Az Mister Download Manager nincs telepítve, vagy a böngészőintegrációja nincs beállítva
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video A Mister Download Manager alkalmazásnak szüksége van a yt-dlp eszközre ehhez a videóhoz
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Az Mister Download Manager ezután ugyanazon a proxyn keresztül tölt le, mint ez a böngésző. A böngésző egyszer engedélyt kér erre; ennek kikapcsolásával visszavonhatja az engedélyt.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Soha ne töltsön le fájlokat a(z) {
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Még nem található videó vagy hang ezen az oldalon. Indítsa el a lejátszást, majd nyissa meg újra.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Itt nincs letölthető videó
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Nem érhető el. Nyissa meg egyszer a címét ebben a böngészőben, és fogadja el a tanúsítványát, majd próbálja újra.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Megnyitás a Mister Download Manager alkalmazásban…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Megnyitás
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. A Speciális böngészőintegráció használata ki van kapcsolva a Beállítások → Általános menüpontban.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Videó
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Várjon egy pillanatot, majd próbálja újra.
diff --git a/i18n/hy.tsv b/i18n/hy.tsv
index 2ce2cab6..3de54497 100644
--- a/i18n/hy.tsv
+++ b/i18n/hy.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Վերբեռնման արագություն
#, machine
extension Another Mister Download Manager (a server) Մեկ այլ Mister Download Manager (սերվեր)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Աուդիո
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Բրաուզերի ընդլայնում
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. «Օգտագործել զննարկչի ընդլայնված ինտեգրումը» անջատված է Ընտրանքներ → Ընդհանուր բաժնում։
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Տեսանյութ
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Մի պահ սպասեք, ապա նորից փորձեք։
diff --git a/i18n/id.tsv b/i18n/id.tsv
index ea1243fb..6b3ab153 100644
--- a/i18n/id.tsv
+++ b/i18n/id.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Laju transfer
#, machine
column Upload speed Kecepatan unggah
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Daftar video: pilih di Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Ditambahkan ke antrean
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Mister Download Manager lain (server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Ekstensi browser
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Terhubung ke Mister Download Mana
#, machine
extension Connected to Mister Download Manager {version} Terhubung ke Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Gagal mencarinya
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Unduh
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Diserahkan ke browser: {name}
#, machine
extension Live Langsung
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Mencari kualitas…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Pencarian memakan waktu terlalu lama
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Media di halaman ini
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager t
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager tidak menerima salinan ekstensi ini
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager sedang sibuk dengan video lain
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager tidak terinstal atau tidak dimulai
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager tidak terinstal, atau integrasi browsernya tidak diatur
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager memerlukan yt-dlp untuk video ini
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager kemudian mengunduh melalui proxy yang sama dengan browser ini. Browser meminta Anda sekali untuk mengizinkannya; mematikan ini akan membatalkannya.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Jangan pernah mengambil unduhan dari
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Belum ada video atau suara yang ditemukan di halaman ini. Putar media, lalu buka ini lagi.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Tidak ada video untuk diunduh di sini
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Tidak terjangkau. Buka alamatnya sekali di browser ini dan terima sertifikatnya, lalu coba lagi.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Buka di Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Buka
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Integrasi browser lanjutan tidak aktif di Opsi → Umum.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Tunggu sebentar, lalu coba lagi.
diff --git a/i18n/is.tsv b/i18n/is.tsv
index 1f8f1505..54437899 100644
--- a/i18n/is.tsv
+++ b/i18n/is.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Sendihraði
#, machine
extension Another Mister Download Manager (a server) Annar Mister Download Manager (þjónn)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Hljóð
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Vafraviðbót
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. „Nota ítarlega samþættingu vafra“ er óvirkt í Valkostir → Almennt.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Myndband
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Bíddu smá stund, reyndu svo aftur.
diff --git a/i18n/it.tsv b/i18n/it.tsv
index 8ddee5b0..0cd491e9 100644
--- a/i18n/it.tsv
+++ b/i18n/it.tsv
@@ -4224,9 +4224,21 @@ column Transfer rate Velocità di trasferimento
#, machine
column Upload speed Velocità di upload
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Un elenco di video: sceglili in Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Aggiunto alla coda
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
extension Another Mister Download Manager (a server) Un altro Mister Download Manager (un server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
extension Browser extension Estensione del browser
#. text in the browser extension
@@ -4244,6 +4256,10 @@ extension Connected to Mister Download Manager Connesso a Mister Download Manage
#. {version} = a version number (keep the braces as they are)
extension Connected to Mister Download Manager {version} Connesso a Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Impossibile eseguire la ricerca
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
extension Download Scarica
#. text in the browser extension
@@ -4312,6 +4328,14 @@ extension Left to the browser: {name} Lasciato al browser: {name}
#. beside a stream in the toolbar button's popup: it is a live broadcast (no fixed length); short
extension Live In diretta
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Ricerca delle qualità…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long La ricerca ha richiesto troppo tempo
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
extension Media on this page Contenuti multimediali in questa pagina
#. text in the browser extension
@@ -4324,12 +4348,20 @@ extension Mister Download Manager didn't start in time Mister Download Manager n
#. status when the app refuses this copy of the extension (another copy is installed, or it came from another store); keep the name Mister Download Manager as it is
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager non accetta questa copia dell'estensione
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager è occupato con altri video
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
extension Mister Download Manager isn't installed or didn't start Mister Download Manager non è installato o non si è avviato
#. text in the browser extension
#. status when the browser can't find the app's connection; keep the name Mister Download Manager as it is
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager non è installato oppure la sua integrazione con i browser non è configurata
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager richiede yt-dlp per questo video
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager scaricherà così tramite lo stesso proxy di questo browser. Il browser ti chiederà l'autorizzazione una sola volta; disattivando l'opzione la revochi.
#. text in the browser extension
@@ -4350,9 +4382,17 @@ extension Never take downloads from {site} Non acquisire mai download da {site}
#. shown in the toolbar button's popup when the current web page hasn't loaded any video, sound or stream yet
extension No video or sound found on this page yet. Play it, then open this again. Nessun video o audio trovato ancora in questa pagina. Avvialo, poi riapri questo menu.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Nessun video da scaricare qui
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Non raggiungibile. Apri una volta il suo indirizzo in questo browser e accetta il suo certificato, poi riprova.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Apri in Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
extension Open it Aprilo
#. text in the browser extension
@@ -4436,6 +4476,10 @@ extension Update Mister Download Manager to use everything this extension offers
#. why a download stayed with the browser: the app's setting 'Use advanced browser integration' is off; keep the setting's name as the app shows it
extension Use advanced browser integration is off in Options → General. L'opzione "Usa l'integrazione avanzata con i browser" è disattivata in Opzioni → Generale.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
extension Wait a moment, then try again. Attendi un momento, poi riprova.
#. text in the browser extension
diff --git a/i18n/ja.tsv b/i18n/ja.tsv
index 8bd274a9..d794c0dd 100644
--- a/i18n/ja.tsv
+++ b/i18n/ja.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate 転送速度
#, machine
column Upload speed アップロード速度
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager 動画の一覧: Mister Download Manager で選択してください
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue キューに追加しました
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) 別の Mister Download Manager (サーバー)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio オーディオ
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension ブラウザー拡張機能
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Mister Download Manager に接続
#, machine
extension Connected to Mister Download Manager {version} Mister Download Manager {version} に接続済み
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up 検索できませんでした
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download ダウンロード
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} ブラウザーに残されました: {nam
#, machine
extension Live ライブ
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… 画質を検索しています…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long 検索に時間がかかりすぎました
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page このページのメディア
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager はこの拡張機能のコピーを受け入れません
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager は他の動画の処理中です
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager がインストールされていないか、起動していません
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager がインストールされていないか、ブラウザー統合が設定されていません
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video この動画には Mister Download Manager に yt-dlp が必要です
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager は、このブラウザーと同じプロキシ経由でダウンロードします。ブラウザーは一度だけ許可を求めます。これをオフにすると、その許可は取り消されます。
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} {site} からのダウンロードは
#, machine
extension No video or sound found on this page yet. Play it, then open this again. このページでは、まだ動画や音声が見つかりません。再生してから、もう一度開いてください。
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here ここにはダウンロードできる動画がありません
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. 到達できません。このブラウザーで一度アドレスを開き、証明書を承認してから、もう一度お試しください。
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Mister Download Manager で開く…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it 開く
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. オプション → 全般で「高度なブラウザー統合を使用する」がオフになっています。
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video ビデオ
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. しばらく待ってから、もう一度お試しください。
diff --git a/i18n/ka.tsv b/i18n/ka.tsv
index 2b64887f..ed12ee6c 100644
--- a/i18n/ka.tsv
+++ b/i18n/ka.tsv
@@ -5666,6 +5666,10 @@ column Upload speed ატვირთვის სიჩქარე
#, machine
extension Another Mister Download Manager (a server) სხვა Mister Download Manager (სერვერი)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio აუდიო
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension ბრაუზერის გაფართოება
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. „გაფართოებული ბრაუზერის ინტეგრაციის გამოყენება“ გამორთულია პარამეტრებში → ზოგადი.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video ვიდეო
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. დაელოდეთ ცოტა ხანს, შემდეგ სცადეთ ხელახლა.
diff --git a/i18n/kk.tsv b/i18n/kk.tsv
index 44dcac72..ade80336 100644
--- a/i18n/kk.tsv
+++ b/i18n/kk.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Жүעеп беру жылдамдығы
#, machine
extension Another Mister Download Manager (a server) Басқа Mister Download Manager (сервер)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Аудио
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Браузер кеңейтімі
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. «Параметрлер → Жалпы» бөлімінде «Кеңейтілген браузер интеграциясын пайдалану» өшірулі.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Бейне
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Бір сәт күтіңіз, содан кейін қайталап көріңіз.
diff --git a/i18n/km.tsv b/i18n/km.tsv
index 429c51d6..91bab48e 100644
--- a/i18n/km.tsv
+++ b/i18n/km.tsv
@@ -5666,6 +5666,10 @@ column Upload speed ល្បឿនបង្ហោះ
#, machine
extension Another Mister Download Manager (a server) Mister Download Manager មួយ​ទៀត (ម៉ាស៊ីន​មេ)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio សំឡេង
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension ផ្នែក​បន្ថែម​កម្មវិធី​រុករក
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. ការ​ប្រើ​ការ​រួម​បញ្ចូល​កម្មវិធី​រុករក​កម្រិត​ខ្ពស់​ត្រូវ​បាន​បិទ​នៅ​ក្នុង​ជម្រើស → ទូទៅ។
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video វីដេអូ
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. សូម​រង់ចាំ​បន្តិច រួច​ព្យាយាម​ម្ដង​ទៀត។
diff --git a/i18n/kn.tsv b/i18n/kn.tsv
index 48cbad78..db16e236 100644
--- a/i18n/kn.tsv
+++ b/i18n/kn.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate ವರ್ಗಾವಣೆ ದರ
#, machine
column Upload speed ಅಪ್‌ಲೋಡ್ ವೇಗ
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager ವೀಡಿಯೊಗಳ ಪಟ್ಟಿ: ಅವುಗಳನ್ನು Mister Download Manager ನಲ್ಲಿ ಆಯ್ಕೆಮಾಡಿ
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue ಕ್ಯೂಗೆ ಸೇರಿಸಲಾಗಿದೆ
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) ಇನ್ನೊಂದು Mister Download Manager (ಸರ್ವರ್)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio ಆಡಿಯೊ
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension ಬ್ರೌಸರ್ ವಿಸ್ತರಣೆ
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Mister Download Manager ಗೆ
#, machine
extension Connected to Mister Download Manager {version} Mister Download Manager {version} ಗೆ ಸಂಪರ್ಕಿಸಲಾಗಿದೆ
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up ಹುಡುಕಲು ಸಾಧ್ಯವಾಗಲಿಲ್ಲ
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download ಡೌನ್‌ಲೋಡ್ ಮಾಡಿ
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} ಬ್ರೌಸರ್‌ಗೆ ಬಿಡ
#, machine
extension Live ಲೈವ್
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… ಗುಣಮಟ್ಟಗಳನ್ನು ಹುಡುಕಲಾಗುತ್ತಿದೆ…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long ಹುಡುಕಲು ತುಂಬಾ ಸಮಯ ತೆಗೆದುಕೊಂಡಿತು
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page ಈ ಪುಟದಲ್ಲಿರುವ ಮಾಧ್ಯಮ
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager ವಿಸ್ತರಣೆಯ ಈ ನಕಲನ್ನು ಸ್ವೀಕರಿಸುವುದಿಲ್ಲ
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager ಇತರ ವೀಡಿಯೊಗಳಲ್ಲಿ ನಿರತವಾಗಿದೆ
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager ಅನ್ನು ಸ್ಥಾಪಿಸಲಾಗಿಲ್ಲ ಅಥವಾ ಪ್ರಾರಂಭವಾಗಲಿಲ್ಲ
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager ಅನ್ನು ಸ್ಥಾಪಿಸಲಾಗಿಲ್ಲ, ಅಥವಾ ಅದರ ಬ್ರೌಸರ್ ಏಕೀಕರಣವನ್ನು ಹೊಂದಿಸಲಾಗಿಲ್ಲ
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video ಈ ವೀಡಿಯೊಗೆ Mister Download Manager ಗೆ yt-dlp ಬೇಕು
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager ನಂತರ ಈ ಬ್ರೌಸರ್‌ನಂತೆಯೇ ಅದೇ ಪ್ರಾಕ್ಸಿ ಮೂಲಕ ಡೌನ್‌ಲೋಡ್ ಮಾಡುತ್ತದೆ. ಅದನ್ನು ಅನುಮತಿಸಲು ಬ್ರೌಸರ್ ಒಮ್ಮೆ ನಿಮ್ಮನ್ನು ಕೇಳುತ್ತದೆ; ಇದನ್ನು ಆಫ್ ಮಾಡುವುದರಿಂದ ಅದನ್ನು ಹಿಂಪಡೆಯುತ್ತದೆ.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} {site} ನಿಂದ ಡೌನ್‌
#, machine
extension No video or sound found on this page yet. Play it, then open this again. ಈ ಪುಟದಲ್ಲಿ ಯಾವುದೇ ವೀಡಿಯೊ ಅಥವಾ ಧ್ವನಿ ಇನ್ನೂ ಕಂಡುಬಂದಿಲ್ಲ. ಅದನ್ನು ಪ್ಲೇ ಮಾಡಿ, ನಂತರ ಇದನ್ನು ಮತ್ತೆ ತೆರೆಯಿರಿ.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here ಇಲ್ಲಿ ಡೌನ್‌ಲೋಡ್ ಮಾಡಲು ವೀಡಿಯೊ ಇಲ್ಲ
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. ತಲುಪಿಲ್ಲ. ಈ ಬ್ರೌಸರ್‌ನಲ್ಲಿ ಅದರ ವಿಳಾಸವನ್ನು ಒಮ್ಮೆ ತೆರೆಯಿರಿ ಮತ್ತು ಅದರ ಪ್ರಮಾಣಪತ್ರವನ್ನು ಸ್ವೀಕರಿಸಿ, ನಂತರ ಮತ್ತೆ ಪ್ರಯತ್ನಿಸಿ.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Mister Download Manager ನಲ್ಲಿ ತೆರೆಯಿರಿ…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it ಅದನ್ನು ತೆರೆಯಿರಿ
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. ಆಯ್ಕೆಗಳು → ಸಾಮಾನ್ಯದಲ್ಲಿ ಸುಧಾರಿತ ಬ್ರೌಸರ್ ಇಂಟಿಗ್ರೇಷನ್ ಬಳಸಿ ಆಫ್ ಆಗಿದೆ.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video ವೀಡಿಯೊ
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. ಒಂದು ಕ್ಷಣ ನಿರೀಕ್ಷಿಸಿ, ನಂತರ ಮತ್ತೆ ಪ್ರಯತ್ನಿಸಿ.
diff --git a/i18n/ko.tsv b/i18n/ko.tsv
index f0ebec79..c6ab1a65 100644
--- a/i18n/ko.tsv
+++ b/i18n/ko.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate 전송 속도
#, machine
column Upload speed 업로드 속도
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager 비디오 목록: Mister Download Manager에서 선택하세요
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue 대기열에 추가되었습니다
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) 다른 Mister Download Manager (서버)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio 오디오
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension 브라우저 확장
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Mister Download Manager에 연결
#, machine
extension Connected to Mister Download Manager {version} Mister Download Manager {version}에 연결됨
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up 찾지 못했습니다
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download 다운로드
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} 브라우저에 남겨짐: {name}
#, machine
extension Live 라이브
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… 화질을 찾는 중…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long 찾는 데 시간이 너무 오래 걸렸습니다
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page 이 페이지의 미디어
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager이(가) 이 확장 프로그램 복사본을 허용하지 않습니다.
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager가 다른 비디오를 처리하는 중입니다
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager이(가) 설치되지 않았거나 시작되지 않았습니다.
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager이(가) 설치되지 않았거나 브라우저 통합이 설정되지 않았습니다.
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video 이 비디오에는 Mister Download Manager에 yt-dlp가 필요합니다
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager이 이 브라우저와 동일한 프록시를 통해 다운로드합니다. 브라우저에서 한 번 허용할지 묻습니다. 이 기능을 끄면 해당 권한이 취소됩니다.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} {site}에서 다운로드하지 않
#, machine
extension No video or sound found on this page yet. Play it, then open this again. 이 페이지에서 아직 비디오나 오디오를 찾을 수 없습니다. 재생한 다음 다시 여세요.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here 여기에는 다운로드할 비디오가 없습니다
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. 연결할 수 없습니다. 이 브라우저에서 해당 주소를 한 번 열고 인증서를 수락한 다음 다시 시도하세요.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Mister Download Manager에서 열기…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it 열기
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. 옵션 → 일반에서 고급 브라우저 통합 사용이 꺼져 있습니다.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video 비디오
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. 잠시 기다린 다음 다시 시도하세요.
diff --git a/i18n/kok.tsv b/i18n/kok.tsv
index 52a35673..6951d97e 100644
--- a/i18n/kok.tsv
+++ b/i18n/kok.tsv
@@ -5666,6 +5666,10 @@ column Upload speed अपलोड वेग
#, machine
extension Another Mister Download Manager (a server) आनीक Mister Download Manager (एक सर्वर)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio ऑडिओ
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension ब्राउझर एक्सटेंशन
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. पर्याय → सामान्य हातूंत प्रगत ब्राउझर एकीकरण वापरप बंद आसा.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video व्हिडिओ
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. एक क्षण वाट पळयात, मागीर परतून प्रयत्न करात.
diff --git a/i18n/lb.tsv b/i18n/lb.tsv
index dd63a50e..5630ba3c 100644
--- a/i18n/lb.tsv
+++ b/i18n/lb.tsv
@@ -5666,6 +5666,10 @@ column Upload speed الوploadd-Geschwindegkeet
#, machine
extension Another Mister Download Manager (a server) En anere Mister Download Manager (e Server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Browser-Extensioun
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. „Erweidert Browser-Integratioun benotzen“ ass an den Optiounen → Allgemeng ausgeschalt.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Waart e Moment, da probéiert nach eng Kéier.
diff --git a/i18n/lo.tsv b/i18n/lo.tsv
index 9296fb0d..d5b6df8c 100644
--- a/i18n/lo.tsv
+++ b/i18n/lo.tsv
@@ -5666,6 +5666,10 @@ column Upload speed ຄວາມໄວອັບໂຫຼດ
#, machine
extension Another Mister Download Manager (a server) Mister Download Manager ອື່ນ (ເຊີບເວີ)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio ສຽງ
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension ສ່ວນຂະຫຍາຍຂອງບຣາວເຊີ
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. ການໃຊ້ການເຊື່ອມໂຍງບຣາວເຊີຂັ້ນສູງຖືກປິດຢູ່ໃນຕົວເລືອກ → ທົ່ວໄປ.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video ວິດີໂອ
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. ລໍຖ້າຈັກໜ້ອຍ, ຈາກນັ້ນລອງໃໝ່ອີກຄັ້ງ.
diff --git a/i18n/lt.tsv b/i18n/lt.tsv
index b728da91..65d62210 100644
--- a/i18n/lt.tsv
+++ b/i18n/lt.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Perdavimo sparta
#, machine
column Upload speed Siuntimo sparta
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Vaizdo įrašų sąrašas: pasirinkite juos programoje Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Pridėta į eilę
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Kitas „Mister Download Manager“ (serveris)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Garsas
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Naršyklės plėtinys
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Prijungta prie Mister Download Ma
#, machine
extension Connected to Mister Download Manager {version} Prijungta prie Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Nepavyko surasti
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Atsisiųsti
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Palikta naršyklei: {name}
#, machine
extension Live Tiesiogiai
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Ieškoma kokybių…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Paieška užtruko per ilgai
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Medija šiame puslapyje
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager n
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager nepriima šios plėtinio kopijos
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager užsiėmusi kitais vaizdo įrašais
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager neįdiegta arba nepasileido
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager neįdiegta arba jos naršyklės integracija nenustatyta
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager šiam vaizdo įrašui reikia yt-dlp
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Tada „Mister Download Manager“ atsisiunčia per tą patį tarpinį serverį, kurį naudoja ši naršyklė. Naršyklė vieną kartą paprašys jūsų tai leisti; išjungus šią parinktį, leidimas atšaukiamas.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Niekada nepaimti atsisiuntimų iš {s
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Šiame puslapyje dar nerasta vaizdo ar garso. Paleiskite jį, tada atidarykite šį langą iš naujo.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Čia nėra vaizdo įrašo, kurį būtų galima atsisiųsti
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Nepasiekta. Atidarykite jo adresą vieną kartą šioje naršyklėje ir priimkite jo sertifikatą, tada bandykite dar kartą.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Atidaryti programoje Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Atidaryti
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Parinktyse „Bendra“ išjungta „Naudoti išplėstinę naršyklės integraciją“.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Vaizdas
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Palaukite, tada bandykite dar kartą.
diff --git a/i18n/lv.tsv b/i18n/lv.tsv
index 334fd8d3..accc89d4 100644
--- a/i18n/lv.tsv
+++ b/i18n/lv.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Pārsūtīšanas ātrums
#, machine
column Upload speed Augšupielādes ātrums
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Video saraksts: izvēlieties tos programmā Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Pievienots rindai
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Cits Mister Download Manager (serveris)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Pārlūkprogrammas paplašinājums
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Savienots ar Mister Download Mana
#, machine
extension Connected to Mister Download Manager {version} Savienots ar Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Meklēšana neizdevās
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Lejupielādēt
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Atstāts pārlūkprogrammai: {name}
#, machine
extension Live Tiešraide
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Meklē kvalitātes…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Meklēšana ilga pārāk ilgi
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Multivide šajā lapā
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager n
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager nepieņem šo paplašinājuma kopiju
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager ir aizņemts ar citiem video
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager nav instalēts vai nav palaists
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager nav instalēts vai tā pārlūkprogrammas integrācija nav iestatīta
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Programmai Mister Download Manager šim video ir nepieciešams yt-dlp
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager pēc tam lejupielādē, izmantojot to pašu starpniekserveri, ko izmanto šī pārlūkprogramma. Pārlūkprogramma vienreiz lūgs jums to atļaut; izslēdzot šo opciju, atļauja tiks atsaukta.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Nekad nepārņemt lejupielādes no {s
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Šajā lapā vēl nav atrasts neviens video vai skaņa. Atskaņojiet to, pēc tam atveriet to vēlreiz.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Šeit nav lejupielādējama video
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Nav sasniegts. Vienreiz atveriet tā adresi šajā pārlūkprogrammā un pieņemiet tā sertifikātu, pēc tam mēģiniet vēlreiz.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Atvērt programmā Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Atvērt
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Opcijās → Vispārīgi ir izslēgta opcija Izmantot uzlabotu pārlūkprogrammas integrāciju.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Pagaidiet brīdi, tad mēģiniet vēlreiz.
diff --git a/i18n/mi.tsv b/i18n/mi.tsv
index d5d1ecd5..279b964b 100644
--- a/i18n/mi.tsv
+++ b/i18n/mi.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Tere tuku
#, machine
extension Another Mister Download Manager (a server) Tētahi atu Mister Download Manager (he tūmau)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Oro
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Toronga pūtirotiro
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Kua weto te Whakamahi i te whakauru pūtirotiro matatau i roto i Ngā Kōwhiringa → Whānui.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Ataata
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Tatari mō tētahi wā, kātahi ka whakamātauria anō.
diff --git a/i18n/mk.tsv b/i18n/mk.tsv
index 57a36600..c808a027 100644
--- a/i18n/mk.tsv
+++ b/i18n/mk.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Брзина на испраќање
#, machine
extension Another Mister Download Manager (a server) Друг Mister Download Manager (сервер)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Аудио
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Екстензија на прелистувач
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Користи напредна интеграција на прелистувачот е исклучено во Опции → Општо.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Видео
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Почекајте момент, па обидете се повторно.
diff --git a/i18n/ml.tsv b/i18n/ml.tsv
index a5e5812a..16facf61 100644
--- a/i18n/ml.tsv
+++ b/i18n/ml.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate കൈമാറ്റ നിരക്ക്
#, machine
column Upload speed അപ്‌ലോഡ് വേഗത
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager വീഡിയോകളുടെ ഒരു പട്ടിക: അവ Mister Download Manager-ൽ തിരഞ്ഞെടുക്കുക
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue ക്യൂവിലേക്ക് ചേർത്തു
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) മറ്റൊരു Mister Download Manager (ഒരു സെർവർ)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio ഓഡിയോ
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension ബ്രൗസർ എക്സ്റ്റൻഷൻ
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Mister Download Manager എന്
#, machine
extension Connected to Mister Download Manager {version} Mister Download Manager {version} എന്നതുമായി ബന്ധിപ്പിച്ചു
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up തിരയാൻ കഴിഞ്ഞില്ല
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download ഡൗൺലോഡ് ചെയ്യുക
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} ബ്രൗസറിനായി വി
#, machine
extension Live തത്സമയം
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… ക്വാളിറ്റികൾ തിരയുന്നു…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long തിരയാൻ വളരെയധികം സമയമെടുത്തു
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page ഈ പേജിലെ മീഡിയ
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager ഈ എക്സ്റ്റൻഷൻ കോപ്പി സ്വീകരിക്കുന്നില്ല
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager മറ്റ് വീഡിയോകളിൽ തിരക്കിലാണ്
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager ഇൻസ്റ്റാൾ ചെയ്തിട്ടില്ല അല്ലെങ്കിൽ ആരംഭിച്ചില്ല
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager ഇൻസ്റ്റാൾ ചെയ്തിട്ടില്ല, അല്ലെങ്കിൽ അതിന്റെ ബ്രൗസർ സംയോജനം സജ്ജീകരിച്ചിട്ടില്ല
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video ഈ വീഡിയോയ്ക്ക് Mister Download Manager-ന് yt-dlp ആവശ്യമാണ്
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager ഈ ബ്രൗസറിന്റെ അതേ പ്രോക്സി വഴി ഡൗൺലോഡ് ചെയ്യുന്നു. ഇത് അനുവദിക്കാൻ ബ്രൗസർ ഒരിക്കൽ ചോദിക്കും; ഇത് ഓഫാക്കുന്നത് ആ അനുമതി പിൻവലിക്കും.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} {site} ൽ നിന്നുള്
#, machine
extension No video or sound found on this page yet. Play it, then open this again. ഈ പേജിൽ ഇതുവരെ വീഡിയോയോ ശബ്ദമോ കണ്ടെത്തിയിട്ടില്ല. ഇത് പ്ലേ ചെയ്ത ശേഷം വീണ്ടും തുറക്കുക.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here ഇവിടെ ഡൗൺലോഡ് ചെയ്യാൻ വീഡിയോ ഒന്നുമില്ല
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. എത്തിച്ചേർന്നില്ല. ഈ ബ്രൗസറിൽ അതിൻ്റെ വിലാസം ഒരിക്കൽ തുറന്ന് അതിൻ്റെ സർട്ടിഫിക്കറ്റ് സ്വീകരിക്കുക, തുടർന്ന് വീണ്ടും ശ്രമിക്കുക.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Mister Download Manager-ൽ തുറക്കുക…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it തുറക്കുക
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. ഓപ്ഷനുകൾ → പൊതുവായത് എന്നതിൽ വിപുലമായ ബ്രൗസർ സംയോജനം ഉപയോഗിക്കുക എന്നത് ഓഫാണ്.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video വീഡിയോ
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. ഒരു നിമിഷം കാത്തിരിക്കുക, തുടർന്ന് വീണ്ടും ശ്രമിക്കുക.
diff --git a/i18n/mr.tsv b/i18n/mr.tsv
index 9bc896ff..c2e8f3d4 100644
--- a/i18n/mr.tsv
+++ b/i18n/mr.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate हस्तांतरण दर
#, machine
column Upload speed अपलोड वेग
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager व्हिडिओंची सूची: ते Mister Download Manager मध्ये निवडा
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue रांगेत जोडले
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) दुसरा Mister Download Manager (एक सर्व्हर)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio ऑडिओ
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension ब्राउझर एक्स्टेंशन
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Mister Download Manager शी
#, machine
extension Connected to Mister Download Manager {version} Mister Download Manager {version} शी कनेक्ट केले
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up शोधता आले नाही
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download डाउनलोड करा
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} ब्राउझरसाठी सो
#, machine
extension Live थेट
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… गुणवत्ता शोधत आहे…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long शोधण्यास खूप वेळ लागला
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page या पृष्ठावरील मीडिया
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager एक्स्टेंशनची ही प्रत स्वीकारत नाही
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager इतर व्हिडिओंमध्ये व्यस्त आहे
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager स्थापित केलेले नाही किंवा सुरू झाले नाही
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager स्थापित केलेले नाही, किंवा त्याचे ब्राउझर एकत्रीकरण सेट केलेले नाही
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video या व्हिडिओसाठी Mister Download Manager ला yt-dlp आवश्यक आहे
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager नंतर या ब्राउझरसारख्याच प्रॉक्सीद्वारे डाउनलोड करते. ब्राउझर तुम्हाला एकदा परवानगी देण्यास सांगेल; हे बंद केल्यास ती परवानगी रद्द होते.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} {site} वरील डाउनल
#, machine
extension No video or sound found on this page yet. Play it, then open this again. या पृष्ठावर अद्याप कोणताही व्हिडिओ किंवा आवाज सापडला नाही. तो प्ले करा, नंतर हे पुन्हा उघडा.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here येथे डाउनलोड करण्यासाठी व्हिडिओ नाही
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. पोहोचले नाही. या ब्राउझरमध्ये एकदा त्याचा पत्ता उघडा आणि त्याचे प्रमाणपत्र स्वीकारा, नंतर पुन्हा प्रयत्न करा.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Mister Download Manager मध्ये उघडा…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it ते उघडा
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. पर्याय → सामान्य मध्ये 'प्रगत ब्राउझर एकत्रीकरण वापरा' बंद आहे.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video व्हिडिओ
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. एक क्षण थांबा, नंतर पुन्हा प्रयत्न करा.
diff --git a/i18n/ms.tsv b/i18n/ms.tsv
index 8d884ac5..f0ae263f 100644
--- a/i18n/ms.tsv
+++ b/i18n/ms.tsv
@@ -5651,10 +5651,22 @@ column Transfer rate Kadar pemindahan
#, machine
column Upload speed Kelajuan muat naik
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Senarai video: pilih video dalam Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Ditambah pada giliran
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Mister Download Manager lain (pelayan)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Sambungan pelayar
@@ -5677,6 +5689,10 @@ extension Connected to Mister Download Manager Bersambung ke Mister Download Man
#, machine
extension Connected to Mister Download Manager {version} Bersambung ke Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Tidak dapat mencarinya
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Muat turun
@@ -5767,6 +5783,14 @@ extension Left to the browser: {name} Diserahkan kepada penyemak imbas: {name}
#, machine
extension Live Langsung
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Mencari kualiti…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Pencarian mengambil masa terlalu lama
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Media pada halaman ini
@@ -5783,6 +5807,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager t
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager tidak menerima salinan sambungan ini
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager sedang sibuk dengan video lain
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager tidak dipasang atau tidak bermula
@@ -5791,6 +5819,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager tidak dipasang, atau penyepaduan penyemak imbasnya tidak disediakan
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager memerlukan yt-dlp untuk video ini
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager kemudian memuat turun melalui proksi yang sama seperti pelayar ini. Pelayar meminta anda sekali untuk membenarkannya; mematikan ini akan menarik balik kebenaran itu.
@@ -5817,10 +5849,18 @@ extension Never take downloads from {site} Jangan sekali-kali mengambil muat tur
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Tiada video atau bunyi ditemui pada halaman ini lagi. Mainkannya, kemudian buka ini semula.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Tiada video untuk dimuat turun di sini
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Tidak dicapai. Buka alamatnya sekali dalam pelayar ini dan terima sijilnya, kemudian cuba lagi.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Buka dalam Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Buka
@@ -5929,6 +5969,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Guna penyepaduan penyemak imbas lanjutan dimatikan dalam Pilihan → Umum.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Tunggu sebentar, kemudian cuba lagi.
diff --git a/i18n/mt.tsv b/i18n/mt.tsv
index 4e4e3392..9590de1d 100644
--- a/i18n/mt.tsv
+++ b/i18n/mt.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Veloċità tat-tlugħ
#, machine
extension Another Mister Download Manager (a server) Mister Download Manager ieħor (server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Awdjo
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Estensjoni tal-brawżer
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. L-integrazzjoni avvanzata tal-brawżer hija mitfija f'Għażliet → Ġenerali.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Vidjo
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Stenna ftit, imbagħad erġa' pprova.
diff --git a/i18n/nb.tsv b/i18n/nb.tsv
index 9c2644f7..94d9d053 100644
--- a/i18n/nb.tsv
+++ b/i18n/nb.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Overføringshastighet
#, machine
column Upload speed Opplastingshastighet
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager En liste med videoer: velg dem i Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Lagt til i køen
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) En annen Mister Download Manager (en server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Lyd
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Nettleserutvidelse
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Tilkoblet Mister Download Manager
#, machine
extension Connected to Mister Download Manager {version} Tilkoblet Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Kunne ikke slå det opp
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Last ned
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Beholdt av nettleseren: {name}
#, machine
extension Live Direkte
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Finner kvalitetene…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Oppslaget tok for lang tid
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Medier på denne siden
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager s
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager godtar ikke denne kopien av utvidelsen
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager er opptatt med andre videoer
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager er ikke installert eller startet ikke
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager er ikke installert, eller nettleserintegrasjonen er ikke konfigurert
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager trenger yt-dlp for denne videoen
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager laster da ned via samme proxy som denne nettleseren. Nettleseren spør deg én gang om å tillate det; hvis du slår dette av, trekkes tillatelsen tilbake.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Aldri ta nedlastinger fra {site}
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Ingen video eller lyd funnet på denne siden ennå. Spill den av, og åpne dette igjen.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Ingen video å laste ned her
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Ikke nådd. Åpne adressen én gang i denne nettleseren og godta sertifikatet, og prøv deretter igjen.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Åpne i Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Åpne den
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Bruk avansert nettleserintegrasjon er deaktivert i Alternativer → Generelt.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Vent et øyeblikk, og prøv deretter igjen.
diff --git a/i18n/ne.tsv b/i18n/ne.tsv
index 745e0ad6..6df22bc1 100644
--- a/i18n/ne.tsv
+++ b/i18n/ne.tsv
@@ -5666,6 +5666,10 @@ column Upload speed अपलोड गति
#, machine
extension Another Mister Download Manager (a server) अर्को Mister Download Manager (सर्भर)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio अडियो
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension ब्राउजर एक्सटेन्सन
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. विकल्पहरू → सामान्यमा उन्नत ब्राउजर एकीकरण प्रयोग गर्नुहोस् बन्द छ।
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video भिडियो
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. एक क्षण पर्खनुहोस्, त्यसपछि फेरि प्रयास गर्नुहोस्।
diff --git a/i18n/nl.tsv b/i18n/nl.tsv
index 9d76ff02..14746dba 100644
--- a/i18n/nl.tsv
+++ b/i18n/nl.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Overdrachtssnelheid
#, machine
column Upload speed Uploadsnelheid
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Een lijst met video's: kies ze in Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Toegevoegd aan de wachtrij
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Een andere Mister Download Manager (een server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Browserextensie
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Verbonden met Mister Download Man
#, machine
extension Connected to Mister Download Manager {version} Verbonden met Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Kon het niet opzoeken
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Downloaden
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Aan de browser overgelaten: {name}
#, machine
extension Live Live
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Kwaliteiten opzoeken…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Opzoeken duurde te lang
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Media op deze pagina
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager i
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager accepteert deze kopie van de extensie niet
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager is bezig met andere video's
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager is niet geïnstalleerd of is niet gestart
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager is niet geïnstalleerd, of de browserintegratie is niet ingesteld
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager heeft yt-dlp nodig voor deze video
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager downloadt dan via dezelfde proxy als deze browser. De browser vraagt u eenmalig om dit toe te staan; als u dit uitschakelt, wordt die toestemming ingetrokken.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Nooit downloads van {site} overnemen
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Nog geen video of geluid gevonden op deze pagina. Speel het af en open dit dan opnieuw.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Geen video om hier te downloaden
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Niet bereikt. Open het adres eenmaal in deze browser en accepteer het certificaat, probeer het daarna opnieuw.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Openen in Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Openen
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Geavanceerde browserintegratie gebruiken is uitgeschakeld in Opties → Algemeen.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Wacht even en probeer het daarna opnieuw.
diff --git a/i18n/nn.tsv b/i18n/nn.tsv
index 34fbb8f2..fb99a78b 100644
--- a/i18n/nn.tsv
+++ b/i18n/nn.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Opplastingshastighet
#, machine
extension Another Mister Download Manager (a server) Ein annan Mister Download Manager (ein server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Lyd
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Nettlesarutviding
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Bruk avansert nettlesarintegrering er slått av i Innstillingar → Generelt.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Vent eit augeblikk, og prøv så igjen.
diff --git a/i18n/or.tsv b/i18n/or.tsv
index 2521befd..5caca558 100644
--- a/i18n/or.tsv
+++ b/i18n/or.tsv
@@ -5666,6 +5666,10 @@ column Upload speed ଅପଲୋଡ୍ ଗତି
#, machine
extension Another Mister Download Manager (a server) ଅନ୍ୟ ଏକ Mister Download Manager (ଏକ ସର୍ଭର)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio ଅଡିଓ
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension ବ୍ରାଉଜର୍ ଏକ୍ସଟେନ୍ସନ୍
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. ବିକଳ୍ପ → ସାଧାରଣରେ ଉନ୍ନତ ବ୍ରାଉଜର ଏକୀକରଣ ବ୍ୟବହାର କରନ୍ତୁ ବନ୍ଦ ଅଛି।
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video ଭିଡିଓ
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. କିଛି ସମୟ ଅପେକ୍ଷା କରନ୍ତୁ, ତା’ପରେ ପୁଣି ଚେଷ୍ଟା କରନ୍ତୁ।
diff --git a/i18n/pa.tsv b/i18n/pa.tsv
index 8f135e3f..645ae646 100644
--- a/i18n/pa.tsv
+++ b/i18n/pa.tsv
@@ -5666,6 +5666,10 @@ column Upload speed ਅੱਪਲੋਡ ਸਪੀਡ
#, machine
extension Another Mister Download Manager (a server) ਇੱਕ ਹੋਰ Mister Download Manager (ਇੱਕ ਸਰਵਰ)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio ਆਡੀਓ
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension ਬ੍ਰਾਊਜ਼ਰ ਐਕਸਟੈਂਸ਼ਨ
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. ਚੋਣਾਂ → ਆਮ ਵਿੱਚ ਐਡਵਾਂਸਡ ਬ੍ਰਾਊਜ਼ਰ ਏਕੀਕਰਨ ਦੀ ਵਰਤੋਂ ਬੰਦ ਹੈ।
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video ਵੀਡੀਓ
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. ਇੱਕ ਪਲ ਉਡੀਕ ਕਰੋ, ਫਿਰ ਦੁਬਾਰਾ ਕੋਸ਼ਿਸ਼ ਕਰੋ।
diff --git a/i18n/pl.tsv b/i18n/pl.tsv
index fd29f72b..d403e4b6 100644
--- a/i18n/pl.tsv
+++ b/i18n/pl.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Szybkość transferu
#, machine
column Upload speed Prędkość wysyłania
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Lista wideo: wybierz je w Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Dodano do kolejki
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Inny Mister Download Manager (serwer)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Dźwięk
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Rozszerzenie przeglądarki
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Połączono z Mister Download Man
#, machine
extension Connected to Mister Download Manager {version} Połączono z Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Nie udało się wyszukać
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Pobierz
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Pozostawiono przeglądarce: {name}
#, machine
extension Live Na żywo
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Wyszukiwanie jakości…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Wyszukiwanie trwało zbyt długo
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Multimedia na tej stronie
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager n
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager nie akceptuje tej kopii rozszerzenia
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager jest zajęty innymi wideo
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager nie jest zainstalowany lub nie uruchomił się
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager nie jest zainstalowany lub jego integracja z przeglądarką nie jest skonfigurowana
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager potrzebuje yt-dlp dla tego wideo
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Wtedy Mister Download Manager pobiera pliki przez ten sam serwer proxy, co przeglądarka. Przeglądarka raz poprosi o zezwolenie; wyłączenie tej opcji cofa to zezwolenie.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Nigdy nie pobieraj plików z {site}
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Nie znaleziono jeszcze żadnego wideo ani dźwięku na tej stronie. Odtwórz je, a następnie otwórz to ponownie.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Brak wideo do pobrania w tym miejscu
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Nie osiągnięto. Otwórz jego adres raz w tej przeglądarce i zaakceptuj certyfikat, a następnie spróbuj ponownie.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Otwórz w Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Otwórz
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Opcja „Użyj zaawansowanej integracji z przeglądarką” jest wyłączona w Opcjach → Ogólne.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Wideo
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Poczekaj chwilę, a następnie spróbuj ponownie.
diff --git a/i18n/pt-br.tsv b/i18n/pt-br.tsv
index 353e32bc..d8074730 100644
--- a/i18n/pt-br.tsv
+++ b/i18n/pt-br.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Taxa de transferência
#, machine
column Upload speed Velocidade de envio
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Uma lista de vídeos: escolha-os no Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Adicionado à fila
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Outro Mister Download Manager (um servidor)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Áudio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Extensão do navegador
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Conectado a Mister Download Manag
#, machine
extension Connected to Mister Download Manager {version} Conectado a Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Não foi possível buscar
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Baixar
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Deixado para o navegador: {name}
#, machine
extension Live Ao vivo
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Buscando as qualidades…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long A busca demorou demais
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Mídia nesta página
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager n
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager não aceita esta cópia da extensão
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos O Mister Download Manager está ocupado com outros vídeos
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager não está instalado ou não iniciou
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager não está instalado ou sua integração com o navegador não está configurada
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video O Mister Download Manager precisa do yt-dlp para este vídeo
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. O Mister Download Manager baixa usando o mesmo proxy deste navegador. O navegador pedirá uma vez para permitir; desativar isso reverte a permissão.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Nunca baixar de {site}
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Nenhum vídeo ou som encontrado nesta página ainda. Reproduza-o e abra isto novamente.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Nenhum vídeo para baixar aqui
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Não alcançado. Abra o endereço uma vez neste navegador e aceite o certificado, depois tente novamente.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Abrir no Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Abrir
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Usar integração avançada do navegador está desativado em Opções → Geral.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Vídeo
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Aguarde um momento e tente novamente.
diff --git a/i18n/pt.tsv b/i18n/pt.tsv
index c475af26..39f35efb 100644
--- a/i18n/pt.tsv
+++ b/i18n/pt.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Taxa de transferência
#, machine
column Upload speed Velocidade de envio
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Uma lista de vídeos: escolha-os no Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Adicionado à fila
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Outro Mister Download Manager (um servidor)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Áudio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Extensão do navegador
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Ligado a Mister Download Manager
#, machine
extension Connected to Mister Download Manager {version} Ligado a Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Não foi possível pesquisar
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Transferir
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Deixado para o navegador: {name}
#, machine
extension Live Em direto
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… A procurar as qualidades…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long A pesquisa demorou demasiado
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Multimédia nesta página
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager n
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager não aceita esta cópia da extensão
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos O Mister Download Manager está ocupado com outros vídeos
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager não está instalado ou não iniciou
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager não está instalado ou a sua integração com o navegador não está configurada
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video O Mister Download Manager precisa do yt-dlp para este vídeo
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. O Mister Download Manager transfere através do mesmo proxy que este browser. O browser pede-lhe uma vez para permitir; desativar isto anula essa permissão.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Nunca descarregar de {site}
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Ainda não foi encontrado nenhum vídeo ou som nesta página. Reproduza-o e, em seguida, abra isto novamente.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Não há nenhum vídeo para transferir aqui
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Não alcançado. Abra o endereço uma vez neste navegador e aceite o certificado, depois tente novamente.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Abrir no Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Abrir
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. A opção "Utilizar integração avançada do navegador" está desativada em Opções → Geral.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Vídeo
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Aguarde um momento e tente novamente.
diff --git a/i18n/quz.tsv b/i18n/quz.tsv
index 400795d5..e48be720 100644
--- a/i18n/quz.tsv
+++ b/i18n/quz.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Kachasqa utqay
#, machine
extension Another Mister Download Manager (a server) Huk Mister Download Manager (huk sirwiq)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Wampunapaq k'askaq
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Wamp'unapaq hatun t'inkiyta llamk'achiyqa Akllanakuna → Sapsi nisqapi wañuchisqa kachkan.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Huk ratuta suyay, chaymanta kutiyta yalliy.
diff --git a/i18n/ro.tsv b/i18n/ro.tsv
index b1521817..b99ba49c 100644
--- a/i18n/ro.tsv
+++ b/i18n/ro.tsv
@@ -5661,10 +5661,22 @@ column Transfer rate Rată de transfer
#, machine
column Upload speed Viteză de trimitere
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager O listă de videoclipuri: alegeți-le în Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Adăugat la coadă
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Alt Mister Download Manager (un server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Extensie de browser
@@ -5687,6 +5699,10 @@ extension Connected to Mister Download Manager Conectat la Mister Download Manag
#, machine
extension Connected to Mister Download Manager {version} Conectat la Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Căutarea nu a reușit
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Descărcați
@@ -5777,6 +5793,14 @@ extension Left to the browser: {name} Lăsat browserului: {name}
#, machine
extension Live În direct
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Se caută calitățile…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Căutarea a durat prea mult
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Media pe această pagină
@@ -5793,6 +5817,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager n
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager nu acceptă această copie a extensiei
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager este ocupat cu alte videoclipuri
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager nu este instalat sau nu a pornit
@@ -5801,6 +5829,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager nu este instalat sau integrarea browserului nu este configurată
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager are nevoie de yt-dlp pentru acest videoclip
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager descarcă apoi prin același proxy ca și acest browser. Browserul vă va cere o singură dată să permiteți acest lucru; dezactivarea acestei opțiuni anulează permisiunea.
@@ -5827,10 +5859,18 @@ extension Never take downloads from {site} Nu preluați niciodată descărcări
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Nu s-a găsit încă niciun videoclip sau sunet pe această pagină. Redați-l, apoi deschideți din nou.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Nu există niciun videoclip de descărcat aici
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Nu s-a ajuns la destinație. Deschideți adresa o dată în acest browser și acceptați certificatul, apoi încercați din nou.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Deschideți în Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Deschideți-l
@@ -5939,6 +5979,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Opțiunea „Utilizare integrare avansată browser” este dezactivată în Opțiuni → General.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Așteptați un moment, apoi încercați din nou.
diff --git a/i18n/ru.tsv b/i18n/ru.tsv
index 50d2796b..d8cf88b5 100644
--- a/i18n/ru.tsv
+++ b/i18n/ru.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Скорость передачи
#, machine
column Upload speed Скорость отдачи
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Список видео: выберите их в Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Добавлено в очередь
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Другой Mister Download Manager (сервер)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Аудио
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Расширение браузера
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Подключено к Mister Do
#, machine
extension Connected to Mister Download Manager {version} Подключено к Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Не удалось выполнить поиск
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Скачать
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Оставлено браузеру: {name
#, machine
extension Live Прямой эфир
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Поиск доступных качеств…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Поиск занял слишком много времени
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Медиа на этой странице
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager не принимает эту копию расширения
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager занят другими видео
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager не установлен или не запустился
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager не установлен или его интеграция с браузером не настроена
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Для этого видео Mister Download Manager нужен yt-dlp
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager загружает файлы через тот же прокси-сервер, что и этот браузер. Браузер один раз запросит у вас разрешение; отключение этой функции отменяет это разрешение.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Никогда не загружат
#, machine
extension No video or sound found on this page yet. Play it, then open this again. На этой странице пока не найдено видео или аудио. Воспроизведите его, затем откройте это снова.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Здесь нет видео для скачивания
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Недоступно. Откройте его адрес один раз в этом браузере и примите его сертификат, затем повторите попытку.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Открыть в Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Открыть
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Параметр «Использовать расширенную интеграцию с браузером» отключен в меню «Параметры» → «Общие».
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Видео
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Подождите немного, затем повторите попытку.
diff --git a/i18n/sk.tsv b/i18n/sk.tsv
index 87bd963d..d8cf71d1 100644
--- a/i18n/sk.tsv
+++ b/i18n/sk.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Prenosová rýchlosť
#, machine
column Upload speed Rýchlost odosielania
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Zoznam videí: vyberte ich v Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Pridané do radu
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Iný Mister Download Manager (server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Zvuk
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Rozšírenie prehliadača
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Pripojené k Mister Download Mana
#, machine
extension Connected to Mister Download Manager {version} Pripojené k Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Vyhľadanie zlyhalo
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Stiahnuť
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Ponechané prehliadaču: {name}
#, machine
extension Live Naživo
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Vyhľadávanie kvalít…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Vyhľadávanie trvalo príliš dlho
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Médiá na tejto stránke
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager s
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager neprijíma túto kópiu rozšírenia
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager je zaneprázdnený inými videami
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager nie je nainštalovaný alebo sa nespustil
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager nie je nainštalovaný alebo jeho integrácia prehliadača nie je nastavená
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager potrebuje pre toto video yt-dlp
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Aplikácia Mister Download Manager potom sťahuje cez rovnaký server proxy ako tento prehliadač. Prehliadač vás raz požiada o povolenie; vypnutím tejto možnosti sa povolenie odoberie.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Nikdy nepreberať sťahovania z webu
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Na tejto stránke sa zatiaľ nenašlo žiadne video ani zvuk. Prehrajte ho a potom toto znova otvorte.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Tu nie je žiadne video na stiahnutie
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Nedostupné. Otvorte jeho adresu raz v tomto prehliadači a prijmite jeho certifikát, potom skúste znova.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Otvoriť v Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Otvoriť
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Použiť rozšírenú integráciu prehliadača je vypnuté v Možnostiach → Všeobecné.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Počkajte chvíľu a potom skúste znova.
diff --git a/i18n/sl.tsv b/i18n/sl.tsv
index 274471e7..1a1a9f53 100644
--- a/i18n/sl.tsv
+++ b/i18n/sl.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Hitrost prenosa
#, machine
column Upload speed Hitrost pošiljanja
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Seznam videoposnetkov: izberite jih v programu Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Dodano v čakalno vrsto
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Drugi Mister Download Manager (strežnik)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Zvok
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Razširitev brskalnika
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Povezano z Mister Download Manage
#, machine
extension Connected to Mister Download Manager {version} Povezano z Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Iskanje ni uspelo
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Prenesi
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Prepuščeno brskalniku: {name}
#, machine
extension Live V živo
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Iskanje kakovosti…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Iskanje je trajalo predolgo
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Predstavnost na tej strani
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager s
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager ne sprejema te kopije razširitve
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager je zaseden z drugimi videoposnetki
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager ni nameščen ali se ni zagnal
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager ni nameščen ali njegova integracija brskalnika ni nastavljena
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager potrebuje yt-dlp za ta videoposnetek
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager nato prenaša prek istega posrednika kot ta brskalnik. Brskalnik vas enkrat vpraša, ali to dovolite; če to izklopite, se dovoljenje prekliče.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Nikoli ne prevzemi prenosov s spletne
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Na tej strani še ni videoposnetkov ali zvoka. Predvajajte jih, nato pa to znova odprite.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Tu ni videa za prenos
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Ni dosegljivo. Enkrat odprite njegov naslov v tem brskalniku in sprejmite njegovo potrdilo, nato poskusite znova.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Odpri v programu Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Odpri
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Uporabi napredno integracijo brskalnika je izklopljeno v Možnosti → Splošno.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Počakajte trenutek, nato poskusite znova.
diff --git a/i18n/sq.tsv b/i18n/sq.tsv
index 638bd4f4..35e210d2 100644
--- a/i18n/sq.tsv
+++ b/i18n/sq.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Shpejtësia e ngarkimit
#, machine
extension Another Mister Download Manager (a server) Një Mister Download Manager tjetër (një server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Shtesa e shfletuesit
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Përdor integrimin e avancuar të shfletuesit është çaktivizuar te Opsionet → Të përgjithshme.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Prisni një moment, pastaj provoni sërish.
diff --git a/i18n/sr-latn.tsv b/i18n/sr-latn.tsv
index d2035f1f..6b235cd1 100644
--- a/i18n/sr-latn.tsv
+++ b/i18n/sr-latn.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Brzina slanja
#, machine
extension Another Mister Download Manager (a server) Drugi Mister Download Manager (server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Proširenje pregledača
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. „Koristi naprednu integraciju pregledača“ je isključeno u Opcijama → Opšte.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Sačekajte trenutak, pa pokušajte ponovo.
diff --git a/i18n/sr.tsv b/i18n/sr.tsv
index 3cb84a8e..40a71039 100644
--- a/i18n/sr.tsv
+++ b/i18n/sr.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Брзина преноса
#, machine
column Upload speed Брзина отпремања
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Листа видео снимака: изаберите их у Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Додато у ред
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Други Mister Download Manager (сервер)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Аудио
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Проширење прегледача
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Повезано са Mister Down
#, machine
extension Connected to Mister Download Manager {version} Повезано са Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Тражење није успело
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Преузми
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Остављено прегледачу: {
#, machine
extension Live Уживо
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Тражење квалитета…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Тражење је трајало предуго
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Медији на овој страници
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager не прихвата ову копију проширења
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager је заузет другим видео снимцима
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager није инсталиран или није покренут
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager није инсталиран, или његова интеграција прегледача није подешена
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager треба yt-dlp за овај видео снимак
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager затим преузима датотеке преко истог проксија као и овај прегледач. Прегледач ће вас једном питати да ли то дозвољавате; искључивањем ове опције повлачите дозволу.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Никада не преузимај
#, machine
extension No video or sound found on this page yet. Play it, then open this again. На овој страници још увек није пронађен видео или звук. Пустите га, па поново отворите ово.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Овде нема видео снимка за преузимање
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Није достигнуто. Отворите његову адресу једном у овом прегледачу и прихватите његов сертификат, па покушајте поново.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Отвори у Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Отвори
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Користи напредну интеграцију прегледача је искључено у Опцијама → Опште.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Видео
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Сачекајте тренутак, па покушајте поново.
diff --git a/i18n/sv.tsv b/i18n/sv.tsv
index a4df4864..48a5e972 100644
--- a/i18n/sv.tsv
+++ b/i18n/sv.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Överföringshastighet
#, machine
column Upload speed Uppladdningshastighet
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager En lista med videor: välj dem i Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Tillagd i kön
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) En annan Mister Download Manager (en server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Ljud
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Webbläsartillägg
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Ansluten till Mister Download Man
#, machine
extension Connected to Mister Download Manager {version} Ansluten till Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Det gick inte att söka
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Ladda ned
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Lämna till webbläsaren: {name}
#, machine
extension Live Live
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Söker efter kvaliteter…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Sökningen tog för lång tid
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Media på den här sidan
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager s
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager accepterar inte den här kopian av tillägget
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager är upptaget med andra videor
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager är inte installerad eller startade inte
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager är inte installerad, eller dess webbläsarintegrering är inte inställd
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager behöver yt-dlp för den här videon
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager laddar sedan ned via samma proxy som den här webbläsaren. Webbläsaren frågar dig en gång om du vill tillåta det. Om du inaktiverar detta tas det tillbaka.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Ta aldrig nedladdningar från {site}
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Ingen video eller ljud hittades på den här sidan än. Spela upp det och öppna sedan detta igen.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Ingen video att hämta här
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Nåddes inte. Öppna dess adress en gång i den här webbläsaren och acceptera dess certifikat, försök sedan igen.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Öppna i Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Öppna den
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Använd avancerad webbläsarintegrering är avstängd i Alternativ → Allmänt.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Vänta ett ögonblick och försök sedan igen.
diff --git a/i18n/ta.tsv b/i18n/ta.tsv
index 79f51bff..caa86664 100644
--- a/i18n/ta.tsv
+++ b/i18n/ta.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate பரிமாற்ற விகிதம்
#, machine
column Upload speed ஏேற்றுதல் வேகம்
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager வீடியோக்களின் பட்டியல்: அவற்றை Mister Download Manager இல் தேர்ந்தெடுக்கவும்
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue வரிசையில் சேர்க்கப்பட்டது
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) மற்றொரு Mister Download Manager (ஒரு சர்வர்)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio ஆடியோ
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension உலாவி நீட்டிப்பு
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Mister Download Manager உடன
#, machine
extension Connected to Mister Download Manager {version} Mister Download Manager {version} உடன் இணைக்கப்பட்டுள்ளது
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up தேட முடியவில்லை
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download பதிவிறக்கவும்
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} உலாவியில் விடப
#, machine
extension Live நேரலை
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… தரங்களைத் தேடுகிறது…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long தேட மிக அதிக நேரம் ஆனது
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page இந்தப் பக்கத்தில் உள்ள ஊடகங்கள்
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager இந்த நீட்டிப்பின் நகலை ஏற்கவில்லை
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager பிற வீடியோக்களில் பிஸியாக உள்ளது
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager நிறுவப்படவில்லை அல்லது தொடங்கவில்லை
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager நிறுவப்படவில்லை, அல்லது அதன் உலாவி ஒருங்கிணைப்பு அமைக்கப்படவில்லை
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video இந்த வீடியோவுக்கு Mister Download Manager க்கு yt-dlp தேவை
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager இந்த உலாவியின் அதே ப்ராக்ஸி வழியாகப் பதிவிறக்கும். அதை அனுமதிக்க உலாவி ஒருமுறை கேட்கும்; இதை அணைத்தால் அந்த அனுமதி திரும்பப் பெறப்படும்.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} {site} இலிருந்து
#, machine
extension No video or sound found on this page yet. Play it, then open this again. இந்தப் பக்கத்தில் இன்னும் வீடியோ அல்லது ஒலி எதுவும் கிடைக்கவில்லை. அதை இயக்கிவிட்டு, இதை மீண்டும் திறக்கவும்.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here இங்கே பதிவிறக்க வீடியோ எதுவும் இல்லை
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. அடையப்படவில்லை. இந்த உலாவியில் அதன் முகவரியை ஒருமுறை திறந்து அதன் சான்றிதழை ஏற்றுக்கொண்டு, மீண்டும் முயற்சிக்கவும்.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Mister Download Manager இல் திறக்கவும்…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it திறக்கவும்
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. மேம்பட்ட உலாவி ஒருங்கிணைப்பைப் பயன்படுத்து விருப்பத்தேர்வுகள் → பொது என்பதில் முடக்கப்பட்டுள்ளது.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video வீடியோ
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. ஒரு கணம் காத்திருந்து, மீண்டும் முயற்சிக்கவும்.
diff --git a/i18n/te.tsv b/i18n/te.tsv
index 9718fb95..194d395b 100644
--- a/i18n/te.tsv
+++ b/i18n/te.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate బదిలీ రేటు
#, machine
column Upload speed అప్‌లోడ్ వేగం
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager వీడియోల జాబితా: వాటిని Mister Download Managerలో ఎంచుకోండి
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue క్యూకి జోడించబడింది
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) మరొక Mister Download Manager (ఒక సర్వర్)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio ఆడియో
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension బ్రౌజర్ పొడిగింపు
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Mister Download Managerకి క
#, machine
extension Connected to Mister Download Manager {version} Mister Download Manager {version}కి కనెక్ట్ చేయబడింది
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up వెతకడం సాధ్యం కాలేదు
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download డౌన్‌లోడ్ చేయండి
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} బ్రౌజర్‌కు వది
#, machine
extension Live ప్రత్యక్ష ప్రసారం
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… నాణ్యతలను వెతుకుతోంది…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long వెతకడానికి చాలా సమయం పట్టింది
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page ఈ పేజీలోని మీడియా
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager పొడిగింపు యొక్క ఈ కాపీని అంగీకరించదు
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager ఇతర వీడియోలతో బిజీగా ఉంది
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager ఇన్‌స్టాల్ చేయబడలేదు లేదా ప్రారంభం కాలేదు
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager ఇన్‌స్టాల్ చేయబడలేదు లేదా దాని బ్రౌజర్ అనుసంధానం సెటప్ చేయబడలేదు
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video ఈ వీడియో కోసం Mister Download Managerకి yt-dlp అవసరం
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager ఈ బ్రౌజర్ వలె అదే ప్రాక్సీ ద్వారా డౌన్‌లోడ్ చేస్తుంది. బ్రౌజర్ దీన్ని అనుమతించమని మిమ్మల్ని ఒకసారి అడుగుతుంది; దీన్ని ఆఫ్ చేయడం ద్వారా అది తిరిగి తీసుకోబడుతుంది.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} {site} నుండి డౌన్
#, machine
extension No video or sound found on this page yet. Play it, then open this again. ఈ పేజీలో ఇంకా వీడియో లేదా ఆడియో కనుగొనబడలేదు. ప్లే చేసి, ఆపై దీన్ని మళ్ళీ తెరవండి.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here ఇక్కడ డౌన్‌లోడ్ చేయడానికి వీడియో లేదు
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. చేరలేదు. ఈ బ్రౌజర్‌లో దాని చిరునామాను ఒకసారి తెరిచి, దాని సర్టిఫికేట్‌ను ఆమోదించి, ఆపై మళ్లీ ప్రయత్నించండి.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Mister Download Managerలో తెరువు…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it దీన్ని తెరవండి
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. ఎంపికలు → సాధారణలో అధునాతన బ్రౌజర్ ఇంటిగ్రేషన్‌ను ఉపయోగించు అనేది ఆఫ్ చేయబడింది.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video వీడియో
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. ఒక క్షణం వేచి ఉండి, ఆపై మళ్లీ ప్రయత్నించండి.
diff --git a/i18n/th.tsv b/i18n/th.tsv
index 6632592d..1426b4ff 100644
--- a/i18n/th.tsv
+++ b/i18n/th.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate อัตราการถ่ายโอน
#, machine
column Upload speed ความเร็วอัปโหลด
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager รายการวิดีโอ: เลือกใน Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue เพิ่มลงในคิวแล้ว
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Mister Download Manager อื่น (เซิร์ฟเวอร์)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio เสียง
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension ส่วนขยายเบราว์เซอร์
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager เชื่อมต่อกั
#, machine
extension Connected to Mister Download Manager {version} เชื่อมต่อกับ Mister Download Manager {version} แล้ว
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up ค้นหาไม่สำเร็จ
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download ดาวน์โหลด
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} เหลือไว้ให้เบร
#, machine
extension Live สด
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… กำลังค้นหาคุณภาพ…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long การค้นหาใช้เวลานานเกินไป
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page สื่อในหน้านี้
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager ไม่ยอมรับส่วนขยายนี้
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager กำลังยุ่งกับวิดีโออื่น
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager ไม่ได้ติดตั้งหรือไม่ได้เริ่มทำงาน
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager ไม่ได้ติดตั้ง หรือไม่ได้ตั้งค่าการรวมเบราว์เซอร์
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager ต้องใช้ yt-dlp สำหรับวิดีโอนี้
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager จะดาวน์โหลดผ่านพร็อกซีเดียวกับเบราว์เซอร์นี้ เบราว์เซอร์จะขออนุญาตคุณหนึ่งครั้ง การปิดตัวเลือกนี้จะยกเลิกการอนุญาตนั้น
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} ห้ามดาวน์โหล
#, machine
extension No video or sound found on this page yet. Play it, then open this again. ยังไม่พบวิดีโอหรือเสียงในหน้านี้ โปรดเล่นแล้วเปิดอีกครั้ง
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here ไม่มีวิดีโอให้ดาวน์โหลดที่นี่
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. ไม่สามารถเข้าถึงได้ เปิดที่อยู่ของเครื่องในเบราว์เซอร์นี้หนึ่งครั้งและยอมรับใบรับรอง จากนั้นลองอีกครั้ง
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… เปิดใน Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it เปิด
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. การใช้การผสานรวมเบราว์เซอร์ขั้นสูงถูกปิดใน ตัวเลือก → ทั่วไป
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video วิดีโอ
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. รอสักครู่แล้วลองอีกครั้ง
diff --git a/i18n/tr.tsv b/i18n/tr.tsv
index 340f2e42..e343dd69 100644
--- a/i18n/tr.tsv
+++ b/i18n/tr.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Aktarım hızı
#, machine
column Upload speed Gönderme hızı
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Bir video listesi: videoları Mister Download Manager uygulamasında seçin
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Sıraya eklendi
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Başka bir Mister Download Manager (bir sunucu)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Ses
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Tarayıcı uzantısı
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Mister Download Manager uygulamas
#, machine
extension Connected to Mister Download Manager {version} Mister Download Manager {version} uygulamasına bağlandı
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Aranamadı
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download İndir
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Tarayıcıya bırakıldı: {name}
#, machine
extension Live Canlı
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Kaliteler aranıyor…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Arama çok uzun sürdü
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Bu sayfadaki medya
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager z
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager uzantının bu kopyasını kabul etmiyor
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager diğer videolarla meşgul
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager yüklü değil veya başlatılamadı
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager yüklü değil veya tarayıcı entegrasyonu ayarlanmadı
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager uygulamasının bu video için yt-dlp'ye ihtiyacı var
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager daha sonra bu tarayıcıyla aynı proxy üzerinden indirme yapar. Tarayıcı bir kez izin vermenizi ister; bu seçeneği kapatmak verilen izni geri alır.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} {site} sitesindeki indirmeleri artık
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Bu sayfada henüz video veya ses bulunamadı. Oynatıp tekrar açın.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Burada indirilecek video yok
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Ulaşılamadı. Bu tarayıcıda adresini bir kez açın ve sertifikasını kabul edin, sonra tekrar deneyin.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Mister Download Manager uygulamasında aç…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Aç
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Gelişmiş tarayıcı entegrasyonunu kullan seçeneği, Seçenekler → Genel bölümünde kapalı.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Biraz bekleyin, sonra tekrar deneyin.
diff --git a/i18n/tt.tsv b/i18n/tt.tsv
index fd40df0b..102dedda 100644
--- a/i18n/tt.tsv
+++ b/i18n/tt.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Йөкләү тизлеге
#, machine
extension Another Mister Download Manager (a server) Башка Mister Download Manager (сервер)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Аудио
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Браузер киңәйтмәсе
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Көйләүләр → Гомуми битендә "Киңәйтелгән браузер интеграциясен куллану" сүндерелгән.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Видео
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Бераз көтегез, аннары кабатлап карагыз.
diff --git a/i18n/ug.tsv b/i18n/ug.tsv
index 5089c2d8..4d6e0dad 100644
--- a/i18n/ug.tsv
+++ b/i18n/ug.tsv
@@ -5666,6 +5666,10 @@ column Upload speed يۈكلەپ چىقىرىش سۈرئىتى
#, machine
extension Another Mister Download Manager (a server) باشقا Mister Download Manager (مۇلازىمېتىر)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio ئاۋاز
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension توركۆرگۈ كېڭەيتمىسى
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. تاللاشلار → ئومۇمىيدا ئىلغار تور كۆرگۈچ بىرىكتۈرۈشنى ئىشلىتىش ئېتىكەتتە تۇرىدۇ.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video ۋىدېئو
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. بىر ئاز ساقلاپ، ئاندىن قايتا سىناڭ.
diff --git a/i18n/uk.tsv b/i18n/uk.tsv
index 18652a74..ac776ea8 100644
--- a/i18n/uk.tsv
+++ b/i18n/uk.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Швидкість передачі
#, machine
column Upload speed Швидкість віддачі
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Список відео: виберіть їх у Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Додано до черги
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Інший Mister Download Manager (сервер)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Аудіо
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Розширення браузера
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Підключено до Mister
#, machine
extension Connected to Mister Download Manager {version} Підключено до Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Не вдалося виконати пошук
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Завантажити
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Залишено браузеру: {name}
#, machine
extension Live Наживо
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Пошук доступних якостей…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Пошук тривав надто довго
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Медіа на цій сторінці
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager не приймає цю копію розширення
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager зайнятий іншими відео
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager не встановлено або не запущено
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager не встановлено або його інтеграцію з браузером не налаштовано
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Для цього відео Mister Download Manager потрібен yt-dlp
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager завантажує файли через той самий проксі-сервер, що й цей браузер. Браузер один раз запитає у вас дозвіл; вимкнення цієї функції скасовує його.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Ніколи не завантажу
#, machine
extension No video or sound found on this page yet. Play it, then open this again. На цій сторінці ще не знайдено відео чи звуку. Відтворіть його, а потім відкрийте це знову.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Тут немає відео для завантаження
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Недоступно. Відкрийте його адресу один раз у цьому браузері та прийміть його сертифікат, потім спробуйте ще раз.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Відкрити в Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Відкрити
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Використовувати розширену інтеграцію з браузером вимкнено в Параметри → Загальні.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Відео
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Зачекайте трохи, потім спробуйте ще раз.
diff --git a/i18n/ur.tsv b/i18n/ur.tsv
index 3f1f6729..735c2ba4 100644
--- a/i18n/ur.tsv
+++ b/i18n/ur.tsv
@@ -5666,6 +5666,10 @@ column Upload speed اپ لوڈ کی رفتار
#, machine
extension Another Mister Download Manager (a server) ایک اور Mister Download Manager (ایک سرور)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio آڈیو
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension براؤزر ایکسٹینشن
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. اختیارات → عمومی میں 'اعلی درجے کی براؤزر انٹیگریشن استعمال کریں' بند ہے۔
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video ویڈیو
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. ایک لمحہ انتظار کریں، پھر دوبارہ کوشش کریں۔
diff --git a/i18n/uz.tsv b/i18n/uz.tsv
index 972af4ca..7ed8405a 100644
--- a/i18n/uz.tsv
+++ b/i18n/uz.tsv
@@ -5666,6 +5666,10 @@ column Upload speed Uzatish tezligi
#, machine
extension Another Mister Download Manager (a server) Boshqa Mister Download Manager (server)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Audio
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Brauzer kengaytmasi
@@ -5940,6 +5944,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. "Kengaytirilgan brauzer integratsiyasidan foydalanish" "Parametrlar" → "Umumiy" boʻlimida oʻchirilgan.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Bir oz kuting, soʻng qaytadan urinib koʻring.
diff --git a/i18n/vi.tsv b/i18n/vi.tsv
index cbd2fcf6..ad9d3439 100644
--- a/i18n/vi.tsv
+++ b/i18n/vi.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate Tốc độ truyền
#, machine
column Upload speed Tốc độ tải lên
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager Danh sách video: hãy chọn chúng trong Mister Download Manager
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue Đã thêm vào hàng đợi
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) Một Mister Download Manager khác (máy chủ)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio Âm thanh
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension Tiện ích mở rộng trình duyệt
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager Đã kết nối với Mister Dow
#, machine
extension Connected to Mister Download Manager {version} Đã kết nối với Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up Không thể tìm kiếm
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download Tải xuống
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} Để lại cho trình duyệt: {name}
#, machine
extension Live Trực tiếp
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… Đang tìm các chất lượng…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long Việc tìm kiếm mất quá nhiều thời gian
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page Nội dung đa phương tiện trên trang này
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager c
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager không chấp nhận bản sao tiện ích mở rộng này
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager đang bận với các video khác
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager chưa được cài đặt hoặc chưa khởi động
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager chưa được cài đặt hoặc tích hợp trình duyệt chưa được thiết lập
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager cần yt-dlp cho video này
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager sau đó tải xuống thông qua cùng một proxy với trình duyệt này. Trình duyệt sẽ hỏi bạn một lần để cho phép; tắt tùy chọn này sẽ thu hồi quyền đó.
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} Không nhận tải xuống từ {sit
#, machine
extension No video or sound found on this page yet. Play it, then open this again. Chưa tìm thấy video hoặc âm thanh nào trên trang này. Hãy phát rồi mở lại.
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here Không có video nào để tải xuống ở đây
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. Không thể truy cập. Mở địa chỉ của nó một lần trong trình duyệt này và chấp nhận chứng chỉ của nó, sau đó thử lại.
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… Mở trong Mister Download Manager…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it Mở
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. Tích hợp trình duyệt nâng cao đang tắt trong Tùy chọn → Chung.
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video Video
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. Đợi một lát, sau đó thử lại.
diff --git a/i18n/zh-hans.tsv b/i18n/zh-hans.tsv
index df78c79e..b6eedc0f 100644
--- a/i18n/zh-hans.tsv
+++ b/i18n/zh-hans.tsv
@@ -5662,10 +5662,22 @@ column Transfer rate 传输速率
#, machine
column Upload speed 上传速度
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager 视频列表:请在 Mister Download Manager 中选择
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue 已添加到队列
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) 另一个 Mister Download Manager(服务器)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio 音频
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension 浏览器扩展
@@ -5688,6 +5700,10 @@ extension Connected to Mister Download Manager 已连接到 Mister Download Mana
#, machine
extension Connected to Mister Download Manager {version} 已连接到 Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up 无法查找
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download 下载
@@ -5778,6 +5794,14 @@ extension Left to the browser: {name} 已留给浏览器: {name}
#, machine
extension Live 直播
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… 正在查找画质…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long 查找耗时过长
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page 此页面上的媒体
@@ -5794,6 +5818,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager 不接受此扩展副本
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager 正忙于处理其他视频
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager 未安装或未启动
@@ -5802,6 +5830,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager 未安装,或其浏览器集成未设置
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager 需要 yt-dlp 才能下载此视频
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager 将通过与此浏览器相同的代理下载。浏览器会要求您允许一次;关闭此功能将撤销该权限。
@@ -5828,10 +5860,18 @@ extension Never take downloads from {site} 永不从 {site} 获取下载
#, machine
extension No video or sound found on this page yet. Play it, then open this again. 此页面上尚未找到视频或音频。请播放后再次打开。
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here 此处没有可下载的视频
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. 无法访问。请先在此浏览器中打开其地址并接受其证书,然后重试。
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… 在 Mister Download Manager 中打开…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it 打开它
@@ -5940,6 +5980,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. “选项”→“常规”中已关闭“使用高级浏览器集成”。
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video 视频
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. 请稍候片刻,然后重试。
diff --git a/i18n/zh-hant.tsv b/i18n/zh-hant.tsv
index d42a2abe..d7fe5ec6 100644
--- a/i18n/zh-hant.tsv
+++ b/i18n/zh-hant.tsv
@@ -5653,10 +5653,22 @@ column Transfer rate 傳輸速率
#, machine
column Upload speed 上傳速度
#. text in the browser extension
+#. in the menu under the download button over a video: the page is a list of videos (a playlist), whose videos are chosen in the app's window; keep the name Mister Download Manager as it is
+#, machine
+extension A list of videos: choose them in Mister Download Manager 影片清單:請在 Mister Download Manager 中選擇
+#. text in the browser extension
+#. shown briefly on the download button over a video after a quality was picked: the download was added to the app's download queue, to start later
+#, machine
+extension Added to the queue 已新增至佇列
+#. text in the browser extension
#. choice under Send downloads to: an MDM running on another computer of the network, such as a home server; keep the name Mister Download Manager as it is
#, machine
extension Another Mister Download Manager (a server) 另一個 Mister Download Manager (伺服器)
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that are sound only (MP3, Opus and the like); short, one word
+#, machine
+extension Audio 音訊
+#. text in the browser extension
#. the name this browser gets in the other MDM's list of paired devices
#, machine
extension Browser extension 瀏覽器擴充功能
@@ -5679,6 +5691,10 @@ extension Connected to Mister Download Manager 已連線到 Mister Download Mana
#, machine
extension Connected to Mister Download Manager {version} 已連線到 Mister Download Manager {version}
#. text in the browser extension
+#. in the menu under the download button over a video: finding the video's qualities failed; the app's own explanation follows on the next line
+#, machine
+extension Could not look it up 無法尋找
+#. text in the browser extension
#. button beside a video, sound or stream in the toolbar button's popup: download it with the app; verb; short
#, machine
extension Download 下載
@@ -5769,6 +5785,14 @@ extension Left to the browser: {name} 已留給瀏覽器:{name}
#, machine
extension Live 直播
#. text in the browser extension
+#. in the menu that opens from the download button over a video, while the app finds which qualities (resolutions, formats) the video can be downloaded in
+#, machine
+extension Looking up the qualities… 正在尋找畫質…
+#. text in the browser extension
+#. in the menu under the download button over a video: the app took more than a minute to find the video's qualities, so the menu stopped waiting
+#, machine
+extension Looking up took too long 尋找耗時過久
+#. text in the browser extension
#. heading in the toolbar button's popup over the list of the videos, sounds and streams the current web page has loaded
#, machine
extension Media on this page 此頁面上的媒體
@@ -5785,6 +5809,10 @@ extension Mister Download Manager didn't start in time Mister Download Manager
#, machine
extension Mister Download Manager doesn't accept this copy of the extension Mister Download Manager 不接受此擴充功能副本
#. text in the browser extension
+#. in the menu under the download button over a video: the app is already looking up other videos and can't look this one up now; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager is busy with other videos Mister Download Manager 正忙於處理其他影片
+#. text in the browser extension
#. shown briefly on the download button when the app could not be reached; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager isn't installed or didn't start Mister Download Manager 未安裝或未啟動
@@ -5793,6 +5821,10 @@ extension Mister Download Manager isn't installed or didn't start Mister Downloa
#, machine
extension Mister Download Manager isn't installed, or its browser integration isn't set up Mister Download Manager 未安裝,或其瀏覽器整合未設定
#. text in the browser extension
+#. in the menu under the download button over a video: the app needs the yt-dlp tool (a program's name, keep it as it is) to find this video's qualities, and it isn't installed; keep the name Mister Download Manager as it is
+#, machine
+extension Mister Download Manager needs yt-dlp for this video Mister Download Manager 需要 yt-dlp 才能處理此影片
+#. text in the browser extension
#. tooltip of the switch Send downloads through this browser's proxy or VPN extension; keep the name Mister Download Manager as it is
#, machine
extension Mister Download Manager then downloads through the same proxy as this browser. The browser asks you once to allow it; turning this off takes that back. Mister Download Manager 會透過此瀏覽器使用的相同 Proxy 進行下載。瀏覽器會要求您允許一次;關閉此選項會撤銷該權限。
@@ -5819,10 +5851,18 @@ extension Never take downloads from {site} 永不從 {site} 下載
#, machine
extension No video or sound found on this page yet. Play it, then open this again. 此頁面尚未找到任何影片或音訊。請播放後再重新開啟。
#. text in the browser extension
+#. in the menu under the download button over a video: the app found no quality of the video it could download
+#, machine
+extension No video to download here 此處沒有可下載的影片
+#. text in the browser extension
#. pairing failed: the other MDM didn't answer
#, machine
extension Not reached. Open its address once in this browser and accept its certificate, then try again. 無法連線。請先在此瀏覽器中開啟其位址一次並接受其憑證,然後再試一次。
#. text in the browser extension
+#. last command of the menu of qualities under the download button over a video: opens the app's Download video window for this video instead; keep the name Mister Download Manager as it is
+#, machine
+extension Open in Mister Download Manager… 在 Mister Download Manager 中開啟…
+#. text in the browser extension
#. button: open the other MDM's address in a tab (to accept its certificate once)
#, machine
extension Open it 開啟它
@@ -5931,6 +5971,10 @@ extension Update Mister Download Manager to use everything this extension offers
#, machine
extension Use advanced browser integration is off in Options → General. 「選項 → 一般」中的「使用進階瀏覽器整合」已關閉。
#. text in the browser extension
+#. tab above the list of qualities in the menu under the download button over a video: the choices that include picture (video with sound); short, one word
+#, machine
+extension Video 影片
+#. text in the browser extension
#. pairing failed: codes tried too fast
#, machine
extension Wait a moment, then try again. 請稍候片刻,然後再試一次。
diff --git a/tools/extension/e2e.mjs b/tools/extension/e2e.mjs
index a2508750..485208f5 100644
--- a/tools/extension/e2e.mjs
+++ b/tools/extension/e2e.mjs
@@ -27,13 +27,22 @@
// by the button, the right-click menu and the media list, and read by yt-dlp; #155; also with no
// .m3u8 or .mpd, served as text/plain or octet-stream, #171), sniffed (#171 without yt-dlp: such
// streams found only when asked, by the button and the media list, a text decoy never), media (the
-// toolbar button's list of the media a tab loaded: streams, files, a protected stream; #38), video (shown, clicked, dragged,
-// kept; "never on the site" in the last browser), panelOptions (the button follows Options in
-// an open tab: off, on, the site listed; #532), videoFocus (mouse idle/fullscreen and keyboard
-// focus, #480), start (MDM not running: the host starts it),
+// toolbar button's list of the media a tab loaded: streams, files, a protected stream; #38),
+// qualities (the button's menu: a stream's qualities looked up by MDM, with their sizes; the one
+// picked downloads with its progress window only, MDM's main window hidden), video (shown,
+// clicked, dragged, kept; "never on the site" in the last browser; the button's clicks go through
+// its menu's "Open in…" to the Download video window, as in csp, hls, streams, sniffed and
+// inplace), panelOptions (the button follows Options in an open tab: off, on, the site listed;
+// #532), videoFocus (mouse idle/fullscreen and keyboard focus, #480), start (MDM not running: the
+// host starts it),
// remote (Send downloads to → Another MDM, #157: paired from the popup, a link downloaded by a
// headless MDM; E2E_REMOTE_URL for one running elsewhere, such as the Docker image: remoteServer).
//
+// Screenshots for a pull request (Chromium only): E2E_LANG=de (or ar, ...) starts the browser in that
+// language, so the extension shows its _locales text of it; with E2E_SHOTS=<folder> the `qualities`
+// case saves <lang>-looking.png, <lang>-video-tab.png and <lang>-audio-tab.png there (the player and
+// the menu), before the pick. Neither changes anything when unset.
+//
// Windows: the host is registered for the current user while it runs (nmhost --register, as the
// installer does) and unregistered at the end. Every registry key that touches (the browsers'
// host entries and Chrome's external extension, per user and for everyone) is exported first
@@ -212,18 +221,45 @@ const PILL_STYLE = `function () {
return JSON.stringify({ h: r.height, w: r.width, image: s.backgroundImage, color: s.backgroundColor });
}`;
+// The qualities' menu the button's click opens (video.js), in the same closed shadow root: null
+// while closed; else whether it is still looking, its message, its tabs (none when the video has one
+// kind of quality only: name, selected), its rows (name, size; the selected tab's) and "Open
+// in…", each with its middle on the page (where a click lands). `reveal` ("row": the first row,
+// "open": "Open in…") scrolls that into the menu's view first (the menu scrolls past 300 px).
+const PICKS = (reveal = "") => `function () {
+ const m = this.querySelector ? this.querySelector(".picks") : null;
+ if (!m || !m.classList.contains("open")) return null;
+ const open = m.querySelector('[data-act="window"]');
+ const shown = ${JSON.stringify(reveal)} === "open" ? open : ${JSON.stringify(reveal)} === "row" ? m.querySelector(".rows .pick") : null;
+ if (shown) shown.scrollIntoView({ block: "nearest" });
+ const at = (e) => { const r = e.getBoundingClientRect(); return { x: r.left + r.width / 2, y: r.top + r.height / 2 }; };
+ const note = m.querySelector(".note");
+ const box = m.getBoundingClientRect();
+ return JSON.stringify({
+ box: { l: box.left, t: box.top, r: box.right, b: box.bottom },
+ busy: m.getAttribute("aria-busy") === "true",
+ note: note.hidden ? "" : note.textContent,
+ tabs: m.querySelector(".tabs").hidden ? [] : [...m.querySelectorAll(".tabs [data-tab]")].map((b) => ({ tab: b.dataset.tab, name: b.textContent, selected: b.getAttribute("aria-selected") === "true", ...at(b) })),
+ rows: [...m.querySelectorAll(".rows .pick")].map((b) => ({ name: b.querySelector(".name").textContent, size: (b.querySelector(".size") || {}).textContent || "", ...at(b) })),
+ open: { text: open.textContent, ...at(open) },
+ });
+}`;
+
// Each driver opens `page` in the browser with the extension loaded and returns `evaluate`
// (an expression in the page, run as a user's action), `mouse` (move or click at page
// coordinates, Alt held with `{alt: true}`), `navigate` (`{download: true}`: the address
-// becomes a download, the page stays), `key`, `pill`, `major` (the browser's version) and
-// `close`. `ready` resolves once the extension reached the native host.
+// becomes a download, the page stays), `key`, `pill`, `picks` (PICKS), `major` (the browser's
+// version) and `close`. `ready` resolves once the extension reached the native host.
async function chromium(bin, profile, dl, page, ready) {
// The browser's own download folder, without asking, set as a user would: the profile's
// preferences. (DevTools' Browser.setDownloadBehavior would take downloads past extensions.)
fs.mkdirSync(path.join(profile, "Default"), { recursive: true });
fs.writeFileSync(
path.join(profile, "Default", "Preferences"),
- JSON.stringify({ download: { default_directory: dl, prompt_for_download: false, directory_upgrade: true } }),
+ JSON.stringify({
+ download: { default_directory: dl, prompt_for_download: false, directory_upgrade: true },
+ ...(process.env.E2E_LANG ? { intl: { accept_languages: process.env.E2E_LANG } } : {}),
+ }),
);
const proc = spawn(
bin,
@@ -235,6 +271,7 @@ async function chromium(bin, profile, dl, page, ready) {
"--no-first-run",
"--no-default-browser-check",
"--window-size=1280,900",
+ ...(process.env.E2E_LANG ? [`--lang=${process.env.E2E_LANG}`] : []),
// The remote case's server has its own certificate (in real use the popup's "Open it" lets
// the person accept it once); the lab's pages are plain http.
"--ignore-certificate-errors",
@@ -320,7 +357,16 @@ async function chromium(bin, profile, dl, page, ready) {
await cdp.send("Input.dispatchMouseEvent", { type: "mouseReleased", ...at, buttons: 0, clickCount: 1 }, sessionId);
}
};
- const KEYS = { ArrowDown: 40, Enter: 13, Tab: 9 };
+ // A PNG of a page rectangle (CSS pixels, the device's own pixel ratio) in `file`.
+ const shot = async (file, box) => {
+ const x = Math.max(0, Math.floor(box.l));
+ const y = Math.max(0, Math.floor(box.t));
+ const clip = { x, y, width: Math.ceil(box.r) - x, height: Math.ceil(box.b) - y, scale: 1 };
+ const { data } = await cdp.send("Page.captureScreenshot", { format: "png", clip }, sessionId);
+ fs.mkdirSync(path.dirname(file), { recursive: true });
+ fs.writeFileSync(file, Buffer.from(data, "base64"));
+ };
+ const KEYS = { ArrowDown: 40, ArrowUp: 38, Enter: 13, Tab: 9 };
const key = async (k) => {
for (const type of ["keyDown", "keyUp"]) {
// Enter carries its text, as a real key press does.
@@ -328,8 +374,9 @@ async function chromium(bin, profile, dl, page, ready) {
await cdp.send("Input.dispatchKeyEvent", { type, key: k, code: k, windowsVirtualKeyCode: KEYS[k], ...text }, sessionId);
}
};
- // The button's pill, through its closed shadow root (DevTools sees through it).
- const pill = async (fn = PILL_STYLE) => {
+ // A function (PILL_STYLE, PICKS) run on the button's closed shadow root (DevTools sees
+ // through it): its JSON answer, parsed; null without the button.
+ const inShadow = async (fn) => {
const { root: doc } = await cdp.send("DOM.getDocument", { depth: -1, pierce: true }, sessionId);
const find = (n) => {
if (n.nodeName === "MDM-VIDEO-BUTTON") return n;
@@ -346,6 +393,8 @@ async function chromium(bin, profile, dl, page, ready) {
const r = await cdp.send("Runtime.callFunctionOn", { objectId: object.objectId, functionDeclaration: fn, returnByValue: true }, sessionId);
return r.result.value ? JSON.parse(r.result.value) : null;
};
+ const pill = (fn = PILL_STYLE) => inShadow(fn);
+ const picks = (reveal) => inShadow(PICKS(reveal));
// Another tab at `url` (the extension's own pages too): its `evaluate` and `close`.
const tab = async (url) => {
const { targetId: tid } = await cdp.send("Target.createTarget", { url });
@@ -386,7 +435,9 @@ async function chromium(bin, profile, dl, page, ready) {
},
navigate,
key,
+ shot,
pill,
+ picks,
tab,
trace,
// The errors in the extension's service worker's console so far (#42: none), Runtime.enable
@@ -517,14 +568,15 @@ async function firefox(bin, profile, dl, page, ready) {
await bidi.send("input.performActions", { context, actions: sources });
};
// WebDriver key codes.
- const KEYS = { ArrowDown: "\uE015", Enter: "\uE007", Tab: "\uE004" };
+ const KEYS = { ArrowDown: "\uE015", ArrowUp: "\uE013", Enter: "\uE007", Tab: "\uE004" };
const key = (k) =>
bidi.send("input.performActions", {
context,
actions: [{ type: "key", id: "keyboard", actions: [{ type: "keyDown", value: KEYS[k] }, { type: "keyUp", value: KEYS[k] }] }],
});
- // The pill, through the closed shadow root BiDi serializes with includeShadowTree "all".
- const pill = async (fn = PILL_STYLE) => {
+ // A function (PILL_STYLE, PICKS) run on the button's closed shadow root, which BiDi
+ // serializes with includeShadowTree "all": its JSON answer, parsed; null without the button.
+ const inShadow = async (fn) => {
const r = await bidi.send("script.evaluate", {
expression: `document.querySelector("mdm-video-button")`,
target: { context },
@@ -542,6 +594,8 @@ async function firefox(bin, profile, dl, page, ready) {
});
return c.result && c.result.value ? JSON.parse(c.result.value) : null;
};
+ const pill = (fn = PILL_STYLE) => inShadow(fn);
+ const picks = (reveal) => inShadow(PICKS(reveal));
// Another tab at `url` (the extension's own pages too): its `evaluate` and `close`.
// A web page can't be sent to an extension's page: the browser's own window (its chrome
// scope, MOZ_REMOTE_ALLOW_SYSTEM_ACCESS) opens that tab instead.
@@ -649,6 +703,7 @@ async function firefox(bin, profile, dl, page, ready) {
navigate,
key,
pill,
+ picks,
tab,
close: () => {
ws.close();
@@ -669,6 +724,8 @@ let data = "";
let downloads = "";
// The yt-dlp the test instance uses (the streams case), or "" (none found).
let ytdlp = "";
+// The ffmpeg the qualities case needs (E2E_FFMPEG, else one on PATH).
+let ffmpeg = "";
const appExe = exe("misterdownloadmanager");
// One command to the instance over its channel (ipc.json), its one-line answer.
@@ -1093,6 +1150,26 @@ async function hover(session, v) {
return null;
}
+// After a click on the button's main part: its qualities' menu opens (MDM looks the video up),
+// and its "Open in Mister Download Manager…" is clicked, as a user does, which opens the app's
+// Download video window, as the click itself did before the menu. A click the app leaves to the
+// window (an older app, a Drive file, no lookups) opens it without the menu: nothing to choose.
+// "menu" or "window", whichever opened it.
+async function openInMdm(session, pid) {
+ for (let i = 0; i < 5; i += 1) {
+ const m = await until("the qualities' menu or the Download video window", 15000, async () =>
+ (appWindows(pid).includes(VIDEO_WINDOW) && "window") || (await session.picks("open")),
+ );
+ if (m === "window") return i ? "menu" : "window";
+ await session.mouse(m.open.x, m.open.y, "click");
+ // The qualities that came just then pushed "Open in…" down: the click landed on a row, which
+ // takes no click in its first 300 ms (video.js). Read where it is now, and again.
+ const opened = await until("the Download video window", 3000, () => appWindows(pid).includes(VIDEO_WINDOW)).catch(() => false);
+ if (opened) return "menu";
+ }
+ throw new Error(`"Open in Mister Download Manager…" opened no window`);
+}
+
// Where the button's main part is (its .go, read through its closed shadow root: at its left
// end, at its right end in a right-to-left language); its left end when it can't be read.
const GO_AT = `function () {
@@ -1105,13 +1182,15 @@ const mainPart = async (session, b) => {
return go && go.w ? go.x : b.l + 14;
};
-// Click the button's main part: the app's Download video window opens; the address it shows.
+// Click the button's main part, then "Open in…" in its menu (openInMdm): the app's Download
+// video window opens; the address it shows.
// `shot`: a picture of that window first (PrintWindow: off the screens too), for a PR's body.
async function clickButton(session, b, shot = "") {
const pid = appPid();
appWindows(pid, VIDEO_WINDOW);
await until("the Download video window closed", 5000, () => !appWindows(pid).includes(VIDEO_WINDOW));
await session.mouse(await mainPart(session, b), (b.t + b.b) / 2, "click");
+ await openInMdm(session, pid);
await until("the Download video window", 15000, () => appWindows(pid).includes(VIDEO_WINDOW));
const address = await until("the Download video window's address", 10000, () => videoAddress(pid));
if (shot) {
@@ -1122,9 +1201,10 @@ async function clickButton(session, b, shot = "") {
return address;
}
-// Point at a video, see the button at its top right, click it (the app's video window opens),
-// drag it to the bottom left (it stays there after a reload); `never`: its menu's "Never on
-// this site" by keyboard, then it no longer shows and the app lists the site.
+// Point at a video, see the button at its top right, click it (its qualities' menu, then "Open
+// in…": the app's video window opens), drag it to the bottom left (it stays there after a
+// reload; a drag opens neither); `never`: its menu's "Never on this site" by keyboard, then it no
+// longer shows and the app lists the site.
async function videoButton(session, never) {
const page = `${LAB}/page?video=${encodeURIComponent("/gen/1M/clip.mp4")}`;
await session.navigate(page);
@@ -1146,6 +1226,7 @@ async function videoButton(session, never) {
near(b.l, v.l + 10, "dragged: left edge");
near(b.b, v.b - 10, "dragged: bottom");
if (appWindows(appPid()).includes(VIDEO_WINDOW)) throw new Error("a drag opened the video window");
+ if (await session.picks()) throw new Error("a drag opened the qualities' menu");
// Remembered for the site.
await session.mouse(5, 5);
await session.navigate(page);
@@ -2151,11 +2232,12 @@ const CASES = {
if (state !== "done") throw new Error(`the page's ${kind} player: ${state}`);
const page = await t.session.evaluate("location.href");
const v = await rect(t.session, "#player");
- // The button over the player.
+ // The button over the player: its qualities' menu, then "Open in…" (openInMdm).
done.push(await named(`${kind} button`, () => streamLookedUp(async () => {
const b = await hover(t.session, v);
if (!b) throw new Error("no button over the stream's player");
await t.session.mouse(b.l + 14, (b.t + b.b) / 2, "click");
+ await openInMdm(t.session, appPid());
}, manifest, page, cookie)));
// The right-click menu on the player (Firefox: its menu can be driven headless).
if (t.session.menu) {
@@ -2330,6 +2412,118 @@ const CASES = {
return `sent ${address.replace(LAB, "")}`;
},
+ // The button's qualities' menu on a stream's player: the click has MDM look the stream up
+ // (yt-dlp), the menu lists its qualities with their sizes (estimated from the variants' bitrate
+ // and the stream's length), and the one picked downloads with only its progress window: MDM,
+ // started in the notification area (as with the session), keeps its main window hidden, and no
+ // Download video window opens. Needs a yt-dlp, as streams does, and an ffmpeg: the lab's stream
+ // has its sound apart (EXT-X-MEDIA), and without ffmpeg to put them together only the sound is
+ // offered, as the Download video window does.
+ async qualities(t) {
+ if (!ytdlp) throw new Skip("no yt-dlp (E2E_YTDLP or PATH)");
+ if (!ffmpeg) throw new Skip("no ffmpeg (E2E_FFMPEG or PATH)");
+ if (!WIN) throw new Skip(NO_UIA);
+ await stopApp();
+ fs.rmSync(path.join(data, "ipc.json"), { force: true });
+ spawn(appExe, ["/startup"], { env: process.env, stdio: "ignore", detached: false });
+ try {
+ await until("the test instance, in the notification area", 20000, () => mdmList().then(() => true, () => false));
+ const pid = appPid();
+ const main = (titles) => titles.filter((x) => /^Mister Download Manager \d/.test(x));
+ const progress = (titles) => titles.find((x) => /^\d+% /.test(x));
+ const at = appWindows(pid);
+ if (main(at).length) throw new Error(`started in the notification area, its main window shows (${at.join(", ")})`);
+ await t.session.navigate(`${LAB}/page?hls=1`);
+ const state = await until("the stream player", 15000, () => t.session.evaluate("document.body.dataset.stream || ''"));
+ if (state !== "done") throw new Error(`the page's player: ${state}`);
+ const v = await rect(t.session, "#player");
+ const b = await hover(t.session, v);
+ if (!b) throw new Error("no button over the stream's player");
+ const before = new Set((await mdmList()).map((d) => d.id));
+ // What the page's own shortcuts would see (a player's Space and arrows).
+ await t.session.evaluate('window.__mdmKeys = 0; document.addEventListener("keydown", () => { window.__mdmKeys += 1; }); 0');
+ // The button's main part is at its start: on the right in a right-to-left language (E2E_LANG).
+ const rtl = /^(ar|he|fa|ur)\b/i.test(process.env.E2E_LANG || "");
+ await t.session.mouse(rtl ? b.r - 14 : b.l + 14, (b.t + b.b) / 2, "click");
+ const clicked = Date.now();
+ // Pictures for a pull request (E2E_SHOTS, see the top): the player and the menu together.
+ const shots = process.env.E2E_SHOTS && t.session.shot ? path.resolve(process.env.E2E_SHOTS) : "";
+ const lang = process.env.E2E_LANG || "en";
+ const snap = (name, p) => {
+ const box = { l: Math.min(v.l, p.box.l) - 10, t: Math.min(v.t, p.box.t) - 10, r: Math.max(v.r, p.box.r) + 10, b: Math.max(v.b, p.box.b) + 10 };
+ return t.session.shot(path.join(shots, `${lang}-${name}.png`), box);
+ };
+ let shotLooking = false;
+ // The menu, looking, then the qualities MDM found.
+ let looked = false;
+ const m = await until("the qualities in the menu", 60000, async () => {
+ if (appWindows(pid).includes(VIDEO_WINDOW)) throw new Error("the click opened the Download video window, not the menu");
+ const p = await t.session.picks("row");
+ looked ||= Boolean(p && p.busy);
+ if (shots && p && p.busy && !shotLooking) {
+ shotLooking = true;
+ await snap("looking", p);
+ }
+ if (p && !p.busy && !p.rows.length) throw new Error(`the menu shows no qualities: "${p.note}"`);
+ return p && p.rows.length ? p : null;
+ });
+ const rowsMs = Date.now() - clicked;
+ if (!m.rows.some((r) => r.size)) throw new Error(`no row has a size: ${JSON.stringify(m.rows.map((r) => [r.name, r.size]))}`);
+ if (!m.open.text) throw new Error("no \"Open in…\" under the qualities");
+ // The arrows move through the menu, and the page's shortcuts don't hear them.
+ await t.session.key("ArrowDown");
+ await t.session.key("ArrowUp");
+ const heard = await t.session.evaluate("window.__mdmKeys");
+ if (heard !== 0) throw new Error(`the page heard ${heard} keys the menu used`);
+ // Video and Audio tabs (the ffmpeg gives MP3, Opus and FLAC rows beside the picture's): the
+ // Video one first, each listing only its kind.
+ const tabNames = m.tabs.map((x) => x.tab).join(",");
+ if (tabNames !== "video,audio") throw new Error(`the tabs are "${tabNames}", not video,audio: ${JSON.stringify(m.tabs.map((x) => x.name))}`);
+ if (m.tabs.some((x) => !x.name)) throw new Error("a tab has no text");
+ if (!m.tabs[0].selected || m.tabs[1].selected) throw new Error("the Video tab isn't the one shown first");
+ const picture = /\b\d{3,4}p\b/;
+ if (m.rows.some((r) => !picture.test(r.name))) throw new Error(`the Video tab lists a sound: ${JSON.stringify(m.rows.map((r) => r.name))}`);
+ // Rows that just came take no click in their first 300 ms (video.js).
+ await sleep(500);
+ if (shots) await snap("video-tab", await t.session.picks());
+ const tab = async (kind) => {
+ const now = await t.session.picks("row");
+ const x = now.tabs.find((y) => y.tab === kind);
+ await t.session.mouse(x.x, x.y, "click");
+ return until(`the ${kind} tab's qualities`, 5000, async () => {
+ const p = await t.session.picks("row");
+ return p && p.tabs.find((y) => y.tab === kind)?.selected && p.rows.length ? p : null;
+ });
+ };
+ const sounds = await tab("audio");
+ if (shots) await snap("audio-tab", await t.session.picks());
+ if (sounds.rows.some((r) => picture.test(r.name))) throw new Error(`the Audio tab lists a picture: ${JSON.stringify(sounds.rows.map((r) => r.name))}`);
+ if (sounds.rows.some((r) => m.rows.some((v) => v.name === r.name))) throw new Error("a quality is in both tabs");
+ const pictures = await tab("video");
+ // 720p from the Video tab.
+ const row = pictures.rows.find((r) => /\b720p\b/.test(r.name));
+ if (!row) throw new Error(`no 720p in the Video tab: ${JSON.stringify(pictures.rows.map((r) => r.name))}`);
+ const picked = Date.now();
+ await t.session.mouse(row.x, row.y, "click");
+ // MDM downloads the stream's manifest, with only the download's progress window.
+ const item = await until("the quality picked, in MDM's list", 15000, async () => (await mdmList()).find((d) => !before.has(d.id)));
+ if (item.url !== `${LAB}/hls/master.m3u8`) throw new Error(`MDM downloads ${item.url}, not the stream's manifest`);
+ const opened = await until("the download's progress window", 15000, () => progress(appWindows(pid)));
+ const startMs = Date.now() - picked;
+ if (await t.session.picks()) throw new Error("the menu stayed open after the pick");
+ // A moment more: nothing else comes up after it.
+ await sleep(1500);
+ const after = appWindows(pid);
+ if (main(after).length) throw new Error(`the main window showed (${after.join(", ")})`);
+ if (after.includes(VIDEO_WINDOW)) throw new Error("the Download video window opened too");
+ const list = (rs) => rs.map((r) => `${r.name}${r.size ? ` ${r.size}` : ""}`).join(", ");
+ return `${looked ? "looking, then " : ""}Video tab ${pictures.rows.length} (${list(pictures.rows)}), Audio tab ${sounds.rows.length} (${list(sounds.rows)}); "${row.name}" picked: ${item.file} (${item.status}) with its progress window "${opened}" only, the main window hidden; click to rows ${rowsMs} ms, pick to first progress ${startMs} ms`;
+ } finally {
+ // The next case starts MDM as usual.
+ await stopApp();
+ }
+ },
+
// Before `video`, which ends with "Never on this site" for the lab in the last browser.
async panelOptions(t) {
return videoButtonFollowsOptions(t.session);
@@ -2657,10 +2851,23 @@ async function run() {
// own copy (Helpers: <data>/tools/programs.json), so nothing is downloaded.
const found = process.env.E2E_YTDLP || spawnSync(process.platform === "win32" ? "where" : "which", ["yt-dlp"], { encoding: "utf8" }).stdout.split(/\r?\n/)[0];
const version = found && fs.existsSync(found) ? spawnSync(found, ["--version"], { encoding: "utf8" }).stdout.trim() : "";
+ // An ffmpeg for the qualities case (streams with their sound apart are merged): E2E_FFMPEG,
+ // else one on PATH, chosen the same way.
+ const where = (name) => spawnSync(process.platform === "win32" ? "where" : "which", [name], { encoding: "utf8" }).stdout.split(/\r?\n/)[0];
+ const ffFound = process.env.E2E_FFMPEG || where("ffmpeg");
+ const ffVersion = ffFound && fs.existsSync(ffFound) ? (/ffmpeg version (\S+)/.exec(spawnSync(ffFound, ["-version"], { encoding: "utf8" }).stdout) || [])[1] || "" : "";
+ const programs = {};
if (version) {
ytdlp = found;
+ programs["yt-dlp"] = { version, exe: found };
+ }
+ if (ffVersion) {
+ ffmpeg = ffFound;
+ programs.ffmpeg = { version: ffVersion, exe: ffFound };
+ }
+ if (Object.keys(programs).length) {
fs.mkdirSync(path.join(data, "tools"), { recursive: true });
- fs.writeFileSync(path.join(data, "tools", "programs.json"), JSON.stringify({ "yt-dlp": { version, exe: found } }));
+ fs.writeFileSync(path.join(data, "tools", "programs.json"), JSON.stringify(programs));
}
// The browsers pass these on to the host, and the host to an app it starts.
process.env.MDM_DATA_DIR = data;
@@ -2674,6 +2881,9 @@ async function run() {
let regBefore = null;
let regCheck = null;
let written = [];
+ // This run ran `nmhost --register` under the real name: only then is it unregistered at the end
+ // (a run stopped before, e.g. by an installed copy's registration, must leave that one alone).
+ let registered = false;
// E2E_HOST_NAME's registration (testHost), and what was left of it at the end.
let test = null;
let testLeft = [];
@@ -2681,16 +2891,18 @@ async function run() {
await until("the lab server", 10000, () => fetch(`${LAB}/`).then((r) => r.ok, () => false));
// An installed Mister Download Manager's registration is never replaced or removed.
// Linux and macOS: its manifests (files) are put back byte for byte at the end, so a lab
- // machine's (E2E_REPLACE_HOST=1) may be replaced while the run lasts.
+ // machine's (E2E_REPLACE_HOST=1) may be replaced while the run lasts. E2E_HOST_NAME never
+ // touches the real name (testHost), so it runs beside an installed copy.
const key = "HKCU\\Software\\Google\\Chrome\\NativeMessagingHosts\\com.misterdownloadmanager.host";
const installed = WIN ? spawnSync("reg", ["query", key], { stdio: "ignore" }).status === 0 : regSnapshot().some((m) => m.bytes) && process.env.E2E_REPLACE_HOST !== "1";
- if (installed) {
- throw new Error("Mister Download Manager's host is already registered (an installed copy): not touching it");
+ if (installed && !process.env.E2E_HOST_NAME) {
+ throw new Error("Mister Download Manager's host is already registered (an installed copy): not touching it (E2E_HOST_NAME runs beside it)");
}
regBefore = regSnapshot(path.join(work, "registry", "before"));
if (process.env.E2E_HOST_NAME) {
test = testHost(process.env.E2E_HOST_NAME, names, nmhost);
} else {
+ registered = true;
const reg = spawnSync(nmhost, ["--register"], { encoding: "utf8" });
// Where it wrote (Linux, macOS), for the restore.
written = [...(reg.stdout || "").matchAll(/^registered \S+ in (.+)$/gm)].map((m) => path.join(m[1].trim(), `${HOST}.json`));
@@ -2775,7 +2987,7 @@ async function run() {
}
} finally {
if (test) testLeft = test.remove();
- else spawnSync(nmhost, ["--unregister"]);
+ else if (registered) spawnSync(nmhost, ["--unregister"]);
if (regBefore) regCheck = regRestore(regBefore, path.join(work, "registry", "after"), written);
await stopApp().catch(() => {});
await stopRemote().catch(() => {});
diff --git a/tools/extension/test.mjs b/tools/extension/test.mjs
index 302dc5c9..147a9097 100644
--- a/tools/extension/test.mjs
+++ b/tools/extension/test.mjs
@@ -42,6 +42,9 @@ function fakeApi({
proxyAnswer = true,
proxyOn = false,
noticeReply,
+ // The host's answer to the video button's lookups (`videoLookup`, `videoPoll`, `videoPick`): a
+ // function of the message; none: `reply`.
+ lookup,
}) {
const raw = [];
// Objects made inside the sandbox have its prototypes: compare plain copies.
@@ -139,6 +142,7 @@ function fakeApi({
// A notice of a download left alone (#208): an older host, which knows none, takes it
// for an address it can't download (`noticeReply`).
if (m.declined) return noticeReply || { ok: true };
+ if (lookup && (m.videoLookup || m.videoPoll || m.videoPick)) return lookup(m);
return reply;
},
getManifest: () => ({
@@ -677,8 +681,9 @@ const ok = (what) => {
listeners.responseStarted({ tabId: 5, frameId: 0, url: "https://cdn.test/v/720p.m3u8", responseHeaders: [] });
listeners.responseStarted({ tabId: 5, frameId: 0, url: "https://cdn.test/v/seg1.ts", responseHeaders: [{ name: "Content-Type", value: "video/mp2t" }] });
const send = (m) => new Promise((r) => listeners.message(m, sender, r));
- await send({ type: "video", src: "" });
- assert.equal(natives(calls).find((m) => m.video).src, "https://cdn.test/v/master.m3u8?t=1");
+ await send({ type: "video", src: "", title: "A story's film" });
+ const first = natives(calls).find((m) => m.video);
+ assert.deepEqual([first.src, first.title], ["https://cdn.test/v/master.m3u8?t=1", "A story's film"], "the page's title goes with its stream");
listeners.tabUpdated(5, { url: "https://news.test/other" });
await send({ type: "video", src: "" });
assert.equal(natives(calls).filter((m) => m.video)[1].src, undefined, "forgotten on another page");
@@ -694,19 +699,20 @@ const ok = (what) => {
listeners.responseStarted({ tabId: 7, frameId: 0, url: "https://other.test/x/main.mpd", responseHeaders: [] });
await listeners.menu(
{ menuItemId: "mdm-link", srcUrl: "blob:https://player.test/1", frameId: 2, frameUrl: "https://player.test/embed", pageUrl: "https://blog.test/post" },
- { id: 7, incognito: false },
+ { id: 7, incognito: false, title: "A post with a film" },
);
await settle();
const m = natives(calls).find((x) => x.video);
assert.deepEqual(
- [m.url, m.src, m.referrer, m.explicit],
- ["https://player.test/embed", "https://cdn.test/s/master.m3u8", "https://blog.test/post", true],
- "the frame's stream, not the page alone",
+ [m.url, m.src, m.referrer, m.explicit, m.title],
+ ["https://player.test/embed", "https://cdn.test/s/master.m3u8", "https://blog.test/post", true, "A post with a film"],
+ "the frame's stream, not the page alone; the tab's title names its file",
);
assert.ok(calls.some((c) => c[0] === "cookies" && c[1].url === "https://cdn.test/s/master.m3u8"), "the stream's cookies");
- await listeners.menu({ menuItemId: "mdm-link", linkUrl: "https://cdn.test/s/other.m3u8", pageUrl: "https://blog.test/post" }, { id: 7, incognito: false });
+ await listeners.menu({ menuItemId: "mdm-link", linkUrl: "https://cdn.test/s/other.m3u8", pageUrl: "https://blog.test/post" }, { id: 7, incognito: false, title: "A post with a film" });
await settle();
- assert.equal(natives(calls).filter((x) => x.video)[1].src, "https://cdn.test/s/other.m3u8");
+ const linked = natives(calls).filter((x) => x.video)[1];
+ assert.deepEqual([linked.src, linked.title], ["https://cdn.test/s/other.m3u8", "A post with a film"], "a manifest's link: named after its tab");
assert.ok(calls.some((c) => c[0] === "cookies" && c[1].url === "https://cdn.test/s/other.m3u8"), "the manifest's cookies");
// Firefox names no address for a player fed by a MediaSource: the same stream goes.
await listeners.menu({ menuItemId: "mdm-link", mediaType: "video", frameId: 2, frameUrl: "https://player.test/embed", pageUrl: "https://blog.test/post" }, { id: 7, incognito: false });
@@ -772,6 +778,140 @@ const ok = (what) => {
ok("video button messages");
}
+// The button's qualities: an app whose rules say it looks videos up (`videoLookup`, kept with the
+// status) gets the click as a lookup, never with `video` or a top-level `url` (an older host
+// refuses such a message and does nothing), with the cookies of what yt-dlp is given; its answer
+// goes back to the page as `lookup`. Without that (an older app, another MDM chosen, an answer
+// that isn't a lookup's) the page gets {fallback: true}: the click as it always was.
+{
+ const ask = (listeners, m, sender) => new Promise((r) => listeners.message(m, sender, (x) => r(JSON.parse(JSON.stringify(x)))));
+ const sender = { id: "ours", url: "https://news.test/story", frameId: 0, tab: { id: 5, url: "https://news.test/story", incognito: false, cookieStoreId: "firefox-container-2" } };
+ const lookups = (calls) => natives(calls).filter((m) => m.videoLookup || m.videoPoll || m.videoPick);
+ // The lookup: the page names the video, the background what the browser knows.
+ {
+ const { api, calls, listeners, store } = fakeApi({ firefox: true, rules: { videoLookup: true }, lookup: () => ({ ok: true, lookup: { state: "pending", token: "t1" } }) });
+ load(api, true);
+ await settle();
+ assert.equal(store.status.videoLookup, true, "kept from the answer to rules");
+ const r = await ask(listeners, { type: "video-lookup", src: "https://cdn.test/v/clip.mp4", title: "A story's film", url: "https://news.test/story", at: { x: 1, y: 1 } }, sender);
+ assert.deepEqual(r, { lookup: { state: "pending", token: "t1" } });
+ const m = natives(calls).find((x) => x.videoLookup);
+ assert.deepEqual([m.video, m.url], [undefined, undefined], "no `video`, no top-level `url`");
+ assert.deepEqual(m.videoLookup, { page: "https://news.test/story", src: "https://cdn.test/v/clip.mp4", title: "A story's film", storeId: "firefox-container-2" });
+ assert.deepEqual([m.cookies, m.private, m.userAgent, m.v], ["sid=1", false, "UA", "0.2.5"]);
+ assert.equal(m.cookieJar.length, 1, "each cookie with its domain");
+ assert.deepEqual(calls.filter((c) => c[0] === "cookies").at(-1)[1], { url: "https://cdn.test/v/clip.mp4", storeId: "firefox-container-2" }, "the file's cookies, from the tab's container");
+ // A player's page in a frame, in a private window: that page's cookies, from the private
+ // store, and the tab as its referrer.
+ const framed = { id: "ours", url: "https://player.test/embed/1", frameId: 3, tab: { id: 6, url: "https://blog.test/post", incognito: true } };
+ await ask(listeners, { type: "video-lookup", src: "blob:https://player.test/x", title: "" }, framed);
+ const p = natives(calls).filter((x) => x.videoLookup).at(-1);
+ assert.deepEqual([p.videoLookup, p.private], [{ page: "https://player.test/embed/1", referrer: "https://blog.test/post" }, true]);
+ assert.deepEqual(calls.filter((c) => c[0] === "cookies").at(-1)[1], { url: "https://player.test/embed/1", storeId: "1" }, "the page's cookies, from the private store");
+ assert.ok(!natives(calls).some((x) => x.video), "never the window's message");
+ }
+ // An app whose rules say nothing of it (an older one): the click as it was, no lookup sent.
+ {
+ const { api, calls, listeners, store } = fakeApi({ firefox: false });
+ load(api, false);
+ await settle();
+ assert.ok(!store.status.videoLookup, "an older app's rules");
+ assert.deepEqual(await ask(listeners, { type: "video-lookup", src: "https://cdn.test/v/clip.mp4" }, sender), { fallback: true });
+ assert.deepEqual(lookups(calls), []);
+ }
+ // Another MDM chosen: none of the three goes to the host, nor to the other MDM.
+ {
+ const { api, calls, listeners, store } = fakeApi({ firefox: false, rules: { videoLookup: true }, lookup: () => ({ ok: true, lookup: { state: "pending", token: "t1" } }) });
+ load(api, false);
+ await settle();
+ store.remote = { url: "https://server.test:8463/", token: "k" };
+ fetched.length = 0;
+ for (const m of [{ type: "video-lookup", src: "https://cdn.test/v/clip.mp4" }, { type: "video-poll", token: "t1" }, { type: "video-pick", token: "t1", choice: 0 }]) {
+ assert.deepEqual(await ask(listeners, m, sender), { fallback: true }, m.type);
+ }
+ assert.deepEqual(lookups(calls), []);
+ assert.deepEqual(fetched, [], "nothing to the other MDM");
+ }
+ // The ability kept from before, an older host or app now (MDM went back a version): its answer
+ // has no `lookup`. Not kept as able, its rules asked again, the click as it was; the next click
+ // sends no lookup at all. A refused message is no broken connection.
+ {
+ const { api, calls, listeners, store } = fakeApi({ firefox: false, reply: { ok: false, why: "refused", error: "not an http(s) or ftp(s) URL" } });
+ store.status = { why: null, app: "0.2.5", videoLookup: true };
+ store.rules = { types: DEFAULT_TYPES, capture: true, captureOff: "", excludedSites: "", excludedAddresses: [], opened: true, minKb: 0, at: Date.now() };
+ load(api, false);
+ await settle();
+ const asked = () => calls.filter((c) => c[0] === "rules").length;
+ const before = asked();
+ assert.deepEqual(await ask(listeners, { type: "video-lookup", src: "https://cdn.test/v/clip.mp4" }, sender), { fallback: true });
+ await settle();
+ assert.equal(store.status.videoLookup, false, "not kept as able");
+ assert.ok(asked() > before, "its rules asked again");
+ assert.deepEqual(await ask(listeners, { type: "video-lookup", src: "https://cdn.test/v/clip.mp4" }, sender), { fallback: true });
+ assert.equal(natives(calls).filter((x) => x.videoLookup).length, 1, "one lookup, then none");
+ assert.ok(!calls.some((c) => c[0] === "badge" && c[1] === "!"), "no \"!\"");
+ }
+ // How the lookup is going, and the quality picked: the token and the row's number from the
+ // page; private or not and the container from the tab, whatever the page says.
+ {
+ const ready = { state: "ready", token: "t1", title: "Film", choices: [{ label: "720p MP4", ext: "mp4", size: 187500000 }] };
+ const answers = { videoPoll: { ok: true, lookup: ready }, videoPick: { ok: true, lookup: { state: "started" } } };
+ const { api, calls, listeners } = fakeApi({ firefox: true, rules: { videoLookup: true }, lookup: (m) => answers[m.videoPoll ? "videoPoll" : "videoPick"] });
+ load(api, true);
+ await settle();
+ assert.deepEqual(await ask(listeners, { type: "video-poll", token: "t1" }, sender), { lookup: ready });
+ assert.deepEqual(natives(calls).find((x) => x.videoPoll).videoPoll, { token: "t1" });
+ const privateTab = { id: 8, url: "https://news.test/story", incognito: true, cookieStoreId: "firefox-private" };
+ const r = await ask(listeners, { type: "video-pick", token: "t1", choice: 0, private: false, storeId: "firefox-default" }, { id: "ours", url: "https://news.test/story", frameId: 0, tab: privateTab });
+ assert.deepEqual(r, { lookup: { state: "started" } });
+ const picked = natives(calls).find((x) => x.videoPick);
+ assert.deepEqual(
+ [picked.videoPick, picked.private, picked.url, picked.video],
+ [{ token: "t1", choice: 0, storeId: "firefox-private" }, true, undefined, undefined],
+ "the tab's window and container, not the page's say",
+ );
+ // An answer without `lookup`: the lookup is gone; a pick gets the window.
+ answers.videoPoll = { ok: true };
+ answers.videoPick = { ok: true };
+ assert.deepEqual(await ask(listeners, { type: "video-poll", token: "t1" }, sender), { lookup: { state: "gone" } });
+ assert.deepEqual(await ask(listeners, { type: "video-pick", token: "t1", choice: 0 }, sender), { fallback: true });
+ // Nothing but a token and a row's number is sent on.
+ const sent = natives(calls).length;
+ assert.deepEqual(await ask(listeners, { type: "video-poll", token: { x: 1 } }, sender), { lookup: { state: "gone" } });
+ assert.deepEqual(await ask(listeners, { type: "video-pick", token: "t1", choice: "0" }, sender), { fallback: true });
+ assert.deepEqual(await ask(listeners, { type: "video-pick", token: "t1", choice: -1 }, sender), { fallback: true });
+ assert.equal(natives(calls).length, sent);
+ }
+ // What a lookup comes to is never the connection's status: no "!" on the toolbar button, the
+ // rule for PDFs and music untouched, still able.
+ {
+ const states = [
+ { state: "failed", reason: "error", message: "ERROR: Unsupported URL" },
+ { state: "failed", reason: "no-ytdlp" },
+ { state: "busy" },
+ { state: "off" },
+ { state: "list" },
+ { state: "use-window" },
+ { state: "gone" },
+ ];
+ let next = 0;
+ const { api, calls, listeners, store } = fakeApi({ firefox: false, rules: { videoLookup: true }, lookup: () => ({ ok: true, lookup: states[next++] }) });
+ load(api, false);
+ await settle();
+ const rules = calls.filter((c) => c[0] === "dnr").length;
+ for (let i = 0; i < states.length; i++) {
+ const m = i % 2 ? { type: "video-poll", token: "t1" } : { type: "video-lookup", src: "https://cdn.test/v/clip.mp4" };
+ assert.deepEqual((await ask(listeners, m, sender)).lookup, states[i]);
+ }
+ await settle();
+ assert.equal(store.status.why, null);
+ assert.ok(!calls.some((c) => c[0] === "badge" && c[1] === "!"), "no \"!\"");
+ assert.equal(calls.filter((c) => c[0] === "dnr").length, rules, "the rule for PDFs and music untouched");
+ assert.equal(store.status.videoLookup, true, "still able");
+ }
+ ok("video button: qualities looked up by the app, picked in the page; else the window, as before");
+}
+
// #38: the media a tab loaded, as the popup lists them. A response is media by its type or its
// address; segments, byte ranges and small pieces a player fetched are parts of a stream.
const H = (type, more = {}) => [{ name: "Content-Type", value: type }, ...Object.entries(more).map(([name, value]) => ({ name, value }))];
@@ -1508,6 +1648,236 @@ function samplePage(html) {
ok("video.js: Shorts and live pages name their video");
}
+// The qualities' menu (video.js; its plain functions run here): the questions' pace and their
+// minute, a row's text, and what a page can never make it do.
+{
+ const source = readFileSync(new URL("../../extension/video.js", import.meta.url), "utf8");
+ // A function's own source (async with its keyword), by its braces.
+ const fn = (name) => {
+ let start = source.indexOf(`function ${name}(`);
+ assert.ok(start > 0, `video.js has ${name}`);
+ if (source.slice(start - 6, start) === "async ") start -= 6;
+ let depth = 0;
+ // The body's brace: after the parameters (which may destructure).
+ for (let i = source.indexOf(") {", start) + 2; i < source.length; i += 1) {
+ if (source[i] === "{") depth += 1;
+ if (source[i] === "}" && --depth === 0) return source.slice(start, i + 1);
+ }
+ throw new Error(`${name}: no end`);
+ };
+ const make = (names, value) => new Function(`${names.map(fn).join("\n")}\nreturn ${value};`)();
+ // 100 ms before the first question, then the old backoff's target (1 s x 1.25^n, 2 s at most)
+ // less what the last answer took (50 ms at least): an older app (60 ms) is asked as seldom as
+ // before, a newer one (holding the answer ~1.5 s) is asked again almost at once early on.
+ const pollDelay = make(["pollDelay"], "pollDelay");
+ assert.equal(pollDelay(0, 0), 100);
+ assert.equal(pollDelay(0, 5000), 100);
+ assert.equal(pollDelay(1, 60), 1190);
+ assert.equal(pollDelay(1, 1500), 50);
+ assert.equal(pollDelay(2, 1500), 50);
+ assert.equal(pollDelay(2, 999), 564);
+ assert.equal(pollDelay(9, 0), 2000);
+ assert.equal(pollDelay(9, 1500), 50);
+ assert.equal(pollDelay(9, 99999), 50);
+ assert.equal(pollDelay(3, undefined), 1953);
+ assert.equal(pollDelay(3, NaN), 1953);
+ assert.equal(pollDelay(3, -20), 1953);
+ // The qualities in tabs: sound-only ones apart when the video has both kinds; else one list. Every
+ // number is the place in the app's list.
+ const groupChoices = make(["groupChoices"], "groupChoices");
+ const grp = (list, max) => JSON.parse(JSON.stringify(groupChoices(list, max)));
+ const mixed = [{ audio: false }, { audio: false }, { audio: true }, { audio: false }, { audio: true }];
+ assert.deepEqual(grp(mixed), { tabbed: true, video: [0, 1, 3], audio: [2, 4], all: [0, 1, 2, 3, 4], start: "video" });
+ assert.deepEqual(grp([{ audio: true }, { audio: false }]), { tabbed: true, video: [1], audio: [0], all: [0, 1], start: "video" });
+ assert.deepEqual(grp([{ label: "720p" }, { label: "360p" }]), { tabbed: false, video: [0, 1], audio: [], all: [0, 1], start: "video" }, "an older app: no audio flag, one list");
+ assert.equal(grp([{ audio: "yes" }, { audio: 1 }, null, "x"]).tabbed, false, "only true counts as audio");
+ assert.deepEqual(grp([{ audio: true }, { audio: true }]), { tabbed: false, video: [], audio: [0, 1], all: [0, 1], start: "audio" }, "only audio: one list");
+ assert.deepEqual(grp([{ audio: false }, { audio: false }]), { tabbed: false, video: [0, 1], audio: [], all: [0, 1], start: "video" }, "only video: one list");
+ assert.deepEqual(grp([]), { tabbed: false, video: [], audio: [], all: [], start: "video" });
+ assert.deepEqual(grp(undefined), { tabbed: false, video: [], audio: [], all: [], start: "video" });
+ assert.deepEqual(grp(mixed, 3), { tabbed: true, video: [0, 1], audio: [2], all: [0, 1, 2], start: "video" }, "the cap keeps the app's order");
+ // A row: the app's name for the quality as it is (set as text), its size in the browser's language.
+ const { sizeText, rowText } = make(["sizeText", "rowText"], "{ sizeText, rowText }");
+ assert.equal(sizeText(187500000, "en"), "178.8 MB");
+ assert.equal(sizeText(3 * 2 ** 30, "en"), "3 GB");
+ assert.equal(sizeText(null, "en"), "");
+ assert.equal(sizeText(undefined, "en"), "");
+ assert.deepEqual({ ...rowText({ label: "<img src=x onerror=alert(1)> 720p", ext: "mp4", size: null }, "en") }, { name: "<img src=x onerror=alert(1)> 720p", size: "" });
+ assert.deepEqual({ ...rowText(null, "en") }, { name: "", size: "" });
+ // Following a lookup: the next question only after the last answer, on a clock of its own here.
+ const followLookup = make(["pollDelay", "followLookup"], "followLookup");
+ const follow = async (first, answers, { alive = () => true, took = 0 } = {}) => {
+ let clock = 0;
+ let open = 0;
+ const asked = [];
+ const result = await followLookup(first, {
+ ask: async (token, ms) => {
+ assert.equal(open++, 0, "one question at a time");
+ asked.push({ token, at: clock, ms });
+ await Promise.resolve();
+ clock += took;
+ open -= 1;
+ return answers.length ? answers.shift() : { lookup: { state: "pending" } };
+ },
+ alive: () => alive(asked),
+ sleep: async (ms) => {
+ clock += ms;
+ },
+ now: () => clock,
+ end: 60000,
+ });
+ return { result: result && { ...result }, asked, clock };
+ };
+ const pending = { state: "pending", token: "t1" };
+ const ready = { state: "ready", token: "t1", choices: [{ label: "720p MP4", ext: "mp4", size: 1 }] };
+ let f = await follow(pending, [{ lookup: pending }, { lookup: ready }]);
+ assert.deepEqual(f.result, ready);
+ assert.deepEqual(f.asked.map((a) => [a.token, a.at]), [["t1", 100], ["t1", 1350]], "100 ms, then the old backoff (an app that answers at once)");
+ // Still looking after a minute: given up then, never asked after it.
+ f = await follow(pending, []);
+ assert.deepEqual(f.result, { state: "late" });
+ assert.equal(f.clock, 60000);
+ assert.ok(f.asked.every((a) => a.at < 60000 && a.ms > 0 && a.token === "t1"), "the token from the first answer");
+ // An older app (answers in ~60 ms): no more questions than the old schedule (1 s x 1.25^n, 2 s at
+ // most: asks at 1 s, 2.25 s, ...) made in a minute.
+ let old = 0;
+ for (let at = 0, n = 0; (at += Math.min(2000, 1000 * 1.25 ** n)) < 60000; n += 1) old += 1;
+ f = await follow(pending, [], { took: 60 });
+ assert.deepEqual(f.result, { state: "late" });
+ assert.equal(f.asked[0].at, 100);
+ assert.ok(f.asked.length <= old, `old host: ${f.asked.length} questions in a minute, the old schedule's ${old}`);
+ // A newer app (holds the answer ~1.5 s while it looks): one at a time, asked again almost at once
+ // early on, and the answer reaches the page soon after it is ready. A host that is ready at `r`
+ // answers its question in flight 100 ms later (else after 1.5 s).
+ const latency = async (r) => {
+ let clock = 0;
+ let done = null;
+ let ready = { state: "ready", token: "t1", choices: [] };
+ const res = await followLookup(pending, {
+ ask: async () => {
+ const start = clock;
+ const end = Math.min(start + 1500, Math.max(start, r) + 100);
+ clock = end;
+ return { lookup: end >= r ? ((done = end), ready) : pending };
+ },
+ alive: () => true,
+ sleep: async (ms) => {
+ clock += ms;
+ },
+ now: () => clock,
+ end: 60000,
+ });
+ assert.equal(res.state, "ready");
+ return done - r;
+ };
+ for (const r of [0, 300, 1000, 1700, 2500, 3000]) assert.ok((await latency(r)) <= (r ? 150 : 250), `new host, ready at ${r} ms: answered ${await latency(r)} ms later`);
+ for (const r of [5000, 12000, 30000]) assert.ok((await latency(r)) <= 150, `new host, ready at ${r} ms: answered ${await latency(r)} ms later`);
+ f = await follow(pending, [], { took: 1500 });
+ assert.deepEqual(f.result, { state: "late" });
+ assert.ok(f.asked.length > 20 && f.asked.length <= 40, `new host: ${f.asked.length} questions in a minute`);
+ // In between (an answer after 600 ms): the rest of the second.
+ f = await follow(pending, [{ lookup: pending }, { lookup: pending }, { lookup: ready }], { took: 600 });
+ assert.deepEqual(f.asked.map((a) => a.at), [100, 1350, 2913]);
+ assert.deepEqual(f.result, ready);
+ // Dropped (the menu closed, the video or the page changed): nothing more, no answer shown.
+ f = await follow(pending, [{ lookup: pending }, { lookup: ready }], { alive: (asked) => asked.length < 1 });
+ assert.deepEqual([f.result, f.asked.length], [null, 1]);
+ // The background's other answers.
+ assert.deepEqual((await follow(pending, [{ late: true }])).result, { state: "late" });
+ assert.deepEqual((await follow(pending, [{ fallback: true }])).result, { state: "use-window", token: "t1" }, "another MDM chosen meanwhile");
+ assert.deepEqual((await follow(pending, [{ ok: false }])).result, { state: "gone" });
+ assert.equal((await follow(pending, [{ ok: false, gone: true }])).result, null, "the extension gone");
+ f = await follow({ state: "pending" }, []);
+ assert.deepEqual([f.result, f.asked.length], [{ state: "gone" }, 0], "no token, no questions");
+ assert.deepEqual((await follow({ state: "use-window" }, [])).result, { state: "use-window", token: "" });
+ // What each answer comes to (replyState, then lookupAction): the background's answer to the
+ // click, the lookup's end, and the answer to a choice.
+ const { replyState, lookupAction, firstWindow, pointerTarget } = make(
+ ["replyState", "lookupAction", "firstWindow", "pointerTarget"],
+ "{ replyState, lookupAction, firstWindow, pointerTarget }",
+ );
+ const key = (k) => k;
+ const act = (r, picked) => {
+ const s = replyState(r);
+ return s && { ...lookupAction(s, key, picked) };
+ };
+ const look = (lookup) => act({ lookup });
+ assert.deepEqual(look(pending), { act: "follow" });
+ assert.deepEqual(look(ready), { act: "offer" });
+ assert.deepEqual(look({ state: "ready", token: "t1", choices: [] }), { act: "say", text: "video_no_choices" });
+ assert.deepEqual(look({ state: "failed", reason: "no-choices" }), { act: "say", text: "video_no_choices" });
+ assert.deepEqual(look({ state: "failed", reason: "no-ytdlp" }), { act: "say", text: "video_no_ytdlp" });
+ assert.deepEqual(look({ state: "failed", reason: "error", message: "HTTP 403" }), { act: "say", text: "video_failed_lookup", detail: "HTTP 403" });
+ assert.deepEqual(look({ state: "failed", reason: "error", message: { html: "<b>" } }), { act: "say", text: "video_failed_lookup", detail: "" });
+ assert.deepEqual(look({ state: "list" }), { act: "say", text: "video_playlist" });
+ assert.deepEqual(look({ state: "busy" }), { act: "say", text: "video_busy" });
+ assert.deepEqual(look({ state: "late" }), { act: "say", text: "video_too_long" });
+ assert.deepEqual(act({ late: true }), { act: "say", text: "video_too_long" }, "no answer within the minute");
+ assert.deepEqual(look({ state: "off" }), { act: "flash", kind: "err", text: "video_off" });
+ assert.deepEqual(act({ ok: false, why: "unnamed" }), { act: "flash", kind: "err", text: "video_unnamed" });
+ // The click as it always was (the Download video window): no lookups here, the app forgot the
+ // lookup, an older or a newer answer, a host that failed.
+ const windows = [{ fallback: true }, { ok: false }, { ok: false, why: "not_running" }, { lookup: null }, { lookup: "ready" }, {}, null];
+ for (const s of ["use-window", "gone", "a-newer-state", "", 7]) windows.push({ lookup: { state: s } });
+ for (const r of windows) assert.deepEqual(act(r), { act: "window" }, JSON.stringify(r));
+ assert.equal(act({ ok: false, gone: true }), null, "the extension gone: nothing");
+ // A choice: downloading, or handed to the app ("sent", which didn't say in time what became of
+ // it: it will download it, so no window), or queued; anything else, the window.
+ assert.deepEqual(act({ lookup: { state: "started" } }, true), { act: "flash", kind: "ok", text: "video_sent" });
+ assert.deepEqual(act({ lookup: { state: "sent" } }, true), { act: "flash", kind: "ok", text: "video_sent" });
+ assert.deepEqual(act({ lookup: { state: "queued" } }, true), { act: "flash", kind: "ok", text: "video_queued" });
+ for (const s of ["use-window", "gone", "pending", "ready", "busy", "off", "failed", "list", "late"]) {
+ assert.deepEqual(act({ lookup: { state: s, token: "t1", choices: ready.choices } }, true), { act: "window" }, `a choice answered ${s}`);
+ }
+ assert.deepEqual(act({ fallback: true }, true), { act: "window" });
+ assert.equal(act({ ok: false, gone: true }, true), null);
+ // One window per click, whichever way it comes to it: a lookup's end, then the choice's answer,
+ // then "Open in…" (and a second click gets its own).
+ const click = {};
+ assert.deepEqual([firstWindow(click), firstWindow(click), firstWindow(click)], [true, false, false]);
+ assert.equal(firstWindow({}), true, "the next click");
+ assert.equal(firstWindow(null), false);
+ // …and every way there goes through it: the window's message is sent from useWindow alone,
+ // after firstWindow, and each answer is read by lookupAction.
+ assert.equal(source.split('send({ type: "video",').length, 2, "one place sends the window's message");
+ assert.ok(/if \(!firstWindow\(j\)\) return;[^]*send\(\{ type: "video",/.test(fn("useWindow")), "useWindow: once per click");
+ for (const name of ["download", "settle", "pick"]) assert.ok(fn(name).includes("lookupAction(s, t"), `${name} reads answers with lookupAction`);
+ assert.ok(fn("pick").includes("lookupAction(s, t, true)"), "pick: a choice's answer");
+ // While the qualities' menu is open, the pointer over another video (a feed's next one, under
+ // the menu) leaves the button on its own; over its own, or with no menu, it follows.
+ const mine = { id: "mine" };
+ const next = { id: "next" };
+ assert.equal(pointerTarget(next, mine, true), null);
+ assert.equal(pointerTarget(mine, mine, true), mine);
+ assert.equal(pointerTarget(next, mine, false), next);
+ assert.equal(pointerTarget(next, null, false), next);
+ assert.equal(pointerTarget(null, mine, false), null);
+ assert.ok(fn("look").includes("pointerTarget(videoAt(pointer.x, pointer.y), video, menuOpen && panel === picks)"), "look: kept on its video while picking");
+ // What a page can never make it do: the menu's rows and keys take only the user's own clicks
+ // and keys; rows are text (markup only for the fixed parts); a pick sends the token and the
+ // row's number alone; nothing is asked on a timer of its own, nor before a click.
+ assert.ok(/shadow\.addEventListener\("keydown", \(e\) => \{\s*if \(!e\.isTrusted\) return;/.test(source), "keys: the user's own");
+ assert.ok(/picks\.addEventListener\("click", \(e\) => \{\s*if \(!e\.isTrusted\) return;/.test(source), "rows: the user's own clicks");
+ // The page's own controls: a key the open menu used doesn't reach the page, and the button (and
+ // so its menu) stays where it is while the menu is open.
+ const keys = source.slice(source.indexOf('shadow.addEventListener("keydown"'), source.indexOf("// The main part: a click downloads"));
+ assert.equal(keys.match(/e\.stopPropagation\(\)/g).length, 5, "Escape, Enter and Space, the tabs' arrows, between tabs and rows, the rows' arrows: not the page's too");
+ assert.ok(fn("spot").includes("if (menuOpen && auto.v === video && auto.at) return auto.at;"), "spot: still while its menu is open");
+ assert.equal(source.match(/innerHTML/g).length, 1, "markup only for the fixed parts");
+ assert.ok(!/insertAdjacentHTML|outerHTML|setInterval/.test(source));
+ assert.ok(/send\(\{ type: "video-pick", token: j\.token, choice: i \}\)/.test(fn("pick")), "a pick: the token and the row's number");
+ assert.equal(source.split('"video-lookup"').length, 2, "one lookup message");
+ assert.ok(fn("download").includes('"video-lookup"'), "sent by the click alone");
+ // Its texts: English's, kept as the fallback too.
+ const english = JSON.parse(readFileSync(new URL("../../extension/_locales/en/messages.json", import.meta.url), "utf8"));
+ for (const key of ["video_looking", "video_open_mdm", "video_no_choices", "video_playlist", "video_no_ytdlp", "video_too_long", "video_busy", "video_queued", "video_failed_lookup"]) {
+ assert.ok(english[key], key);
+ assert.ok(source.includes(`${key}: ${JSON.stringify(english[key].message)}`), `video.js FALLBACK: ${key}`);
+ assert.ok(source.includes(`t("${key}")`), `video.js uses ${key}`);
+ }
+ ok("video.js: the qualities' menu follows a lookup one question at a time for a minute; rows as text, the user's own clicks and keys");
+}
+
// No other download manager's name in what ships (the clean-room rule, CLAUDE.md).
{
for (const file of readdirSync(new URL("../../extension/", import.meta.url))) {