Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
fix(rebrand): hard-purge all remaining omniget references, shims, and workflows
IGECT1ed52e5cfa6e
diff --git a/.github/workflows/homebrew.yml b/.github/workflows/homebrew.ymlindex 9c0629b0..47de33ae 100644--- a/.github/workflows/homebrew.yml+++ b/.github/workflows/homebrew.yml@@ -58,19 +58,19 @@ jobs:echo " version \"$version\""echo ""echo " on_arm do"- echo " url \"https://github.com/$REPO/releases/download/$TAG/omniget_#{version}_aarch64.dmg\""+ echo " url \"https://github.com/$REPO/releases/download/$TAG/libreget_#{version}_aarch64.dmg\""echo " sha256 \"$arm_sha\""echo " end"echo " on_intel do"- echo " url \"https://github.com/$REPO/releases/download/$TAG/omniget_#{version}_x64.dmg\""+ echo " url \"https://github.com/$REPO/releases/download/$TAG/libreget_#{version}_x64.dmg\""echo " sha256 \"$intel_sha\""echo " end"echo ""- echo " name \"OmniGet\""+ echo " name \"LibreGet\""echo " desc \"Universal downloader and media workstation\""echo " homepage \"https://github.com/$REPO\""echo ""- echo " app \"omniget.app\""+ echo " app \"LibreGet.app\""echo ""echo " zap trash: ["echo " \"~/Library/Application Support/com.openselena.libreget\","diff --git a/.weblate b/.weblateindex 14a29e7f..08d9e265 100644--- a/.weblate+++ b/.weblate@@ -1,9 +1,9 @@[weblate]url = https://hosted.weblate.org/api/-translation = omniget-openselena/frontend+translation = libreget-openselena/frontend-[component "omniget-openselena/frontend"]-slug = omniget-openselena/frontend+[component "libreget-openselena/frontend"]+slug = libreget-openselena/frontendfile_format = json-nestedfilemask = src/lib/i18n/*.jsontemplate = src/lib/i18n/en.jsondiff --git a/src-tauri/libreget-core/src/core/paths.rs b/src-tauri/libreget-core/src/core/paths.rsindex ac429358..43682624 100644--- a/src-tauri/libreget-core/src/core/paths.rs+++ b/src-tauri/libreget-core/src/core/paths.rs@@ -1,50 +1,11 @@pub fn app_data_dir() -> Option<std::path::PathBuf> {- if let Ok(dir) = std::env::var("LIBREGET_DATA_DIR").or_else(|_| std::env::var("OMNIGET_DATA_DIR")) {+ if let Ok(dir) = std::env::var("LIBREGET_DATA_DIR") {return Some(std::path::PathBuf::from(dir));}let base = dirs::data_dir()?;let new_path = base.join("com.openselena.libreget");- let legacy_paths = [base.join("com.openselena.libreget"), base.join("omniget")];-- for old_path in &legacy_paths {- if old_path.exists() {- let _ = std::fs::create_dir_all(&new_path);-- for dir_name in &["bin", "plugins"] {- let src = old_path.join(dir_name);- let dst = new_path.join(dir_name);- if src.exists() && !dst.exists() {- let _ = copy_dir_recursive(&src, &dst);- }- }-- if let Ok(entries) = std::fs::read_dir(old_path) {- for entry in entries.flatten() {- if entry.file_type().map(|t| t.is_file()).unwrap_or(false) {- let dest = new_path.join(entry.file_name());- if !dest.exists() {- let _ = std::fs::copy(entry.path(), &dest);- }- }- }- }- }- }-+ let _ = std::fs::create_dir_all(&new_path);Some(new_path)}-fn copy_dir_recursive(src: &std::path::Path, dst: &std::path::Path) -> std::io::Result<()> {- if src.is_dir() {- std::fs::create_dir_all(dst)?;- for entry in std::fs::read_dir(src)? {- let entry = entry?;- let dest = dst.join(entry.file_name());- copy_dir_recursive(&entry.path(), &dest)?;- }- } else {- std::fs::copy(src, dst)?;- }- Ok(())-}diff --git a/src-tauri/libreget-core/src/core/tools/hosts_block.rs b/src-tauri/libreget-core/src/core/tools/hosts_block.rsindex 0f9787b6..ce7d15f9 100644--- a/src-tauri/libreget-core/src/core/tools/hosts_block.rs+++ b/src-tauri/libreget-core/src/core/tools/hosts_block.rs@@ -18,8 +18,6 @@ use serde::{Deserialize, Serialize};pub const BEGIN: &str = "# >>> LibreGet block list >>>";pub const END: &str = "# <<< LibreGet block list <<<";-pub const LEGACY_BEGIN: &str = "# >>> OmniGet block list >>>";-pub const LEGACY_END: &str = "# <<< OmniGet block list <<<";const ID: &str = "sys-hosts";@@ -233,10 +231,10 @@ fn block_span(text: &str) -> Option<(usize, usize)> {for line in text.split_inclusive('\n') {let trimmed = line.trim_end_matches(['\r', '\n']).trim();if begin.is_none() {- if trimmed == BEGIN || trimmed == LEGACY_BEGIN {+ if trimmed == BEGIN {begin = Some(idx);}- } else if trimmed == END || trimmed == LEGACY_END {+ } else if trimmed == END {return Some((begin?, idx + line.len()));}idx += line.len();@@ -256,7 +254,6 @@ pub fn block_body(text: &str) -> Option<&str> {let body = &inner[after_begin..];let before_end = body.rfind(END)- .or_else(|| body.rfind(LEGACY_END)).map_or_else(|| body.len(),|i| body[..i].rfind('\n').map_or(0, |j| j + 1),diff --git a/src-tauri/libreget-core/src/core/tools/yt_archive.rs b/src-tauri/libreget-core/src/core/tools/yt_archive.rsindex 23552915..5324cb75 100644--- a/src-tauri/libreget-core/src/core/tools/yt_archive.rs+++ b/src-tauri/libreget-core/src/core/tools/yt_archive.rs@@ -14,13 +14,10 @@ use serde::{Deserialize, Serialize};pub const STATE_FILE: &str = ".libreget-archive.json";pub const ARCHIVE_FILE: &str = ".libreget-archive.txt";-pub const LEGACY_STATE_FILE: &str = ".omniget-archive.json";-pub const LEGACY_ARCHIVE_FILE: &str = ".omniget-archive.txt";const STATE_VERSION: u32 = 1;const ID: &str = "yt-archive";/// Prefixo do `--print` para separar o caminho final das linhas de progresso.const FILE_MARK: &str = "__libreget_file__";-const LEGACY_FILE_MARK: &str = "__omniget_file__";// ── yt-dlp como processo ───────────────────────────────────────────────@@ -234,13 +231,7 @@ impl ArchiveState {}pub fn state_path(dest: &Path) -> PathBuf {- let new_path = dest.join(STATE_FILE);- let legacy_path = dest.join(LEGACY_STATE_FILE);- if !new_path.exists() && legacy_path.exists() {- legacy_path- } else {- new_path- }+ dest.join(STATE_FILE)}pub fn load_state(dest: &Path) -> Option<ArchiveState> {@@ -362,12 +353,6 @@ pub fn parse_printed_file(line: &str) -> Option<String> {return Some(path.to_string());}}- if let Some(idx) = line.find(LEGACY_FILE_MARK) {- let path = line[idx + LEGACY_FILE_MARK.len()..].trim();- if !path.is_empty() {- return Some(path.to_string());- }- }None}@@ -574,11 +559,7 @@ pub async fn run(opts: Options, progress: super::ProgressFn) -> anyhow::Result<Alet mut st = open_state(&opts, &dest, &progress).await?;let bin = ytdlp_path().await?;let cookie = CookieFile::new(opts.session_netscape.as_deref())?;- let archive_txt = if !dest.join(ARCHIVE_FILE).exists() && dest.join(LEGACY_ARCHIVE_FILE).exists() {- dest.join(LEGACY_ARCHIVE_FILE)- } else {- dest.join(ARCHIVE_FILE)- };+ let archive_txt = dest.join(ARCHIVE_FILE);let total = st.items.len() as u64;let limit = match opts.max_items {0 => usize::MAX,diff --git a/src-tauri/libreget-core/src/core/ytdlp.rs b/src-tauri/libreget-core/src/core/ytdlp.rsindex 31d4b738..743752e5 100644--- a/src-tauri/libreget-core/src/core/ytdlp.rs+++ b/src-tauri/libreget-core/src/core/ytdlp.rs@@ -450,7 +450,7 @@ pub(crate) fn prepare_override_args(}if !args.iter()- .any(|a| a.starts_with("after_move:LIBREGET_FILEPATH") || a.starts_with("after_move:OMNIGET_FILEPATH"))+ .any(|a| a.starts_with("after_move:LIBREGET_FILEPATH")){args.push("--print".to_string());args.push("after_move:LIBREGET_FILEPATH:%(filepath)s".to_string());@@ -1110,9 +1110,7 @@ async fn probe_pot_provider(base_url: &str) -> super::pot_provider::ProviderHeal}fn pot_provider_base_url() -> Option<String> {- let raw = std::env::var("LIBREGET_POT_PROVIDER_URL")- .or_else(|_| std::env::var("OMNIGET_POT_PROVIDER_URL"))- .ok()?;+ let raw = std::env::var("LIBREGET_POT_PROVIDER_URL").ok()?;super::pot_provider::normalize_base_url(&raw)}@@ -1636,7 +1634,7 @@ fn parse_python_version(out: &str) -> Option<(u32, u32)> {fn python_candidates() -> Vec<PathBuf> {let mut v = Vec::new();- if let Ok(custom) = std::env::var("LIBREGET_PYTHON").or_else(|_| std::env::var("OMNIGET_PYTHON")) {+ if let Ok(custom) = std::env::var("LIBREGET_PYTHON") {if !custom.trim().is_empty() {v.push(PathBuf::from(custom.trim()));}@@ -1921,7 +1919,7 @@ pub enum YtdlpChannel {}fn ytdlp_channel() -> YtdlpChannel {- match std::env::var("LIBREGET_YTDLP_CHANNEL").or_else(|_| std::env::var("OMNIGET_YTDLP_CHANNEL")) {+ match std::env::var("LIBREGET_YTDLP_CHANNEL") {Ok(v) if v.trim().eq_ignore_ascii_case("nightly") => YtdlpChannel::Nightly,_ => YtdlpChannel::Stable,}@@ -4217,7 +4215,7 @@ fn spawn_stdout_reader(_timer_start.elapsed());}- if let Some(rest) = line.strip_prefix("LIBREGET_FILEPATH:").or_else(|| line.strip_prefix("OMNIGET_FILEPATH:")) {+ if let Some(rest) = line.strip_prefix("LIBREGET_FILEPATH:") {let final_path = rest.trim();if !final_path.is_empty() && final_path != "NA" {authoritative_capture = true;@@ -5422,7 +5420,7 @@ mod tests {assert!(args.contains(&PROGRESS_TEMPLATE.to_string()));assert!(args.iter()- .any(|a| a.starts_with("after_move:LIBREGET_FILEPATH") || a.starts_with("after_move:OMNIGET_FILEPATH")));+ .any(|a| a.starts_with("after_move:LIBREGET_FILEPATH")));assert!(args.contains(&"-o".to_string()), "sem -o, recebe o padrão");assert_eq!(args.iter().filter(|a| *a == url).count(),@@ -6061,10 +6059,8 @@ ERROR: [youtube] abc123: Requested format is not available";#[test]fn sem_variavel_nao_ha_provedor_de_pot_token() {let restore_libreget = std::env::var("LIBREGET_POT_PROVIDER_URL").ok();- let restore_omniget = std::env::var("OMNIGET_POT_PROVIDER_URL").ok();std::env::remove_var("LIBREGET_POT_PROVIDER_URL");- std::env::remove_var("OMNIGET_POT_PROVIDER_URL");assert_eq!(pot_provider_base_url(), None, "sem env nao ha provedor");std::env::set_var("LIBREGET_POT_PROVIDER_URL", " ");@@ -6085,10 +6081,6 @@ ERROR: [youtube] abc123: Requested format is not available";Some(v) => std::env::set_var("LIBREGET_POT_PROVIDER_URL", v),None => std::env::remove_var("LIBREGET_POT_PROVIDER_URL"),}- match restore_omniget {- Some(v) => std::env::set_var("OMNIGET_POT_PROVIDER_URL", v),- None => std::env::remove_var("OMNIGET_POT_PROVIDER_URL"),- }}#[tokio::test]@@ -6298,7 +6290,7 @@ mod e2e {#[tokio::test]#[ignore]async fn e2e_download_reports_streams() {- let ytdlp = match std::env::var("LIBREGET_YTDLP").or_else(|_| std::env::var("OMNIGET_YTDLP")) {+ let ytdlp = match std::env::var("LIBREGET_YTDLP") {Ok(p) => std::path::PathBuf::from(p),Err(_) => return,};@@ -6306,7 +6298,6 @@ mod e2e {std::fs::create_dir_all(&out).unwrap();let (tx, mut rx) = tokio::sync::mpsc::channel(256);let url = std::env::var("LIBREGET_E2E_URL")- .or_else(|_| std::env::var("OMNIGET_E2E_URL")).unwrap_or_else(|_| "https://www.youtube.com/watch?v=jNQXAC9IVRw".to_string());let collector = tokio::spawn(async move {let mut seen = Vec::new();diff --git a/src-tauri/libreget-core/src/fs_paths.rs b/src-tauri/libreget-core/src/fs_paths.rsindex 831cdf8a..35db1d18 100644--- a/src-tauri/libreget-core/src/fs_paths.rs+++ b/src-tauri/libreget-core/src/fs_paths.rs@@ -16,47 +16,17 @@ impl AppPaths for DesktopPaths {fn data_dir(&self) -> PathBuf {dirs::data_dir()- .map(|d| {- let p = d.join("libreget");- if p.exists() {- return p;- }- let old = d.join("omniget");- if old.exists() {- return old;- }- p- })+ .map(|d| d.join("libreget")).unwrap_or_else(|| PathBuf::from("."))}fn cache_dir(&self) -> PathBuf {dirs::cache_dir()- .map(|d| {- let p = d.join("libreget");- if p.exists() {- return p;- }- let old = d.join("omniget");- if old.exists() {- return old;- }- p- })+ .map(|d| d.join("libreget")).unwrap_or_else(|| PathBuf::from("."))}fn bin_dir(&self) -> Option<PathBuf> {- dirs::data_dir().map(|d| {- let p = d.join("libreget").join("bin");- if p.exists() {- return p;- }- let old = d.join("omniget").join("bin");- if old.exists() {- return old;- }- p- })+ dirs::data_dir().map(|d| d.join("libreget").join("bin"))}}diff --git a/src-tauri/libreget-core/tests/instagram_live.rs b/src-tauri/libreget-core/tests/instagram_live.rsindex c8a26b2e..fc528ab4 100644--- a/src-tauri/libreget-core/tests/instagram_live.rs+++ b/src-tauri/libreget-core/tests/instagram_live.rs@@ -18,8 +18,7 @@ use libreget_core::core::tools::noop_progress;#[ignore]async fn ig_live_read_only() {let path = std::env::var("LIBREGET_IG_COOKIES")- .or_else(|_| std::env::var("OMNIGET_IG_COOKIES"))- .expect("LIBREGET_IG_COOKIES or OMNIGET_IG_COOKIES");+ .expect("LIBREGET_IG_COOKIES");let content = std::fs::read_to_string(&path).expect("cookies.txt");let session = Session::from_netscape(&content).expect("sessionid + ds_user_id");let client = IgClient::new(session).unwrap();@@ -32,7 +31,7 @@ async fn ig_live_read_only() {me.username, me.follower_count);- let target = std::env::var("OMNIGET_IG_TARGET").unwrap_or_else(|_| "instagram".into());+ let target = std::env::var("LIBREGET_IG_TARGET").unwrap_or_else(|_| "instagram".into());let user = profile::resolve_user(&client, &target).await.expect("resolve_user");diff --git a/src-tauri/libreget-plugin-sdk/src/plugin.rs b/src-tauri/libreget-plugin-sdk/src/plugin.rsindex 98fd528c..80974422 100644--- a/src-tauri/libreget-plugin-sdk/src/plugin.rs+++ b/src-tauri/libreget-plugin-sdk/src/plugin.rs@@ -28,31 +28,15 @@ macro_rules! export_plugin {$crate::ABI_VERSION}- #[no_mangle]- pub extern "C" fn omniget_plugin_abi_version() -> u32 {- $crate::ABI_VERSION- }-#[no_mangle]pub extern "C" fn libreget_plugin_build_info() -> *const ::std::os::raw::c_char {$crate::BUILD_INFO.as_ptr() as *const ::std::os::raw::c_char}- #[no_mangle]- pub extern "C" fn omniget_plugin_build_info() -> *const ::std::os::raw::c_char {- $crate::BUILD_INFO.as_ptr() as *const ::std::os::raw::c_char- }-#[no_mangle]pub extern "C" fn libreget_plugin_init() -> *mut dyn $crate::LibregetPlugin {let plugin = $constructor;Box::into_raw(Box::new(plugin))}-- #[no_mangle]- pub extern "C" fn omniget_plugin_init() -> *mut dyn $crate::LibregetPlugin {- let plugin = $constructor;- Box::into_raw(Box::new(plugin))- }};}diff --git a/src-tauri/plugins/courses/src/platforms/udemy/webview_api.rs b/src-tauri/plugins/courses/src/platforms/udemy/webview_api.rsindex e148054d..445f15ef 100644--- a/src-tauri/plugins/courses/src/platforms/udemy/webview_api.rs+++ b/src-tauri/plugins/courses/src/platforms/udemy/webview_api.rs@@ -24,7 +24,7 @@ pub async fn ensure_api_webview(.visible(false).inner_size(100.0, 100.0).initialization_script(- r#"window.__libreget_fetch = window.__omniget_fetch = function(url) {+ r#"window.__libreget_fetch = function(url) {fetch(url, {credentials: 'include',headers: {@@ -43,7 +43,7 @@ pub async fn ensure_api_webview().on_navigation(move |url| {let host = url.host_str().unwrap_or("");- if host == "libreget-api-result.local" || host == "omniget-api-result.local" {+ if host == "libreget-api-result.local" {for (key, value) in url.query_pairs() {if key == "data" {*store.lock().unwrap() = Some(value.to_string());@@ -74,7 +74,7 @@ pub async fn webview_get() -> anyhow::Result<String> {*result_store.lock().unwrap() = None;- let js = format!("(window.__libreget_fetch || window.__omniget_fetch)('{}')", url);+ let js = format!("window.__libreget_fetch('{}')", url);window.eval(&js).map_err(|e| anyhow!("eval failed: {}", e))?;diff --git a/src-tauri/plugins/telegram/src/state.rs b/src-tauri/plugins/telegram/src/state.rsindex f18b7625..cc8e83ef 100644--- a/src-tauri/plugins/telegram/src/state.rs+++ b/src-tauri/plugins/telegram/src/state.rs@@ -197,25 +197,12 @@ pub struct TelegramStreamInfo {pub fn libreget_data_dir() -> PathBuf {let base = dirs::data_dir().unwrap_or_else(|| PathBuf::from("."));- let new_dir = base.join("libreget");- let old_dir = base.join("omniget");- if !new_dir.exists() && old_dir.exists() {- old_dir- } else {- new_dir- }+ base.join("libreget")}-pub fn persistent_state_path() -> PathBuf {let base = dirs::data_dir().unwrap_or_else(|| PathBuf::from("."));- let new_path = base.join("libreget").join("telegram_plugin_state.json");- let old_path = base.join("omniget").join("telegram_plugin_state.json");- if !new_path.exists() && old_path.exists() {- old_path- } else {- new_path- }+ base.join("libreget").join("telegram_plugin_state.json")}pub fn accounts_dir() -> PathBuf {diff --git a/src-tauri/src/core/binary_versions.rs b/src-tauri/src/core/binary_versions.rsindex 4cfc8b37..489c962b 100644--- a/src-tauri/src/core/binary_versions.rs+++ b/src-tauri/src/core/binary_versions.rs@@ -17,7 +17,6 @@ use std::path::{Path, PathBuf};pub const KEEP_VERSIONS: usize = 3;const SUFFIX: &str = ".libreget-prev.";-const LEGACY_SUFFIX: &str = ".omniget-prev.";/// Caminho de arquivamento de `binary`, carimbado.///@@ -35,7 +34,7 @@ pub fn archive_path(binary: &Path, stamp_ms: u128) -> PathBuf {/// `Some(carimbo)` quando o arquivo e um arquivamento de `binary_name`.pub fn parse_archive(file_name: &str, binary_name: &str) -> Option<u128> {let rest = file_name.strip_prefix(binary_name)?;- let stamp = rest.strip_prefix(SUFFIX).or_else(|| rest.strip_prefix(LEGACY_SUFFIX))?;+ let stamp = rest.strip_prefix(SUFFIX)?;stamp.parse().ok()}@@ -141,13 +140,8 @@ mod tests {parse_archive("yt-dlp.libreget-prev.1234", "yt-dlp"),Some(1234));- assert_eq!(- parse_archive("yt-dlp.omniget-prev.1234", "yt-dlp"),- Some(1234)- );assert_eq!(parse_archive("yt-dlp", "yt-dlp"), None);assert_eq!(parse_archive("ffmpeg.libreget-prev.1", "yt-dlp"), None);- assert_eq!(parse_archive("ffmpeg.omniget-prev.1", "yt-dlp"), None);}#[test]@@ -173,7 +167,7 @@ mod tests {fn a_poda_mantem_exatamente_as_n_mais_novas() {let arch: Vec<(u128, PathBuf)> = (1..=6).rev()- .map(|i| (i as u128, PathBuf::from(format!("/x/b.omniget-prev.{i}"))))+ .map(|i| (i as u128, PathBuf::from(format!("/x/b.libreget-prev.{i}")))).collect();let apagar = prune_list(&arch, 3);assert_eq!(apagar.len(), 3);@@ -230,11 +224,11 @@ mod tests {std::fs::write(&intruso, "malicioso").unwrap();assert!(rollback_to(&bin, &intruso).is_err());- let de_outro = dir.join("ffmpeg.omniget-prev.1");+ let de_outro = dir.join("ffmpeg.libreget-prev.1");std::fs::write(&de_outro, "outro binario").unwrap();assert!(rollback_to(&bin, &de_outro).is_err());- let fora = std::env::temp_dir().join("yt-dlp.omniget-prev.9");+ let fora = std::env::temp_dir().join("yt-dlp.libreget-prev.9");std::fs::write(&fora, "de fora").unwrap();assert!(rollback_to(&bin, &fora).is_err(),diff --git a/src-tauri/src/core/portable.rs b/src-tauri/src/core/portable.rsindex 2c0d1b49..de841eca 100644--- a/src-tauri/src/core/portable.rs+++ b/src-tauri/src/core/portable.rs@@ -29,9 +29,7 @@ pub fn portable_webview_dir_from_env() -> Option<PathBuf> {if std::env::var("LIBREGET_PORTABLE").ok().as_deref() != Some("1") {return None;}- let data_dir = std::env::var("LIBREGET_DATA_DIR")- .or_else(|_| std::env::var("OMNIGET_DATA_DIR"))- .ok()?;+ let data_dir = std::env::var("LIBREGET_DATA_DIR").ok()?;if data_dir.trim().is_empty() {return None;}@@ -73,12 +71,10 @@ mod tests {let restore = (std::env::var("LIBREGET_PORTABLE").ok(),std::env::var("LIBREGET_DATA_DIR").ok(),- std::env::var("OMNIGET_DATA_DIR").ok(),);std::env::remove_var("LIBREGET_PORTABLE");std::env::remove_var("LIBREGET_DATA_DIR");- std::env::remove_var("OMNIGET_DATA_DIR");assert_eq!(portable_webview_dir_from_env(),None,@@ -105,15 +101,6 @@ mod tests {Some(PathBuf::from("/tmp/libreget-portatil/data/webview")));- // Fallback legado quando LIBREGET_DATA_DIR nao existe- std::env::remove_var("LIBREGET_DATA_DIR");- std::env::set_var("OMNIGET_DATA_DIR", "/tmp/legacy-omniget-portatil/data");- assert_eq!(- portable_webview_dir_from_env(),- Some(PathBuf::from("/tmp/legacy-omniget-portatil/data/webview"))- );- std::env::remove_var("OMNIGET_DATA_DIR");-std::env::set_var("LIBREGET_PORTABLE", "0");assert_eq!(portable_webview_dir_from_env(),@@ -129,10 +116,6 @@ mod tests {Some(v) => std::env::set_var("LIBREGET_DATA_DIR", v),None => std::env::remove_var("LIBREGET_DATA_DIR"),}- match restore.2 {- Some(v) => std::env::set_var("OMNIGET_DATA_DIR", v),- None => std::env::remove_var("OMNIGET_DATA_DIR"),- }}}diff --git a/src-tauri/src/external_url.rs b/src-tauri/src/external_url.rsindex 37d01c24..37e80981 100644--- a/src-tauri/src/external_url.rs+++ b/src-tauri/src/external_url.rs@@ -67,16 +67,14 @@ pub fn is_external_url(value: &str) -> bool {/// explicit intent.pub fn arrived_via_scheme(raw_url: &str, source: &str) -> bool {let t = raw_url.trim_start();- t.starts_with("libreget:") || t.starts_with("omniget:") || source == "deep-link"+ t.starts_with("libreget:") || source == "deep-link"}pub fn normalize_external_url(value: &str) -> Option<String> {let trimmed = value.trim();let rest = trimmed.strip_prefix("libreget://")- .or_else(|| trimmed.strip_prefix("libreget:"))- .or_else(|| trimmed.strip_prefix("omniget://"))- .or_else(|| trimmed.strip_prefix("omniget:"))?;+ .or_else(|| trimmed.strip_prefix("libreget:"))?;let rest = rest.trim_start_matches('/');if rest.is_empty() {return None;@@ -428,7 +426,7 @@ mod tests {#[test]fn normalize_preserves_magnet_payload() {assert_eq!(- normalize_external_url("omniget:magnet:?xt=urn:btih:abc"),+ normalize_external_url("libreget:magnet:?xt=urn:btih:abc"),Some("magnet:?xt=urn:btih:abc".to_string()));}@@ -449,7 +447,7 @@ mod tests {" libreget://example.com/v","command-line"));- assert!(arrived_via_scheme("omniget:magnet:?xt=foo", "command-line"));+ assert!(arrived_via_scheme("libreget:magnet:?xt=foo", "command-line"));}#[test]diff --git a/src-tauri/src/plugin_loader.rs b/src-tauri/src/plugin_loader.rsindex af558945..82b6639d 100644--- a/src-tauri/src/plugin_loader.rs+++ b/src-tauri/src/plugin_loader.rs@@ -356,7 +356,6 @@ fn load_single_plugin(let abi_fn: libloading::Symbol<extern "C" fn() -> u32> = unsafe {lib.get(b"libreget_plugin_abi_version")- .or_else(|_| lib.get(b"omniget_plugin_abi_version"))}.map_err(|_| PluginLoadError {message: format!(@@ -395,7 +394,6 @@ fn load_single_plugin(let build_info_fn: libloading::Symbol<extern "C" fn() -> *const std::os::raw::c_char> =unsafe {lib.get(b"libreget_plugin_build_info")- .or_else(|_| lib.get(b"omniget_plugin_build_info"))}.map_err(|_| PluginLoadError {message: format!(@@ -442,7 +440,6 @@ fn load_single_plugin(let init_fn: libloading::Symbol<extern "C" fn() -> *mut dyn LibregetPlugin> = unsafe {lib.get(b"libreget_plugin_init")- .or_else(|_| lib.get(b"omniget_plugin_init"))}.map_err(|_| {PluginLoadError::simple("missing_init_symbol", "Missing libreget_plugin_init symbol")