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
refactor(backend): rename rust crates and symbols to libreget
IGECTdcdfedd197eb
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lockindex bc5818fd..90740fb6 100644--- a/src-tauri/Cargo.lock+++ b/src-tauri/Cargo.lock@@ -3895,6 +3895,251 @@ dependencies = ["libc",]+[[package]]+name = "libreget"+version = "0.16.6"+dependencies = [+ "aes 0.8.4",+ "anyhow",+ "async-trait",+ "axum",+ "base64 0.22.1",+ "block2",+ "cbc 0.1.2",+ "chrono",+ "constant_time_eq",+ "dirs 6.0.0",+ "discord-rich-presence",+ "filetime",+ "fs4",+ "futures",+ "hex 0.4.3",+ "hmac",+ "keepawake",+ "keyring",+ "libloading 0.8.9",+ "libreget-core",+ "libreget-plugin-convert",+ "libreget-plugin-courses",+ "libreget-plugin-sdk",+ "libreget-plugin-telegram",+ "librqbit",+ "m3u8-rs",+ "md-5 0.10.6",+ "murmur3",+ "native-tls",+ "objc2",+ "objc2-foundation",+ "objc2-web-kit",+ "once_cell",+ "open",+ "qrcode",+ "rand 0.10.2",+ "regex",+ "reqwest 0.12.28",+ "rusqlite",+ "sanitize-filename",+ "serde",+ "serde_json",+ "sha2 0.10.9",+ "socket2 0.6.5",+ "tar",+ "tauri",+ "tauri-build",+ "tauri-plugin-autostart",+ "tauri-plugin-clipboard-manager",+ "tauri-plugin-deep-link",+ "tauri-plugin-dialog",+ "tauri-plugin-fs",+ "tauri-plugin-global-shortcut",+ "tauri-plugin-notification",+ "tauri-plugin-process",+ "tauri-plugin-shell",+ "tauri-plugin-single-instance",+ "tauri-plugin-store",+ "tauri-plugin-updater",+ "thiserror 1.0.69",+ "tokio",+ "tokio-tungstenite",+ "tokio-util",+ "tower-http",+ "tracing",+ "tracing-subscriber",+ "unicode-normalization",+ "url",+ "urlencoding",+ "uuid 1.21.0",+ "webkit2gtk",+ "webview2-com",+ "which 8.0.6",+ "windows 0.62.2",+ "xz2",+ "zip 8.6.0",+]++[[package]]+name = "libreget-cli"+version = "0.1.0"+dependencies = [+ "anyhow",+ "clap",+ "directories",+ "indicatif",+ "libreget-core",+ "serde",+ "serde_json",+ "tokio",+ "tokio-util",+ "tracing",+ "tracing-subscriber",+]++[[package]]+name = "libreget-core"+version = "0.2.16"+dependencies = [+ "aes 0.8.4",+ "anyhow",+ "async-trait",+ "base64 0.22.1",+ "cbc 0.1.2",+ "chrono",+ "dirs 6.0.0",+ "enigo",+ "filetime",+ "flate2",+ "fs4",+ "futures",+ "hex 0.4.3",+ "hmac",+ "htmd",+ "image",+ "kamadak-exif",+ "libloading 0.8.9",+ "lofty",+ "lopdf",+ "m3u8-rs",+ "md-5 0.10.6",+ "murmur3",+ "ndarray",+ "once_cell",+ "open",+ "ort",+ "qrcode",+ "rand 0.10.2",+ "regex",+ "reqwest 0.12.28",+ "rust_xlsxwriter",+ "sanitize-filename",+ "serde",+ "serde_json",+ "sha1 0.10.6",+ "sha2 0.10.9",+ "tar",+ "thiserror 1.0.69",+ "tokio",+ "tokio-tungstenite",+ "tokio-util",+ "tracing",+ "trash",+ "unicode-normalization",+ "url",+ "urlencoding",+ "uuid 1.21.0",+ "walkdir",+ "xz2",+ "zip 8.6.0",+]++[[package]]+name = "libreget-plugin-convert"+version = "1.0.3"+dependencies = [+ "anyhow",+ "libreget-core",+ "libreget-plugin-sdk",+ "serde",+ "serde_json",+ "tokio",+ "tokio-util",+ "tracing",+]++[[package]]+name = "libreget-plugin-courses"+version = "1.4.1"+dependencies = [+ "aes 0.8.4",+ "anyhow",+ "async-trait",+ "base64 0.22.1",+ "cbc 0.1.2",+ "chromiumoxide",+ "chrono",+ "dirs 6.0.0",+ "filetime",+ "futures",+ "libreget-core",+ "libreget-plugin-sdk",+ "m3u8-rs",+ "rand 0.10.2",+ "regex",+ "reqwest 0.12.28",+ "sanitize-filename",+ "scraper",+ "serde",+ "serde_json",+ "sha2 0.10.9",+ "tauri",+ "tokio",+ "tokio-util",+ "tracing",+ "unicode-normalization",+ "url",+ "urlencoding",+ "webview2-com",+ "windows-core 0.62.2",+]++[[package]]+name = "libreget-plugin-sdk"+version = "0.2.0"+dependencies = [+ "anyhow",+ "async-trait",+ "serde",+ "serde_json",+]++[[package]]+name = "libreget-plugin-telegram"+version = "1.2.1"+dependencies = [+ "anyhow",+ "async-trait",+ "base64 0.22.1",+ "chrono",+ "dirs 6.0.0",+ "filetime",+ "grammers-client",+ "grammers-mtsender",+ "grammers-session",+ "grammers-tl-types",+ "libreget-core",+ "libreget-plugin-sdk",+ "os_info",+ "qrcode",+ "reqwest 0.12.28",+ "sanitize-filename",+ "serde",+ "serde_json",+ "sys-locale",+ "tokio",+ "tokio-util",+ "tracing",+ "url",+]+[[package]]name = "librqbit"version = "8.1.1"@@ -5045,251 +5290,6 @@ dependencies = ["byteorder",]-[[package]]-name = "omniget"-version = "0.16.6"-dependencies = [- "aes 0.8.4",- "anyhow",- "async-trait",- "axum",- "base64 0.22.1",- "block2",- "cbc 0.1.2",- "chrono",- "constant_time_eq",- "dirs 6.0.0",- "discord-rich-presence",- "filetime",- "fs4",- "futures",- "hex 0.4.3",- "hmac",- "keepawake",- "keyring",- "libloading 0.8.9",- "librqbit",- "m3u8-rs",- "md-5 0.10.6",- "murmur3",- "native-tls",- "objc2",- "objc2-foundation",- "objc2-web-kit",- "omniget-core",- "omniget-plugin-convert",- "omniget-plugin-courses",- "omniget-plugin-sdk",- "omniget-plugin-telegram",- "once_cell",- "open",- "qrcode",- "rand 0.10.2",- "regex",- "reqwest 0.12.28",- "rusqlite",- "sanitize-filename",- "serde",- "serde_json",- "sha2 0.10.9",- "socket2 0.6.5",- "tar",- "tauri",- "tauri-build",- "tauri-plugin-autostart",- "tauri-plugin-clipboard-manager",- "tauri-plugin-deep-link",- "tauri-plugin-dialog",- "tauri-plugin-fs",- "tauri-plugin-global-shortcut",- "tauri-plugin-notification",- "tauri-plugin-process",- "tauri-plugin-shell",- "tauri-plugin-single-instance",- "tauri-plugin-store",- "tauri-plugin-updater",- "thiserror 1.0.69",- "tokio",- "tokio-tungstenite",- "tokio-util",- "tower-http",- "tracing",- "tracing-subscriber",- "unicode-normalization",- "url",- "urlencoding",- "uuid 1.21.0",- "webkit2gtk",- "webview2-com",- "which 8.0.6",- "windows 0.62.2",- "xz2",- "zip 8.6.0",-]--[[package]]-name = "omniget-cli"-version = "0.1.0"-dependencies = [- "anyhow",- "clap",- "directories",- "indicatif",- "omniget-core",- "serde",- "serde_json",- "tokio",- "tokio-util",- "tracing",- "tracing-subscriber",-]--[[package]]-name = "omniget-core"-version = "0.2.16"-dependencies = [- "aes 0.8.4",- "anyhow",- "async-trait",- "base64 0.22.1",- "cbc 0.1.2",- "chrono",- "dirs 6.0.0",- "enigo",- "filetime",- "flate2",- "fs4",- "futures",- "hex 0.4.3",- "hmac",- "htmd",- "image",- "kamadak-exif",- "libloading 0.8.9",- "lofty",- "lopdf",- "m3u8-rs",- "md-5 0.10.6",- "murmur3",- "ndarray",- "once_cell",- "open",- "ort",- "qrcode",- "rand 0.10.2",- "regex",- "reqwest 0.12.28",- "rust_xlsxwriter",- "sanitize-filename",- "serde",- "serde_json",- "sha1 0.10.6",- "sha2 0.10.9",- "tar",- "thiserror 1.0.69",- "tokio",- "tokio-tungstenite",- "tokio-util",- "tracing",- "trash",- "unicode-normalization",- "url",- "urlencoding",- "uuid 1.21.0",- "walkdir",- "xz2",- "zip 8.6.0",-]--[[package]]-name = "omniget-plugin-convert"-version = "1.0.3"-dependencies = [- "anyhow",- "omniget-core",- "omniget-plugin-sdk",- "serde",- "serde_json",- "tokio",- "tokio-util",- "tracing",-]--[[package]]-name = "omniget-plugin-courses"-version = "1.4.1"-dependencies = [- "aes 0.8.4",- "anyhow",- "async-trait",- "base64 0.22.1",- "cbc 0.1.2",- "chromiumoxide",- "chrono",- "dirs 6.0.0",- "filetime",- "futures",- "m3u8-rs",- "omniget-core",- "omniget-plugin-sdk",- "rand 0.10.2",- "regex",- "reqwest 0.12.28",- "sanitize-filename",- "scraper",- "serde",- "serde_json",- "sha2 0.10.9",- "tauri",- "tokio",- "tokio-util",- "tracing",- "unicode-normalization",- "url",- "urlencoding",- "webview2-com",- "windows-core 0.62.2",-]--[[package]]-name = "omniget-plugin-sdk"-version = "0.2.0"-dependencies = [- "anyhow",- "async-trait",- "serde",- "serde_json",-]--[[package]]-name = "omniget-plugin-telegram"-version = "1.2.1"-dependencies = [- "anyhow",- "async-trait",- "base64 0.22.1",- "chrono",- "dirs 6.0.0",- "filetime",- "grammers-client",- "grammers-mtsender",- "grammers-session",- "grammers-tl-types",- "omniget-core",- "omniget-plugin-sdk",- "os_info",- "qrcode",- "reqwest 0.12.28",- "sanitize-filename",- "serde",- "serde_json",- "sys-locale",- "tokio",- "tokio-util",- "tracing",- "url",-]-[[package]]name = "once_cell"version = "1.21.3"diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.tomlindex e39db2e5..b2c5405f 100644--- a/src-tauri/Cargo.toml+++ b/src-tauri/Cargo.toml@@ -1,9 +1,9 @@[workspace]members = [".",- "omniget-core",- "omniget-plugin-sdk",- "omniget-cli",+ "libreget-core",+ "libreget-plugin-sdk",+ "libreget-cli","plugins/convert","plugins/telegram","plugins/courses",@@ -12,14 +12,14 @@ members = [resolver = "2"[package]-name = "omniget"+name = "libreget"version = "0.16.6"-description = "OmniGet — Universal Downloader & Media Player"+description = "LibreGet — Universal Downloader & Media Player"authors = ["OpenSelena"]edition = "2021"[lib]-name = "omniget_lib"+name = "libreget_lib"crate-type = ["staticlib", "cdylib", "rlib"][build-dependencies]@@ -75,11 +75,11 @@ thiserror = "1"hmac = "0.12"qrcode = { version = "0.14", default-features = false, features = ["svg"] }open = "5"-omniget-core = { path = "omniget-core", features = ["desktop"] }-omniget-plugin-sdk = { path = "omniget-plugin-sdk" }-omniget-plugin-convert = { path = "plugins/convert" }-omniget-plugin-telegram = { path = "plugins/telegram" }-omniget-plugin-courses = { path = "plugins/courses" }+libreget-core = { path = "libreget-core", features = ["desktop"] }+libreget-plugin-sdk = { path = "libreget-plugin-sdk" }+libreget-plugin-convert = { path = "plugins/convert" }+libreget-plugin-telegram = { path = "plugins/telegram" }+libreget-plugin-courses = { path = "plugins/courses" }libloading = "0.8"which = "8"librqbit = "8.1.1"diff --git a/src-tauri/omniget-cli/Cargo.toml b/src-tauri/libreget-cli/Cargo.tomlsimilarity index 77%rename from src-tauri/omniget-cli/Cargo.tomlrename to src-tauri/libreget-cli/Cargo.tomlindex f71f7b26..839c922e 100644--- a/src-tauri/omniget-cli/Cargo.toml+++ b/src-tauri/libreget-cli/Cargo.toml@@ -1,11 +1,11 @@[package]-name = "omniget-cli"+name = "libreget-cli"version = "0.1.0"edition = "2021"-description = "CLI for Omniget media downloader"+description = "CLI for LibreGet media downloader"[dependencies]-omniget-core = { path = "../omniget-core" }+libreget-core = { path = "../libreget-core" }tokio = { version = "1", features = ["full"] }tokio-util = { version = "0.7", features = ["rt"] }clap = { version = "4", features = ["derive"] }diff --git a/src-tauri/omniget-cli/src/commands/archive.rs b/src-tauri/libreget-cli/src/commands/archive.rssimilarity index 97%rename from src-tauri/omniget-cli/src/commands/archive.rsrename to src-tauri/libreget-cli/src/commands/archive.rsindex 93730ba6..0adafe57 100644--- a/src-tauri/omniget-cli/src/commands/archive.rs+++ b/src-tauri/libreget-cli/src/commands/archive.rs@@ -9,8 +9,8 @@ use std::path::{Path, PathBuf};use std::sync::Arc;use anyhow::{bail, Context, Result};-use omniget_core::core::tools::yt_archive::{self, ArchiveResult, ItemStatus, Options};-use omniget_core::core::tools::{yt_dataset, ProgressFn, ToolProgress};+use libreget_core::core::tools::yt_archive::{self, ArchiveResult, ItemStatus, Options};+use libreget_core::core::tools::{yt_dataset, ProgressFn, ToolProgress};use serde_json::json;use crate::commands::common;diff --git a/src-tauri/omniget-cli/src/commands/batch.rs b/src-tauri/libreget-cli/src/commands/batch.rssimilarity index 100%rename from src-tauri/omniget-cli/src/commands/batch.rsrename to src-tauri/libreget-cli/src/commands/batch.rsdiff --git a/src-tauri/omniget-cli/src/commands/common.rs b/src-tauri/libreget-cli/src/commands/common.rssimilarity index 97%rename from src-tauri/omniget-cli/src/commands/common.rsrename to src-tauri/libreget-cli/src/commands/common.rsindex abb3e676..2beb5889 100644--- a/src-tauri/omniget-cli/src/commands/common.rs+++ b/src-tauri/libreget-cli/src/commands/common.rs@@ -2,12 +2,12 @@ use std::path::PathBuf;use std::sync::Arc;use anyhow::{anyhow, Context, Result};-use omniget_core::core::http_client;-use omniget_core::core::registry::PlatformRegistry;-use omniget_core::core::ytdlp;-use omniget_core::models::media::{DownloadOptions, MediaInfo};-use omniget_core::models::settings::ProxySettings;-use omniget_core::platforms::{+use libreget_core::core::http_client;+use libreget_core::core::registry::PlatformRegistry;+use libreget_core::core::ytdlp;+use libreget_core::models::media::{DownloadOptions, MediaInfo};+use libreget_core::models::settings::ProxySettings;+use libreget_core::platforms::{BilibiliDownloader, BlueskyDownloader, DirectFileDownloader, DouyinDownloader,GenericYtdlpDownloader, InstagramDownloader, P2pDownloader, PinterestDownloader,PlatformDownloader, RedditDownloader, ThreadsDownloader, TikTokDownloader,diff --git a/src-tauri/omniget-cli/src/commands/download.rs b/src-tauri/libreget-cli/src/commands/download.rssimilarity index 99%rename from src-tauri/omniget-cli/src/commands/download.rsrename to src-tauri/libreget-cli/src/commands/download.rsindex b55292dc..36716687 100644--- a/src-tauri/omniget-cli/src/commands/download.rs+++ b/src-tauri/libreget-cli/src/commands/download.rs@@ -3,7 +3,7 @@ use indicatif::{ProgressBar, ProgressStyle};use std::path::PathBuf;use tokio::sync::mpsc;-use omniget_core::models::progress::ProgressUpdate;+use libreget_core::models::progress::ProgressUpdate;use crate::commands::common;use crate::output;diff --git a/src-tauri/omniget-cli/src/commands/import_cookies.rs b/src-tauri/libreget-cli/src/commands/import_cookies.rssimilarity index 100%rename from src-tauri/omniget-cli/src/commands/import_cookies.rsrename to src-tauri/libreget-cli/src/commands/import_cookies.rsdiff --git a/src-tauri/omniget-cli/src/commands/info.rs b/src-tauri/libreget-cli/src/commands/info.rssimilarity index 100%rename from src-tauri/omniget-cli/src/commands/info.rsrename to src-tauri/libreget-cli/src/commands/info.rsdiff --git a/src-tauri/omniget-cli/src/commands/mod.rs b/src-tauri/libreget-cli/src/commands/mod.rssimilarity index 100%rename from src-tauri/omniget-cli/src/commands/mod.rsrename to src-tauri/libreget-cli/src/commands/mod.rsdiff --git a/src-tauri/omniget-cli/src/commands/search.rs b/src-tauri/libreget-cli/src/commands/search.rssimilarity index 97%rename from src-tauri/omniget-cli/src/commands/search.rsrename to src-tauri/libreget-cli/src/commands/search.rsindex 496b7f6d..19cabf92 100644--- a/src-tauri/omniget-cli/src/commands/search.rs+++ b/src-tauri/libreget-cli/src/commands/search.rs@@ -8,7 +8,7 @@use std::collections::HashSet;use anyhow::{bail, Context, Result};-use omniget_core::core::tools::yt_search::{self, SearchHit, SearchOptions};+use libreget_core::core::tools::yt_search::{self, SearchHit, SearchOptions};use crate::commands::common;use crate::output;diff --git a/src-tauri/omniget-cli/src/cookies.rs b/src-tauri/libreget-cli/src/cookies.rssimilarity index 97%rename from src-tauri/omniget-cli/src/cookies.rsrename to src-tauri/libreget-cli/src/cookies.rsindex 7f94b4d7..5cff9779 100644--- a/src-tauri/omniget-cli/src/cookies.rs+++ b/src-tauri/libreget-cli/src/cookies.rs@@ -2,8 +2,8 @@ use anyhow::{Context, Result};use std::collections::HashMap;use std::path::PathBuf;-use omniget_core::core::cookie_parser::parse_cookie_input;-use omniget_core::core::paths::app_data_dir;+use libreget_core::core::cookie_parser::parse_cookie_input;+use libreget_core::core::paths::app_data_dir;const COOKIES_DIR: &str = "cookies";const DEFAULT_COOKIE_FILE: &str = "cookies.txt";diff --git a/src-tauri/omniget-cli/src/main.rs b/src-tauri/libreget-cli/src/main.rssimilarity index 100%rename from src-tauri/omniget-cli/src/main.rsrename to src-tauri/libreget-cli/src/main.rsdiff --git a/src-tauri/omniget-cli/src/output.rs b/src-tauri/libreget-cli/src/output.rssimilarity index 100%rename from src-tauri/omniget-cli/src/output.rsrename to src-tauri/libreget-cli/src/output.rsdiff --git a/src-tauri/omniget-cli/src/reporter.rs b/src-tauri/libreget-cli/src/reporter.rssimilarity index 95%rename from src-tauri/omniget-cli/src/reporter.rsrename to src-tauri/libreget-cli/src/reporter.rsindex 2b666956..0ade1363 100644--- a/src-tauri/omniget-cli/src/reporter.rs+++ b/src-tauri/libreget-cli/src/reporter.rs@@ -4,9 +4,9 @@ use anyhow::Result;use indicatif::{ProgressBar, ProgressStyle};use std::path::PathBuf;-use omniget_core::core::dependencies::find_tool;-use omniget_core::core::paths::app_data_dir;-use omniget_core::models::progress::ProgressUpdate;+use libreget_core::core::dependencies::find_tool;+use libreget_core::core::paths::app_data_dir;+use libreget_core::models::progress::ProgressUpdate;const SPINNER_STYLE: &str = "{spinner:.cyan} {msg:.dim}";const PROGRESS_STYLE: &str = "{spinner:.cyan} [{elapsed_precise}] [{bar:40.cyan/blue}] {bytes}/{total_bytes} ({bytes_per_sec}, ETA {eta})";diff --git a/src-tauri/omniget-core/Cargo.toml b/src-tauri/libreget-core/Cargo.tomlsimilarity index 98%rename from src-tauri/omniget-core/Cargo.tomlrename to src-tauri/libreget-core/Cargo.tomlindex 8d3b6472..5f8a89c1 100644--- a/src-tauri/omniget-core/Cargo.toml+++ b/src-tauri/libreget-core/Cargo.toml@@ -1,10 +1,10 @@[package]-name = "omniget-core"+name = "libreget-core"version = "0.2.16"edition = "2021"[lib]-name = "omniget_core"+name = "libreget_core"[features]default = ["desktop"]diff --git a/src-tauri/omniget-core/src/core/adaptive_concurrency.rs b/src-tauri/libreget-core/src/core/adaptive_concurrency.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/adaptive_concurrency.rsrename to src-tauri/libreget-core/src/core/adaptive_concurrency.rsdiff --git a/src-tauri/omniget-core/src/core/ai.rs b/src-tauri/libreget-core/src/core/ai.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/ai.rsrename to src-tauri/libreget-core/src/core/ai.rsdiff --git a/src-tauri/omniget-core/src/core/binary_overrides.rs b/src-tauri/libreget-core/src/core/binary_overrides.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/binary_overrides.rsrename to src-tauri/libreget-core/src/core/binary_overrides.rsdiff --git a/src-tauri/omniget-core/src/core/clipboard.rs b/src-tauri/libreget-core/src/core/clipboard.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/clipboard.rsrename to src-tauri/libreget-core/src/core/clipboard.rsdiff --git a/src-tauri/omniget-core/src/core/cookie_parser.rs b/src-tauri/libreget-core/src/core/cookie_parser.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/cookie_parser.rsrename to src-tauri/libreget-core/src/core/cookie_parser.rsdiff --git a/src-tauri/omniget-core/src/core/course_utils.rs b/src-tauri/libreget-core/src/core/course_utils.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/course_utils.rsrename to src-tauri/libreget-core/src/core/course_utils.rsdiff --git a/src-tauri/omniget-core/src/core/dependencies.rs b/src-tauri/libreget-core/src/core/dependencies.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/dependencies.rsrename to src-tauri/libreget-core/src/core/dependencies.rsdiff --git a/src-tauri/omniget-core/src/core/direct_downloader.rs b/src-tauri/libreget-core/src/core/direct_downloader.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/direct_downloader.rsrename to src-tauri/libreget-core/src/core/direct_downloader.rsdiff --git a/src-tauri/omniget-core/src/core/errors.rs b/src-tauri/libreget-core/src/core/errors.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/errors.rsrename to src-tauri/libreget-core/src/core/errors.rsdiff --git a/src-tauri/omniget-core/src/core/events.rs b/src-tauri/libreget-core/src/core/events.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/events.rsrename to src-tauri/libreget-core/src/core/events.rsdiff --git a/src-tauri/omniget-core/src/core/extension_manifest.rs b/src-tauri/libreget-core/src/core/extension_manifest.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/extension_manifest.rsrename to src-tauri/libreget-core/src/core/extension_manifest.rsdiff --git a/src-tauri/omniget-core/src/core/ffmpeg.rs b/src-tauri/libreget-core/src/core/ffmpeg.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/ffmpeg.rsrename to src-tauri/libreget-core/src/core/ffmpeg.rsdiff --git a/src-tauri/omniget-core/src/core/ffmpeg_ops.rs b/src-tauri/libreget-core/src/core/ffmpeg_ops.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/ffmpeg_ops.rsrename to src-tauri/libreget-core/src/core/ffmpeg_ops.rsdiff --git a/src-tauri/omniget-core/src/core/filename.rs b/src-tauri/libreget-core/src/core/filename.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/filename.rsrename to src-tauri/libreget-core/src/core/filename.rsdiff --git a/src-tauri/omniget-core/src/core/hls_downloader.rs b/src-tauri/libreget-core/src/core/hls_downloader.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/hls_downloader.rsrename to src-tauri/libreget-core/src/core/hls_downloader.rsdiff --git a/src-tauri/omniget-core/src/core/http_client.rs b/src-tauri/libreget-core/src/core/http_client.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/http_client.rsrename to src-tauri/libreget-core/src/core/http_client.rsdiff --git a/src-tauri/omniget-core/src/core/http_fetcher.rs b/src-tauri/libreget-core/src/core/http_fetcher.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/http_fetcher.rsrename to src-tauri/libreget-core/src/core/http_fetcher.rsdiff --git a/src-tauri/omniget-core/src/core/hwaccel.rs b/src-tauri/libreget-core/src/core/hwaccel.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/hwaccel.rsrename to src-tauri/libreget-core/src/core/hwaccel.rsdiff --git a/src-tauri/omniget-core/src/core/impersonation.rs b/src-tauri/libreget-core/src/core/impersonation.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/impersonation.rsrename to src-tauri/libreget-core/src/core/impersonation.rsdiff --git a/src-tauri/omniget-core/src/core/livechat.rs b/src-tauri/libreget-core/src/core/livechat.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/livechat.rsrename to src-tauri/libreget-core/src/core/livechat.rsdiff --git a/src-tauri/omniget-core/src/core/log_hook.rs b/src-tauri/libreget-core/src/core/log_hook.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/log_hook.rsrename to src-tauri/libreget-core/src/core/log_hook.rsdiff --git a/src-tauri/omniget-core/src/core/media_processor.rs b/src-tauri/libreget-core/src/core/media_processor.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/media_processor.rsrename to src-tauri/libreget-core/src/core/media_processor.rsdiff --git a/src-tauri/omniget-core/src/core/media_signature.rs b/src-tauri/libreget-core/src/core/media_signature.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/media_signature.rsrename to src-tauri/libreget-core/src/core/media_signature.rsdiff --git a/src-tauri/omniget-core/src/core/mod.rs b/src-tauri/libreget-core/src/core/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/mod.rsrename to src-tauri/libreget-core/src/core/mod.rsdiff --git a/src-tauri/omniget-core/src/core/onnxrt.rs b/src-tauri/libreget-core/src/core/onnxrt.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/onnxrt.rsrename to src-tauri/libreget-core/src/core/onnxrt.rsdiff --git a/src-tauri/omniget-core/src/core/paths.rs b/src-tauri/libreget-core/src/core/paths.rssimilarity index 85%rename from src-tauri/omniget-core/src/core/paths.rsrename to src-tauri/libreget-core/src/core/paths.rsindex 8c4b081c..ac429358 100644--- a/src-tauri/omniget-core/src/core/paths.rs+++ b/src-tauri/libreget-core/src/core/paths.rs@@ -1,11 +1,11 @@pub fn app_data_dir() -> Option<std::path::PathBuf> {- if let Ok(dir) = std::env::var("OMNIGET_DATA_DIR") {+ if let Ok(dir) = std::env::var("LIBREGET_DATA_DIR").or_else(|_| std::env::var("OMNIGET_DATA_DIR")) {return Some(std::path::PathBuf::from(dir));}let base = dirs::data_dir()?;- let new_path = base.join("com.openselena.omniget");- let legacy_paths = [base.join("omniget")];+ 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() {diff --git a/src-tauri/omniget-core/src/core/pdfium.rs b/src-tauri/libreget-core/src/core/pdfium.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/pdfium.rsrename to src-tauri/libreget-core/src/core/pdfium.rsdiff --git a/src-tauri/omniget-core/src/core/pokemon_names.rs b/src-tauri/libreget-core/src/core/pokemon_names.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/pokemon_names.rsrename to src-tauri/libreget-core/src/core/pokemon_names.rsdiff --git a/src-tauri/omniget-core/src/core/pot_provider.rs b/src-tauri/libreget-core/src/core/pot_provider.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/pot_provider.rsrename to src-tauri/libreget-core/src/core/pot_provider.rsdiff --git a/src-tauri/omniget-core/src/core/process.rs b/src-tauri/libreget-core/src/core/process.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/process.rsrename to src-tauri/libreget-core/src/core/process.rsdiff --git a/src-tauri/omniget-core/src/core/redirect.rs b/src-tauri/libreget-core/src/core/redirect.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/redirect.rsrename to src-tauri/libreget-core/src/core/redirect.rsdiff --git a/src-tauri/omniget-core/src/core/registry.rs b/src-tauri/libreget-core/src/core/registry.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/registry.rsrename to src-tauri/libreget-core/src/core/registry.rsdiff --git a/src-tauri/omniget-core/src/core/shell_words.rs b/src-tauri/libreget-core/src/core/shell_words.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/shell_words.rsrename to src-tauri/libreget-core/src/core/shell_words.rsdiff --git a/src-tauri/omniget-core/src/core/spicetify.rs b/src-tauri/libreget-core/src/core/spicetify.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/spicetify.rsrename to src-tauri/libreget-core/src/core/spicetify.rsdiff --git a/src-tauri/omniget-core/src/core/subtitle_merge.rs b/src-tauri/libreget-core/src/core/subtitle_merge.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/subtitle_merge.rsrename to src-tauri/libreget-core/src/core/subtitle_merge.rsdiff --git a/src-tauri/omniget-core/src/core/tools/ai_keys.rs b/src-tauri/libreget-core/src/core/tools/ai_keys.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/ai_keys.rsrename to src-tauri/libreget-core/src/core/tools/ai_keys.rsdiff --git a/src-tauri/omniget-core/src/core/tools/ai_tokens.rs b/src-tauri/libreget-core/src/core/tools/ai_tokens.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/ai_tokens.rsrename to src-tauri/libreget-core/src/core/tools/ai_tokens.rsdiff --git a/src-tauri/omniget-core/src/core/tools/aria2.rs b/src-tauri/libreget-core/src/core/tools/aria2.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/aria2.rsrename to src-tauri/libreget-core/src/core/tools/aria2.rsdiff --git a/src-tauri/omniget-core/src/core/tools/arxiv.rs b/src-tauri/libreget-core/src/core/tools/arxiv.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/arxiv.rsrename to src-tauri/libreget-core/src/core/tools/arxiv.rsdiff --git a/src-tauri/omniget-core/src/core/tools/audio_clean.rs b/src-tauri/libreget-core/src/core/tools/audio_clean.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/audio_clean.rsrename to src-tauri/libreget-core/src/core/tools/audio_clean.rsdiff --git a/src-tauri/omniget-core/src/core/tools/audio_tag.rs b/src-tauri/libreget-core/src/core/tools/audio_tag.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/audio_tag.rsrename to src-tauri/libreget-core/src/core/tools/audio_tag.rsdiff --git a/src-tauri/omniget-core/src/core/tools/autoclick.rs b/src-tauri/libreget-core/src/core/tools/autoclick.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/autoclick.rsrename to src-tauri/libreget-core/src/core/tools/autoclick.rsdiff --git a/src-tauri/omniget-core/src/core/tools/blogs/medium.rs b/src-tauri/libreget-core/src/core/tools/blogs/medium.rssimilarity index 99%rename from src-tauri/omniget-core/src/core/tools/blogs/medium.rsrename to src-tauri/libreget-core/src/core/tools/blogs/medium.rsindex 64f3d641..b11f44f6 100644--- a/src-tauri/omniget-core/src/core/tools/blogs/medium.rs+++ b/src-tauri/libreget-core/src/core/tools/blogs/medium.rs@@ -1056,7 +1056,7 @@ mod tests {#[tokio::test]#[ignore = "sessao: lista as historias e rascunhos da conta logada (precisa dos cookies de medium.com)"]async fn sessao_lista_historias_e_rascunhos() {- let path = std::env::var("OMNIGET_MEDIUM_COOKIES").expect("OMNIGET_MEDIUM_COOKIES");+ let path = std::env::var("LIBREGET_MEDIUM_COOKIES").expect("LIBREGET_MEDIUM_COOKIES");let content = std::fs::read_to_string(path).expect("arquivo netscape");let f = Fetcher::new(1200, Some(&content), &["medium.com".to_string()]).expect("cliente");assert!(f.has_session(), "nenhum cookie de medium.com no arquivo");diff --git a/src-tauri/omniget-core/src/core/tools/blogs/mod.rs b/src-tauri/libreget-core/src/core/tools/blogs/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/blogs/mod.rsrename to src-tauri/libreget-core/src/core/tools/blogs/mod.rsdiff --git a/src-tauri/omniget-core/src/core/tools/blogs/substack.rs b/src-tauri/libreget-core/src/core/tools/blogs/substack.rssimilarity index 99%rename from src-tauri/omniget-core/src/core/tools/blogs/substack.rsrename to src-tauri/libreget-core/src/core/tools/blogs/substack.rsindex 774a3310..06fc685f 100644--- a/src-tauri/omniget-core/src/core/tools/blogs/substack.rs+++ b/src-tauri/libreget-core/src/core/tools/blogs/substack.rs@@ -775,7 +775,7 @@ mod tests {#[tokio::test]#[ignore = "sessao: lista as assinaturas da conta logada (precisa dos cookies de substack.com)"]async fn sessao_lista_assinaturas() {- let path = std::env::var("OMNIGET_SUBSTACK_COOKIES").expect("OMNIGET_SUBSTACK_COOKIES");+ let path = std::env::var("LIBREGET_SUBSTACK_COOKIES").expect("LIBREGET_SUBSTACK_COOKIES");let content = std::fs::read_to_string(path).expect("arquivo netscape");let f = Fetcher::new(1200, Some(&content), &["substack.com".to_string()]).expect("cliente");assert!(f.has_session(), "nenhum cookie de substack.com no arquivo");diff --git a/src-tauri/omniget-core/src/core/tools/calameo.rs b/src-tauri/libreget-core/src/core/tools/calameo.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/calameo.rsrename to src-tauri/libreget-core/src/core/tools/calameo.rsdiff --git a/src-tauri/omniget-core/src/core/tools/ctf/analysis.rs b/src-tauri/libreget-core/src/core/tools/ctf/analysis.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/ctf/analysis.rsrename to src-tauri/libreget-core/src/core/tools/ctf/analysis.rsdiff --git a/src-tauri/omniget-core/src/core/tools/ctf/ciphers.rs b/src-tauri/libreget-core/src/core/tools/ctf/ciphers.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/ctf/ciphers.rsrename to src-tauri/libreget-core/src/core/tools/ctf/ciphers.rsdiff --git a/src-tauri/omniget-core/src/core/tools/ctf/encoding.rs b/src-tauri/libreget-core/src/core/tools/ctf/encoding.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/ctf/encoding.rsrename to src-tauri/libreget-core/src/core/tools/ctf/encoding.rsdiff --git a/src-tauri/omniget-core/src/core/tools/ctf/hashes.rs b/src-tauri/libreget-core/src/core/tools/ctf/hashes.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/ctf/hashes.rsrename to src-tauri/libreget-core/src/core/tools/ctf/hashes.rsdiff --git a/src-tauri/omniget-core/src/core/tools/ctf/magic.rs b/src-tauri/libreget-core/src/core/tools/ctf/magic.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/ctf/magic.rsrename to src-tauri/libreget-core/src/core/tools/ctf/magic.rsdiff --git a/src-tauri/omniget-core/src/core/tools/ctf/mod.rs b/src-tauri/libreget-core/src/core/tools/ctf/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/ctf/mod.rsrename to src-tauri/libreget-core/src/core/tools/ctf/mod.rsdiff --git a/src-tauri/omniget-core/src/core/tools/ctf/xor.rs b/src-tauri/libreget-core/src/core/tools/ctf/xor.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/ctf/xor.rsrename to src-tauri/libreget-core/src/core/tools/ctf/xor.rsdiff --git a/src-tauri/omniget-core/src/core/tools/dictation.rs b/src-tauri/libreget-core/src/core/tools/dictation.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/dictation.rsrename to src-tauri/libreget-core/src/core/tools/dictation.rsdiff --git a/src-tauri/omniget-core/src/core/tools/disk.rs b/src-tauri/libreget-core/src/core/tools/disk.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/disk.rsrename to src-tauri/libreget-core/src/core/tools/disk.rsdiff --git a/src-tauri/omniget-core/src/core/tools/dub.rs b/src-tauri/libreget-core/src/core/tools/dub.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/dub.rsrename to src-tauri/libreget-core/src/core/tools/dub.rsdiff --git a/src-tauri/omniget-core/src/core/tools/dupes.rs b/src-tauri/libreget-core/src/core/tools/dupes.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/dupes.rsrename to src-tauri/libreget-core/src/core/tools/dupes.rsdiff --git a/src-tauri/omniget-core/src/core/tools/edge_tts.rs b/src-tauri/libreget-core/src/core/tools/edge_tts.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/edge_tts.rsrename to src-tauri/libreget-core/src/core/tools/edge_tts.rsdiff --git a/src-tauri/omniget-core/src/core/tools/exif.rs b/src-tauri/libreget-core/src/core/tools/exif.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/exif.rsrename to src-tauri/libreget-core/src/core/tools/exif.rsdiff --git a/src-tauri/omniget-core/src/core/tools/file_search.rs b/src-tauri/libreget-core/src/core/tools/file_search.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/file_search.rsrename to src-tauri/libreget-core/src/core/tools/file_search.rsdiff --git a/src-tauri/omniget-core/src/core/tools/gallery.rs b/src-tauri/libreget-core/src/core/tools/gallery.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/gallery.rsrename to src-tauri/libreget-core/src/core/tools/gallery.rsdiff --git a/src-tauri/omniget-core/src/core/tools/games/clip_organizer.rs b/src-tauri/libreget-core/src/core/tools/games/clip_organizer.rssimilarity index 99%rename from src-tauri/omniget-core/src/core/tools/games/clip_organizer.rsrename to src-tauri/libreget-core/src/core/tools/games/clip_organizer.rsindex 590894b6..fdcbe35a 100644--- a/src-tauri/omniget-core/src/core/tools/games/clip_organizer.rs+++ b/src-tauri/libreget-core/src/core/tools/games/clip_organizer.rs@@ -514,7 +514,7 @@ mod tests {fn tempdir(tag: &str) -> PathBuf {let d =- std::env::temp_dir().join(format!("omniget-clips-{}-{}", tag, uuid::Uuid::new_v4()));+ std::env::temp_dir().join(format!("libreget-clips-{}-{}", tag, uuid::Uuid::new_v4()));std::fs::create_dir_all(&d).expect("criar tempdir");d}diff --git a/src-tauri/omniget-core/src/core/tools/games/mod.rs b/src-tauri/libreget-core/src/core/tools/games/mod.rssimilarity index 98%rename from src-tauri/omniget-core/src/core/tools/games/mod.rsrename to src-tauri/libreget-core/src/core/tools/games/mod.rsindex 0532e104..17f85f39 100644--- a/src-tauri/omniget-core/src/core/tools/games/mod.rs+++ b/src-tauri/libreget-core/src/core/tools/games/mod.rs@@ -18,7 +18,7 @@ use serde::Serialize;/// Nome do arquivo de índice que fica na raiz da biblioteca de destino. É o/// que evita reler (e re-hashear) a biblioteca inteira a cada importação.-pub const INDEX_FILE: &str = ".omniget-import-index.txt";+pub const INDEX_FILE: &str = ".libreget-import-index.txt";/// Uma linha do relatório: o que aconteceu com um arquivo de origem.#[derive(Debug, Clone, Serialize)]@@ -256,7 +256,7 @@ mod tests {fn tempdir(tag: &str) -> PathBuf {let d =- std::env::temp_dir().join(format!("omniget-games-{}-{}", tag, uuid::Uuid::new_v4()));+ std::env::temp_dir().join(format!("libreget-games-{}-{}", tag, uuid::Uuid::new_v4()));std::fs::create_dir_all(&d).expect("criar tempdir de teste");d}diff --git a/src-tauri/omniget-core/src/core/tools/games/protondb.rs b/src-tauri/libreget-core/src/core/tools/games/protondb.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/games/protondb.rsrename to src-tauri/libreget-core/src/core/tools/games/protondb.rsdiff --git a/src-tauri/omniget-core/src/core/tools/games/steam.rs b/src-tauri/libreget-core/src/core/tools/games/steam.rssimilarity index 99%rename from src-tauri/omniget-core/src/core/tools/games/steam.rsrename to src-tauri/libreget-core/src/core/tools/games/steam.rsindex 7099f516..69789fc6 100644--- a/src-tauri/omniget-core/src/core/tools/games/steam.rs+++ b/src-tauri/libreget-core/src/core/tools/games/steam.rs@@ -512,7 +512,7 @@ mod tests {#[test]fn scan_reads_a_synthetic_library() {- let dir = std::env::temp_dir().join(format!("omniget-steamlib-{}", uuid::Uuid::new_v4()));+ let dir = std::env::temp_dir().join(format!("libreget-steamlib-{}", uuid::Uuid::new_v4()));let lib = dir.join("steamapps");std::fs::create_dir_all(&lib).expect("criar biblioteca");std::fs::write(manifest_path(&lib, 570), ACF).expect("escrever manifesto");diff --git a/src-tauri/omniget-core/src/core/tools/games/switch-games.tsv b/src-tauri/libreget-core/src/core/tools/games/switch-games.tsvsimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/games/switch-games.tsvrename to src-tauri/libreget-core/src/core/tools/games/switch-games.tsvdiff --git a/src-tauri/omniget-core/src/core/tools/games/switch_album.rs b/src-tauri/libreget-core/src/core/tools/games/switch_album.rssimilarity index 99%rename from src-tauri/omniget-core/src/core/tools/games/switch_album.rsrename to src-tauri/libreget-core/src/core/tools/games/switch_album.rsindex d56dda03..dea7a2c7 100644--- a/src-tauri/omniget-core/src/core/tools/games/switch_album.rs+++ b/src-tauri/libreget-core/src/core/tools/games/switch_album.rs@@ -473,7 +473,7 @@ mod tests {fn tempdir(tag: &str) -> PathBuf {let d =- std::env::temp_dir().join(format!("omniget-switch-{}-{}", tag, uuid::Uuid::new_v4()));+ std::env::temp_dir().join(format!("libreget-switch-{}-{}", tag, uuid::Uuid::new_v4()));std::fs::create_dir_all(&d).expect("criar tempdir");d}diff --git a/src-tauri/omniget-core/src/core/tools/gdocs.rs b/src-tauri/libreget-core/src/core/tools/gdocs.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/gdocs.rsrename to src-tauri/libreget-core/src/core/tools/gdocs.rsdiff --git a/src-tauri/omniget-core/src/core/tools/github.rs b/src-tauri/libreget-core/src/core/tools/github.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/github.rsrename to src-tauri/libreget-core/src/core/tools/github.rsdiff --git a/src-tauri/omniget-core/src/core/tools/hosts_block.rs b/src-tauri/libreget-core/src/core/tools/hosts_block.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/hosts_block.rsrename to src-tauri/libreget-core/src/core/tools/hosts_block.rsdiff --git a/src-tauri/omniget-core/src/core/tools/humanize.rs b/src-tauri/libreget-core/src/core/tools/humanize.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/humanize.rsrename to src-tauri/libreget-core/src/core/tools/humanize.rsdiff --git a/src-tauri/omniget-core/src/core/tools/humanizer_skill.txt b/src-tauri/libreget-core/src/core/tools/humanizer_skill.txtsimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/humanizer_skill.txtrename to src-tauri/libreget-core/src/core/tools/humanizer_skill.txtdiff --git a/src-tauri/omniget-core/src/core/tools/icon_pack.rs b/src-tauri/libreget-core/src/core/tools/icon_pack.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/icon_pack.rsrename to src-tauri/libreget-core/src/core/tools/icon_pack.rsdiff --git a/src-tauri/omniget-core/src/core/tools/image_compress.rs b/src-tauri/libreget-core/src/core/tools/image_compress.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/image_compress.rsrename to src-tauri/libreget-core/src/core/tools/image_compress.rsdiff --git a/src-tauri/omniget-core/src/core/tools/image_dupes.rs b/src-tauri/libreget-core/src/core/tools/image_dupes.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/image_dupes.rsrename to src-tauri/libreget-core/src/core/tools/image_dupes.rsdiff --git a/src-tauri/omniget-core/src/core/tools/image_resize.rs b/src-tauri/libreget-core/src/core/tools/image_resize.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/image_resize.rsrename to src-tauri/libreget-core/src/core/tools/image_resize.rsdiff --git a/src-tauri/omniget-core/src/core/tools/image_sprite.rs b/src-tauri/libreget-core/src/core/tools/image_sprite.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/image_sprite.rsrename to src-tauri/libreget-core/src/core/tools/image_sprite.rsdiff --git a/src-tauri/omniget-core/src/core/tools/image_stitch.rs b/src-tauri/libreget-core/src/core/tools/image_stitch.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/image_stitch.rsrename to src-tauri/libreget-core/src/core/tools/image_stitch.rsdiff --git a/src-tauri/omniget-core/src/core/tools/img_bg.rs b/src-tauri/libreget-core/src/core/tools/img_bg.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/img_bg.rsrename to src-tauri/libreget-core/src/core/tools/img_bg.rsdiff --git a/src-tauri/omniget-core/src/core/tools/instagram/analytics.rs b/src-tauri/libreget-core/src/core/tools/instagram/analytics.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/instagram/analytics.rsrename to src-tauri/libreget-core/src/core/tools/instagram/analytics.rsdiff --git a/src-tauri/omniget-core/src/core/tools/instagram/follow.rs b/src-tauri/libreget-core/src/core/tools/instagram/follow.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/instagram/follow.rsrename to src-tauri/libreget-core/src/core/tools/instagram/follow.rsdiff --git a/src-tauri/omniget-core/src/core/tools/instagram/media.rs b/src-tauri/libreget-core/src/core/tools/instagram/media.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/instagram/media.rsrename to src-tauri/libreget-core/src/core/tools/instagram/media.rsdiff --git a/src-tauri/omniget-core/src/core/tools/instagram/mod.rs b/src-tauri/libreget-core/src/core/tools/instagram/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/instagram/mod.rsrename to src-tauri/libreget-core/src/core/tools/instagram/mod.rsdiff --git a/src-tauri/omniget-core/src/core/tools/instagram/profile.rs b/src-tauri/libreget-core/src/core/tools/instagram/profile.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/instagram/profile.rsrename to src-tauri/libreget-core/src/core/tools/instagram/profile.rsdiff --git a/src-tauri/omniget-core/src/core/tools/instagram/publish.rs b/src-tauri/libreget-core/src/core/tools/instagram/publish.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/instagram/publish.rsrename to src-tauri/libreget-core/src/core/tools/instagram/publish.rsdiff --git a/src-tauri/omniget-core/src/core/tools/instagram/social.rs b/src-tauri/libreget-core/src/core/tools/instagram/social.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/instagram/social.rsrename to src-tauri/libreget-core/src/core/tools/instagram/social.rsdiff --git a/src-tauri/omniget-core/src/core/tools/jpeg_pdf.rs b/src-tauri/libreget-core/src/core/tools/jpeg_pdf.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/jpeg_pdf.rsrename to src-tauri/libreget-core/src/core/tools/jpeg_pdf.rsdiff --git a/src-tauri/omniget-core/src/core/tools/kdeconnect.rs b/src-tauri/libreget-core/src/core/tools/kdeconnect.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/kdeconnect.rsrename to src-tauri/libreget-core/src/core/tools/kdeconnect.rsdiff --git a/src-tauri/omniget-core/src/core/tools/linkedin/checklist.rs b/src-tauri/libreget-core/src/core/tools/linkedin/checklist.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/linkedin/checklist.rsrename to src-tauri/libreget-core/src/core/tools/linkedin/checklist.rsdiff --git a/src-tauri/omniget-core/src/core/tools/linkedin/connections.rs b/src-tauri/libreget-core/src/core/tools/linkedin/connections.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/linkedin/connections.rsrename to src-tauri/libreget-core/src/core/tools/linkedin/connections.rsdiff --git a/src-tauri/omniget-core/src/core/tools/linkedin/csv.rs b/src-tauri/libreget-core/src/core/tools/linkedin/csv.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/linkedin/csv.rsrename to src-tauri/libreget-core/src/core/tools/linkedin/csv.rsdiff --git a/src-tauri/omniget-core/src/core/tools/linkedin/messages.rs b/src-tauri/libreget-core/src/core/tools/linkedin/messages.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/linkedin/messages.rsrename to src-tauri/libreget-core/src/core/tools/linkedin/messages.rsdiff --git a/src-tauri/omniget-core/src/core/tools/linkedin/mod.rs b/src-tauri/libreget-core/src/core/tools/linkedin/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/linkedin/mod.rsrename to src-tauri/libreget-core/src/core/tools/linkedin/mod.rsdiff --git a/src-tauri/omniget-core/src/core/tools/linkedin/overview.rs b/src-tauri/libreget-core/src/core/tools/linkedin/overview.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/linkedin/overview.rsrename to src-tauri/libreget-core/src/core/tools/linkedin/overview.rsdiff --git a/src-tauri/omniget-core/src/core/tools/linkedin/source.rs b/src-tauri/libreget-core/src/core/tools/linkedin/source.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/linkedin/source.rsrename to src-tauri/libreget-core/src/core/tools/linkedin/source.rsdiff --git a/src-tauri/omniget-core/src/core/tools/lists/goodreads.rs b/src-tauri/libreget-core/src/core/tools/lists/goodreads.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/lists/goodreads.rsrename to src-tauri/libreget-core/src/core/tools/lists/goodreads.rsdiff --git a/src-tauri/omniget-core/src/core/tools/lists/letterboxd.rs b/src-tauri/libreget-core/src/core/tools/lists/letterboxd.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/lists/letterboxd.rsrename to src-tauri/libreget-core/src/core/tools/lists/letterboxd.rsdiff --git a/src-tauri/omniget-core/src/core/tools/lists/merge.rs b/src-tauri/libreget-core/src/core/tools/lists/merge.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/lists/merge.rsrename to src-tauri/libreget-core/src/core/tools/lists/merge.rsdiff --git a/src-tauri/omniget-core/src/core/tools/lists/mod.rs b/src-tauri/libreget-core/src/core/tools/lists/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/lists/mod.rsrename to src-tauri/libreget-core/src/core/tools/lists/mod.rsdiff --git a/src-tauri/omniget-core/src/core/tools/lists/trakt.rs b/src-tauri/libreget-core/src/core/tools/lists/trakt.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/lists/trakt.rsrename to src-tauri/libreget-core/src/core/tools/lists/trakt.rsdiff --git a/src-tauri/omniget-core/src/core/tools/manifest_dl.rs b/src-tauri/libreget-core/src/core/tools/manifest_dl.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/manifest_dl.rsrename to src-tauri/libreget-core/src/core/tools/manifest_dl.rsdiff --git a/src-tauri/omniget-core/src/core/tools/mod.rs b/src-tauri/libreget-core/src/core/tools/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/mod.rsrename to src-tauri/libreget-core/src/core/tools/mod.rsdiff --git a/src-tauri/omniget-core/src/core/tools/music/history.rs b/src-tauri/libreget-core/src/core/tools/music/history.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/music/history.rsrename to src-tauri/libreget-core/src/core/tools/music/history.rsdiff --git a/src-tauri/omniget-core/src/core/tools/music/lyrics.rs b/src-tauri/libreget-core/src/core/tools/music/lyrics.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/music/lyrics.rsrename to src-tauri/libreget-core/src/core/tools/music/lyrics.rsdiff --git a/src-tauri/omniget-core/src/core/tools/music/mod.rs b/src-tauri/libreget-core/src/core/tools/music/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/music/mod.rsrename to src-tauri/libreget-core/src/core/tools/music/mod.rsdiff --git a/src-tauri/omniget-core/src/core/tools/music/norm.rs b/src-tauri/libreget-core/src/core/tools/music/norm.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/music/norm.rsrename to src-tauri/libreget-core/src/core/tools/music/norm.rsdiff --git a/src-tauri/omniget-core/src/core/tools/music/playlist.rs b/src-tauri/libreget-core/src/core/tools/music/playlist.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/music/playlist.rsrename to src-tauri/libreget-core/src/core/tools/music/playlist.rsdiff --git a/src-tauri/omniget-core/src/core/tools/ocr.rs b/src-tauri/libreget-core/src/core/tools/ocr.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/ocr.rsrename to src-tauri/libreget-core/src/core/tools/ocr.rsdiff --git a/src-tauri/omniget-core/src/core/tools/ollama.rs b/src-tauri/libreget-core/src/core/tools/ollama.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/ollama.rsrename to src-tauri/libreget-core/src/core/tools/ollama.rsdiff --git a/src-tauri/omniget-core/src/core/tools/onnx.rs b/src-tauri/libreget-core/src/core/tools/onnx.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/onnx.rsrename to src-tauri/libreget-core/src/core/tools/onnx.rsdiff --git a/src-tauri/omniget-core/src/core/tools/pdf.rs b/src-tauri/libreget-core/src/core/tools/pdf.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/pdf.rsrename to src-tauri/libreget-core/src/core/tools/pdf.rsdiff --git a/src-tauri/omniget-core/src/core/tools/pdf_form.rs b/src-tauri/libreget-core/src/core/tools/pdf_form.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/pdf_form.rsrename to src-tauri/libreget-core/src/core/tools/pdf_form.rsdiff --git a/src-tauri/omniget-core/src/core/tools/pdf_markdown.rs b/src-tauri/libreget-core/src/core/tools/pdf_markdown.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/pdf_markdown.rsrename to src-tauri/libreget-core/src/core/tools/pdf_markdown.rsdiff --git a/src-tauri/omniget-core/src/core/tools/pdf_redact.rs b/src-tauri/libreget-core/src/core/tools/pdf_redact.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/pdf_redact.rsrename to src-tauri/libreget-core/src/core/tools/pdf_redact.rsdiff --git a/src-tauri/omniget-core/src/core/tools/pdf_repair.rs b/src-tauri/libreget-core/src/core/tools/pdf_repair.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/pdf_repair.rsrename to src-tauri/libreget-core/src/core/tools/pdf_repair.rsdiff --git a/src-tauri/omniget-core/src/core/tools/pdf_table.rs b/src-tauri/libreget-core/src/core/tools/pdf_table.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/pdf_table.rsrename to src-tauri/libreget-core/src/core/tools/pdf_table.rsdiff --git a/src-tauri/omniget-core/src/core/tools/pdf_write.rs b/src-tauri/libreget-core/src/core/tools/pdf_write.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/pdf_write.rsrename to src-tauri/libreget-core/src/core/tools/pdf_write.rsdiff --git a/src-tauri/omniget-core/src/core/tools/pinterest/analysis.rs b/src-tauri/libreget-core/src/core/tools/pinterest/analysis.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/pinterest/analysis.rsrename to src-tauri/libreget-core/src/core/tools/pinterest/analysis.rsdiff --git a/src-tauri/omniget-core/src/core/tools/pinterest/api.rs b/src-tauri/libreget-core/src/core/tools/pinterest/api.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/pinterest/api.rsrename to src-tauri/libreget-core/src/core/tools/pinterest/api.rsdiff --git a/src-tauri/omniget-core/src/core/tools/pinterest/export.rs b/src-tauri/libreget-core/src/core/tools/pinterest/export.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/pinterest/export.rsrename to src-tauri/libreget-core/src/core/tools/pinterest/export.rsdiff --git a/src-tauri/omniget-core/src/core/tools/pinterest/media.rs b/src-tauri/libreget-core/src/core/tools/pinterest/media.rssimilarity index 99%rename from src-tauri/omniget-core/src/core/tools/pinterest/media.rsrename to src-tauri/libreget-core/src/core/tools/pinterest/media.rsindex 72c49c35..6466eb7e 100644--- a/src-tauri/omniget-core/src/core/tools/pinterest/media.rs+++ b/src-tauri/libreget-core/src/core/tools/pinterest/media.rs@@ -29,7 +29,7 @@ pub struct DownloadOptions {/// gravar `<arquivo>.json` ao lado#[serde(default)]pub sidecar: bool,- /// pular pins já registrados em `.omniget-pinterest.txt` na pasta+ /// pular pins já registrados em `.libreget-pinterest.txt` na pasta#[serde(default = "t")]pub skip_downloaded: bool,/// subpasta por seção (backup de board)@@ -52,7 +52,7 @@ pub struct PinFiles {pub error: Option<String>,}-pub const ARCHIVE: &str = ".omniget-pinterest.txt";+pub const ARCHIVE: &str = ".libreget-pinterest.txt";pub fn load_archive(dest: &Path) -> HashSet<String> {std::fs::read_to_string(dest.join(ARCHIVE))diff --git a/src-tauri/omniget-core/src/core/tools/pinterest/mod.rs b/src-tauri/libreget-core/src/core/tools/pinterest/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/pinterest/mod.rsrename to src-tauri/libreget-core/src/core/tools/pinterest/mod.rsdiff --git a/src-tauri/omniget-core/src/core/tools/pricing.rs b/src-tauri/libreget-core/src/core/tools/pricing.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/pricing.rsrename to src-tauri/libreget-core/src/core/tools/pricing.rsdiff --git a/src-tauri/omniget-core/src/core/tools/reddit/download.rs b/src-tauri/libreget-core/src/core/tools/reddit/download.rssimilarity index 99%rename from src-tauri/omniget-core/src/core/tools/reddit/download.rsrename to src-tauri/libreget-core/src/core/tools/reddit/download.rsindex 29291640..d71b66c0 100644--- a/src-tauri/omniget-core/src/core/tools/reddit/download.rs+++ b/src-tauri/libreget-core/src/core/tools/reddit/download.rs@@ -327,7 +327,7 @@ pub fn base_name(info: &PostInfo) -> String {// ───────────────────────── yt-dlp ─────────────────────────-const MARK: &str = "OMNIGET_FILEPATH:";+const MARK: &str = "LIBREGET_FILEPATH:";/// Argumentos do yt-dlp para um post. Separado para o teste conferir sem/// precisar do binário.@@ -755,7 +755,7 @@ mod tests {assert!(joined.contains("--merge-output-format mp4"));assert!(joined.contains("bv*+ba/b"));assert!(joined.contains("--ffmpeg-location /opt/ffmpeg"));- assert!(joined.contains("after_move:OMNIGET_FILEPATH:%(filepath)s"));+ assert!(joined.contains("after_move:LIBREGET_FILEPATH:%(filepath)s"));let template = dest.join("Titulo [aa1].%(ext)s");assert!(args.contains(&template.to_string_lossy().to_string()));assert_eq!(@@ -800,7 +800,7 @@ mod tests {#[tokio::test]#[ignore = "rede + yt-dlp: baixa um video de verdade do v.redd.it"]async fn baixa_um_video_de_verdade() {- let dir = std::env::temp_dir().join("omniget-rddl-live-video");+ let dir = std::env::temp_dir().join("libreget-rddl-live-video");let _ = std::fs::create_dir_all(&dir);let opts = Options {url: "https://www.reddit.com/r/aww/comments/1wbshkl/foster_kitten_playing_with_fire/"@@ -825,7 +825,7 @@ mod tests {#[tokio::test]#[ignore = "rede: baixa uma galeria de verdade do i.redd.it"]async fn baixa_uma_galeria_de_verdade() {- let dir = std::env::temp_dir().join("omniget-rddl-live-galeria");+ let dir = std::env::temp_dir().join("libreget-rddl-live-galeria");let _ = std::fs::create_dir_all(&dir);let opts = Options {url: "https://www.reddit.com/r/aww/comments/1wbksg3/".to_string(),diff --git a/src-tauri/omniget-core/src/core/tools/reddit/gdpr.rs b/src-tauri/libreget-core/src/core/tools/reddit/gdpr.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/reddit/gdpr.rsrename to src-tauri/libreget-core/src/core/tools/reddit/gdpr.rsdiff --git a/src-tauri/omniget-core/src/core/tools/reddit/mod.rs b/src-tauri/libreget-core/src/core/tools/reddit/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/reddit/mod.rsrename to src-tauri/libreget-core/src/core/tools/reddit/mod.rsdiff --git a/src-tauri/omniget-core/src/core/tools/reddit/thread.rs b/src-tauri/libreget-core/src/core/tools/reddit/thread.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/reddit/thread.rsrename to src-tauri/libreget-core/src/core/tools/reddit/thread.rsdiff --git a/src-tauri/omniget-core/src/core/tools/rename.rs b/src-tauri/libreget-core/src/core/tools/rename.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/rename.rsrename to src-tauri/libreget-core/src/core/tools/rename.rsdiff --git a/src-tauri/omniget-core/src/core/tools/ryd.rs b/src-tauri/libreget-core/src/core/tools/ryd.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/ryd.rsrename to src-tauri/libreget-core/src/core/tools/ryd.rsdiff --git a/src-tauri/omniget-core/src/core/tools/screen_record.rs b/src-tauri/libreget-core/src/core/tools/screen_record.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/screen_record.rsrename to src-tauri/libreget-core/src/core/tools/screen_record.rsdiff --git a/src-tauri/omniget-core/src/core/tools/shred.rs b/src-tauri/libreget-core/src/core/tools/shred.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/shred.rsrename to src-tauri/libreget-core/src/core/tools/shred.rsdiff --git a/src-tauri/omniget-core/src/core/tools/silence_cut.rs b/src-tauri/libreget-core/src/core/tools/silence_cut.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/silence_cut.rsrename to src-tauri/libreget-core/src/core/tools/silence_cut.rsdiff --git a/src-tauri/omniget-core/src/core/tools/slides.rs b/src-tauri/libreget-core/src/core/tools/slides.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/slides.rsrename to src-tauri/libreget-core/src/core/tools/slides.rsdiff --git a/src-tauri/omniget-core/src/core/tools/sponsorblock.rs b/src-tauri/libreget-core/src/core/tools/sponsorblock.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/sponsorblock.rsrename to src-tauri/libreget-core/src/core/tools/sponsorblock.rsdiff --git a/src-tauri/omniget-core/src/core/tools/srt_translate.rs b/src-tauri/libreget-core/src/core/tools/srt_translate.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/srt_translate.rsrename to src-tauri/libreget-core/src/core/tools/srt_translate.rsdiff --git a/src-tauri/omniget-core/src/core/tools/startup.rs b/src-tauri/libreget-core/src/core/tools/startup.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/startup.rsrename to src-tauri/libreget-core/src/core/tools/startup.rsdiff --git a/src-tauri/omniget-core/src/core/tools/sticker.rs b/src-tauri/libreget-core/src/core/tools/sticker.rssimilarity index 99%rename from src-tauri/omniget-core/src/core/tools/sticker.rsrename to src-tauri/libreget-core/src/core/tools/sticker.rsindex d62b4274..2dcf03a3 100644--- a/src-tauri/omniget-core/src/core/tools/sticker.rs+++ b/src-tauri/libreget-core/src/core/tools/sticker.rs@@ -949,7 +949,7 @@ mod tests {output_dir: saida.to_string_lossy().to_string(),pack: true,pack_name: "Teste".into(),- pack_author: "OmniGet".into(),+ pack_author: "LibreGet".into(),emoji: "😀".into(),},crate::core::tools::noop_progress(),diff --git a/src-tauri/omniget-core/src/core/tools/subtitle.rs b/src-tauri/libreget-core/src/core/tools/subtitle.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/subtitle.rsrename to src-tauri/libreget-core/src/core/tools/subtitle.rsdiff --git a/src-tauri/omniget-core/src/core/tools/sysclean.rs b/src-tauri/libreget-core/src/core/tools/sysclean.rssimilarity index 99%rename from src-tauri/omniget-core/src/core/tools/sysclean.rsrename to src-tauri/libreget-core/src/core/tools/sysclean.rsindex 3bf1a191..e9e7a297 100644--- a/src-tauri/omniget-core/src/core/tools/sysclean.rs+++ b/src-tauri/libreget-core/src/core/tools/sysclean.rs@@ -68,7 +68,7 @@ const DEFS: &[Def] = &[d("adobe", "apps", "Adobe (Media Cache)", "review", &["~/Library/Application Support/Adobe/Common/Media Cache Files", "~/Library/Application Support/Adobe/Common/Media Cache", "~/Library/Application Support/Adobe/Common/Peak Files"]),d("telegram", "apps", "Telegram", "review", &["~/Library/Group Containers/6N38VWS5BX.ru.keepcoder.Telegram/appstore/account-*/postbox/media", "~/Library/Application Support/Telegram Desktop/tdata/user_data/cache"]),d("whatsapp", "apps", "WhatsApp", "safe", &["~/Library/Group Containers/group.net.whatsapp.WhatsApp.shared/Message/Media/tmp", "~/Library/Containers/net.whatsapp.WhatsApp/Data/Library/Caches"]),- d("omniget-tmp", "apps", "OmniGet (temporários das tools)", "safe", &["~/Library/Application Support/com.openselena.omniget/tools/tmp"]),+ d("omniget-tmp", "apps", "OmniGet (temporários das tools)", "safe", &["~/Library/Application Support/com.openselena.libreget/tools/tmp"]),d("xcode-derived", "dev", "Xcode DerivedData", "safe", &["~/Library/Developer/Xcode/DerivedData"]),d("xcode-device-support", "dev", "Xcode iOS DeviceSupport", "review", &["~/Library/Developer/Xcode/iOS DeviceSupport", "~/Library/Developer/Xcode/watchOS DeviceSupport", "~/Library/Developer/Xcode/tvOS DeviceSupport"]),d("simulator-caches", "dev", "Simulator caches", "safe", &["~/Library/Developer/CoreSimulator/Caches"]),@@ -343,7 +343,7 @@ const DEFS: &[Def] = &["apps","OmniGet (temporários das tools)","safe",- &["%APPDATA%\\com.openselena.omniget\\tools\\tmp"],+ &["%APPDATA%\\com.openselena.libreget\\tools\\tmp"],),d("npm",@@ -621,8 +621,8 @@ const DEFS: &[Def] = &["OmniGet (temporários das tools)","safe",&[- "~/.local/share/com.openselena.omniget/tools/tmp",- "~/.var/app/com.openselena.omniget/data/com.openselena.omniget/tools/tmp",+ "~/.local/share/com.openselena.libreget/tools/tmp",+ "~/.var/app/com.openselena.libreget/data/com.openselena.libreget/tools/tmp",],),d(diff --git a/src-tauri/omniget-core/src/core/tools/tiktok/download.rs b/src-tauri/libreget-core/src/core/tools/tiktok/download.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/tiktok/download.rsrename to src-tauri/libreget-core/src/core/tools/tiktok/download.rsdiff --git a/src-tauri/omniget-core/src/core/tools/tiktok/favorites.rs b/src-tauri/libreget-core/src/core/tools/tiktok/favorites.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/tiktok/favorites.rsrename to src-tauri/libreget-core/src/core/tools/tiktok/favorites.rsdiff --git a/src-tauri/omniget-core/src/core/tools/tiktok/mod.rs b/src-tauri/libreget-core/src/core/tools/tiktok/mod.rssimilarity index 99%rename from src-tauri/omniget-core/src/core/tools/tiktok/mod.rsrename to src-tauri/libreget-core/src/core/tools/tiktok/mod.rsindex cdc16386..4cf6e27f 100644--- a/src-tauri/omniget-core/src/core/tools/tiktok/mod.rs+++ b/src-tauri/libreget-core/src/core/tools/tiktok/mod.rs@@ -32,7 +32,7 @@ use crate::core::tools::{report, ProgressFn};pub const DOMAIN: &str = "tiktok.com";/// Marcador que o yt-dlp imprime com o caminho final de cada arquivo.-pub const MARK: &str = "OMNIGET_FILEPATH:";+pub const MARK: &str = "LIBREGET_FILEPATH:";// ───────────────────────── leitura de link ─────────────────────────diff --git a/src-tauri/omniget-core/src/core/tools/tiktok/sound.rs b/src-tauri/libreget-core/src/core/tools/tiktok/sound.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/tiktok/sound.rsrename to src-tauri/libreget-core/src/core/tools/tiktok/sound.rsdiff --git a/src-tauri/omniget-core/src/core/tools/tumblr/art.rs b/src-tauri/libreget-core/src/core/tools/tumblr/art.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/tumblr/art.rsrename to src-tauri/libreget-core/src/core/tools/tumblr/art.rsdiff --git a/src-tauri/omniget-core/src/core/tools/tumblr/backup.rs b/src-tauri/libreget-core/src/core/tools/tumblr/backup.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/tumblr/backup.rsrename to src-tauri/libreget-core/src/core/tools/tumblr/backup.rsdiff --git a/src-tauri/omniget-core/src/core/tools/tumblr/gdl.rs b/src-tauri/libreget-core/src/core/tools/tumblr/gdl.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/tumblr/gdl.rsrename to src-tauri/libreget-core/src/core/tools/tumblr/gdl.rsdiff --git a/src-tauri/omniget-core/src/core/tools/tumblr/likes.rs b/src-tauri/libreget-core/src/core/tools/tumblr/likes.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/tumblr/likes.rsrename to src-tauri/libreget-core/src/core/tools/tumblr/likes.rsdiff --git a/src-tauri/omniget-core/src/core/tools/tumblr/mod.rs b/src-tauri/libreget-core/src/core/tools/tumblr/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/tumblr/mod.rsrename to src-tauri/libreget-core/src/core/tools/tumblr/mod.rsdiff --git a/src-tauri/omniget-core/src/core/tools/twitch/chat.rs b/src-tauri/libreget-core/src/core/tools/twitch/chat.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/twitch/chat.rsrename to src-tauri/libreget-core/src/core/tools/twitch/chat.rsdiff --git a/src-tauri/omniget-core/src/core/tools/twitch/emotes.rs b/src-tauri/libreget-core/src/core/tools/twitch/emotes.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/twitch/emotes.rsrename to src-tauri/libreget-core/src/core/tools/twitch/emotes.rsdiff --git a/src-tauri/omniget-core/src/core/tools/twitch/gql.rs b/src-tauri/libreget-core/src/core/tools/twitch/gql.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/twitch/gql.rsrename to src-tauri/libreget-core/src/core/tools/twitch/gql.rsdiff --git a/src-tauri/omniget-core/src/core/tools/twitch/mod.rs b/src-tauri/libreget-core/src/core/tools/twitch/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/twitch/mod.rsrename to src-tauri/libreget-core/src/core/tools/twitch/mod.rsdiff --git a/src-tauri/omniget-core/src/core/tools/uninstall.rs b/src-tauri/libreget-core/src/core/tools/uninstall.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/uninstall.rsrename to src-tauri/libreget-core/src/core/tools/uninstall.rsdiff --git a/src-tauri/omniget-core/src/core/tools/upscale.rs b/src-tauri/libreget-core/src/core/tools/upscale.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/upscale.rsrename to src-tauri/libreget-core/src/core/tools/upscale.rsdiff --git a/src-tauri/omniget-core/src/core/tools/usage.rs b/src-tauri/libreget-core/src/core/tools/usage.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/usage.rsrename to src-tauri/libreget-core/src/core/tools/usage.rsdiff --git a/src-tauri/omniget-core/src/core/tools/video_compress.rs b/src-tauri/libreget-core/src/core/tools/video_compress.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/video_compress.rsrename to src-tauri/libreget-core/src/core/tools/video_compress.rsdiff --git a/src-tauri/omniget-core/src/core/tools/video_gif.rs b/src-tauri/libreget-core/src/core/tools/video_gif.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/video_gif.rsrename to src-tauri/libreget-core/src/core/tools/video_gif.rsdiff --git a/src-tauri/omniget-core/src/core/tools/video_restore.rs b/src-tauri/libreget-core/src/core/tools/video_restore.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/video_restore.rsrename to src-tauri/libreget-core/src/core/tools/video_restore.rsdiff --git a/src-tauri/omniget-core/src/core/tools/vimeo.rs b/src-tauri/libreget-core/src/core/tools/vimeo.rssimilarity index 99%rename from src-tauri/omniget-core/src/core/tools/vimeo.rsrename to src-tauri/libreget-core/src/core/tools/vimeo.rsindex cfef7643..945af6ed 100644--- a/src-tauri/omniget-core/src/core/tools/vimeo.rs+++ b/src-tauri/libreget-core/src/core/tools/vimeo.rs@@ -28,7 +28,7 @@ const ID_SHOWCASE: &str = "vm-showcase";/// Marcadores do `--print` do yt-dlp: é assim que sabemos o arquivo final e o/// título sem ter que adivinhar a extensão.-const MARK_FILE: &str = "OMNIGET_FILEPATH:";+const MARK_FILE: &str = "LIBREGET_FILEPATH:";const MARK_META: &str = "OMNIGET_META:";/// Extensões que contam como "já baixado" na hora de retomar.diff --git a/src-tauri/omniget-core/src/core/tools/voicestudio.rs b/src-tauri/libreget-core/src/core/tools/voicestudio.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/voicestudio.rsrename to src-tauri/libreget-core/src/core/tools/voicestudio.rsdiff --git a/src-tauri/omniget-core/src/core/tools/whisper.rs b/src-tauri/libreget-core/src/core/tools/whisper.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/whisper.rsrename to src-tauri/libreget-core/src/core/tools/whisper.rsdiff --git a/src-tauri/omniget-core/src/core/tools/win_apps.rs b/src-tauri/libreget-core/src/core/tools/win_apps.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/win_apps.rsrename to src-tauri/libreget-core/src/core/tools/win_apps.rsdiff --git a/src-tauri/omniget-core/src/core/tools/win_registry.rs b/src-tauri/libreget-core/src/core/tools/win_registry.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/win_registry.rsrename to src-tauri/libreget-core/src/core/tools/win_registry.rsdiff --git a/src-tauri/omniget-core/src/core/tools/win_tweaks.rs b/src-tauri/libreget-core/src/core/tools/win_tweaks.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/win_tweaks.rsrename to src-tauri/libreget-core/src/core/tools/win_tweaks.rsdiff --git a/src-tauri/omniget-core/src/core/tools/win_updater.rs b/src-tauri/libreget-core/src/core/tools/win_updater.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/win_updater.rsrename to src-tauri/libreget-core/src/core/tools/win_updater.rsdiff --git a/src-tauri/omniget-core/src/core/tools/x/archive.rs b/src-tauri/libreget-core/src/core/tools/x/archive.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/x/archive.rsrename to src-tauri/libreget-core/src/core/tools/x/archive.rsdiff --git a/src-tauri/omniget-core/src/core/tools/x/bookmarks.rs b/src-tauri/libreget-core/src/core/tools/x/bookmarks.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/x/bookmarks.rsrename to src-tauri/libreget-core/src/core/tools/x/bookmarks.rsdiff --git a/src-tauri/omniget-core/src/core/tools/x/client.rs b/src-tauri/libreget-core/src/core/tools/x/client.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/x/client.rsrename to src-tauri/libreget-core/src/core/tools/x/client.rsdiff --git a/src-tauri/omniget-core/src/core/tools/x/export.rs b/src-tauri/libreget-core/src/core/tools/x/export.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/x/export.rsrename to src-tauri/libreget-core/src/core/tools/x/export.rsdiff --git a/src-tauri/omniget-core/src/core/tools/x/follows.rs b/src-tauri/libreget-core/src/core/tools/x/follows.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/x/follows.rsrename to src-tauri/libreget-core/src/core/tools/x/follows.rsdiff --git a/src-tauri/omniget-core/src/core/tools/x/fx.rs b/src-tauri/libreget-core/src/core/tools/x/fx.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/x/fx.rsrename to src-tauri/libreget-core/src/core/tools/x/fx.rsdiff --git a/src-tauri/omniget-core/src/core/tools/x/grok.rs b/src-tauri/libreget-core/src/core/tools/x/grok.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/x/grok.rsrename to src-tauri/libreget-core/src/core/tools/x/grok.rsdiff --git a/src-tauri/omniget-core/src/core/tools/x/media.rs b/src-tauri/libreget-core/src/core/tools/x/media.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/x/media.rsrename to src-tauri/libreget-core/src/core/tools/x/media.rsdiff --git a/src-tauri/omniget-core/src/core/tools/x/mod.rs b/src-tauri/libreget-core/src/core/tools/x/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/x/mod.rsrename to src-tauri/libreget-core/src/core/tools/x/mod.rsdiff --git a/src-tauri/omniget-core/src/core/tools/x/parse.rs b/src-tauri/libreget-core/src/core/tools/x/parse.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/x/parse.rsrename to src-tauri/libreget-core/src/core/tools/x/parse.rsdiff --git a/src-tauri/omniget-core/src/core/tools/x/profile.rs b/src-tauri/libreget-core/src/core/tools/x/profile.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/x/profile.rsrename to src-tauri/libreget-core/src/core/tools/x/profile.rsdiff --git a/src-tauri/omniget-core/src/core/tools/x/query_ids.rs b/src-tauri/libreget-core/src/core/tools/x/query_ids.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/x/query_ids.rsrename to src-tauri/libreget-core/src/core/tools/x/query_ids.rsdiff --git a/src-tauri/omniget-core/src/core/tools/x/search.rs b/src-tauri/libreget-core/src/core/tools/x/search.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/x/search.rsrename to src-tauri/libreget-core/src/core/tools/x/search.rsdiff --git a/src-tauri/omniget-core/src/core/tools/x/thread.rs b/src-tauri/libreget-core/src/core/tools/x/thread.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/x/thread.rsrename to src-tauri/libreget-core/src/core/tools/x/thread.rsdiff --git a/src-tauri/omniget-core/src/core/tools/x/txid.rs b/src-tauri/libreget-core/src/core/tools/x/txid.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/x/txid.rsrename to src-tauri/libreget-core/src/core/tools/x/txid.rsdiff --git a/src-tauri/omniget-core/src/core/tools/yt_archive.rs b/src-tauri/libreget-core/src/core/tools/yt_archive.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/yt_archive.rsrename to src-tauri/libreget-core/src/core/tools/yt_archive.rsdiff --git a/src-tauri/omniget-core/src/core/tools/yt_chapters.rs b/src-tauri/libreget-core/src/core/tools/yt_chapters.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/yt_chapters.rsrename to src-tauri/libreget-core/src/core/tools/yt_chapters.rsdiff --git a/src-tauri/omniget-core/src/core/tools/yt_dataset.rs b/src-tauri/libreget-core/src/core/tools/yt_dataset.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/yt_dataset.rsrename to src-tauri/libreget-core/src/core/tools/yt_dataset.rsdiff --git a/src-tauri/omniget-core/src/core/tools/yt_notes.rs b/src-tauri/libreget-core/src/core/tools/yt_notes.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/yt_notes.rsrename to src-tauri/libreget-core/src/core/tools/yt_notes.rsdiff --git a/src-tauri/omniget-core/src/core/tools/yt_search.rs b/src-tauri/libreget-core/src/core/tools/yt_search.rssimilarity index 100%rename from src-tauri/omniget-core/src/core/tools/yt_search.rsrename to src-tauri/libreget-core/src/core/tools/yt_search.rsdiff --git a/src-tauri/omniget-core/src/core/ytdlp.rs b/src-tauri/libreget-core/src/core/ytdlp.rssimilarity index 99%rename from src-tauri/omniget-core/src/core/ytdlp.rsrename to src-tauri/libreget-core/src/core/ytdlp.rsindex 05e8fae2..7dd5abb6 100644--- a/src-tauri/omniget-core/src/core/ytdlp.rs+++ b/src-tauri/libreget-core/src/core/ytdlp.rs@@ -309,7 +309,7 @@ fn record_command(display_parts.push(program_name.clone());display_parts.extend(redacted.iter().cloned());let display = super::shell_words::join(&display_parts);- log_hook::emit_log(id, &format!("[omniget] $ {display}"));+ log_hook::emit_log(id, &format!("[libreget] $ {display}"));let rec = CommandRecord {program: program_name,args: redacted,@@ -453,7 +453,7 @@ pub(crate) fn prepare_override_args(.any(|a| a.starts_with("after_move:OMNIGET_FILEPATH")){args.push("--print".to_string());- args.push("after_move:OMNIGET_FILEPATH:%(filepath)s".to_string());+ args.push("after_move:LIBREGET_FILEPATH:%(filepath)s".to_string());}let has_output = ["-o", "--output", "-P", "--paths"].iter()@@ -1346,7 +1346,7 @@ pub fn ytdlp_slots_available() -> usize {}/// Espera uma vaga para lançar um yt-dlp. A espera vai para o log do download-/// (`[omniget] waiting for a yt-dlp slot`) para a demora ter explicação.+/// (`[libreget] waiting for a yt-dlp slot`) para a demora ter explicação.pub async fn acquire_ytdlp_slot(what: &str) -> tokio::sync::OwnedSemaphorePermit {let sem = ytdlp_slots();if let Ok(permit) = sem.clone().try_acquire_owned() {@@ -1358,7 +1358,7 @@ pub async fn acquire_ytdlp_slot(what: &str) -> tokio::sync::OwnedSemaphorePermitif let Some(id) = dl_id {log_hook::emit_log(id,- &format!("[omniget] waiting for a yt-dlp slot ({})", what),+ &format!("[libreget] waiting for a yt-dlp slot ({})", what),);}let permit = sem@@ -1371,7 +1371,7 @@ pub async fn acquire_ytdlp_slot(what: &str) -> tokio::sync::OwnedSemaphorePermitlog_hook::emit_log(id,&format!(- "[omniget] yt-dlp slot acquired after {:.1}s",+ "[libreget] yt-dlp slot acquired after {:.1}s",waited.as_secs_f64()),);@@ -3324,7 +3324,7 @@ pub async fn download_video(// parsing of progress / Destination / Merger lines — so explicitly// restore verbose output and progress below."--print".to_string(),- "after_move:OMNIGET_FILEPATH:%(filepath)s".to_string(),+ "after_move:LIBREGET_FILEPATH:%(filepath)s".to_string(),"--no-quiet".to_string(),"--progress".to_string(),];@@ -3876,7 +3876,7 @@ pub async fn download_video(if let Some(id) = log_hook::current_download_id() {log_hook::emit_log(id,- "[omniget] the source is missing or broken; not retrying",+ "[libreget] the source is missing or broken; not retrying",);}break;@@ -4215,7 +4215,7 @@ fn spawn_stdout_reader(_timer_start.elapsed());}- if let Some(rest) = 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;@@ -6285,7 +6285,7 @@ ERROR: [youtube] abc123: Requested format is not available";/// Teste de ponta a ponta contra o yt-dlp gerido, ignorado por padrão porque/// depende de rede e do binário local. Rodar com:-/// `OMNIGET_YTDLP=~/Library/Application\ Support/com.openselena.omniget/bin/yt-dlp cargo test -p omniget-core --features desktop -- --ignored e2e_download_reports_streams --nocapture`+/// `OMNIGET_YTDLP=~/Library/Application\ Support/com.openselena.libreget/bin/yt-dlp cargo test -p omniget-core --features desktop -- --ignored e2e_download_reports_streams --nocapture`#[cfg(test)]mod e2e {#[tokio::test]@@ -6334,7 +6334,7 @@ mod e2e {let log = lines.lock().unwrap().clone();println!("--- log lines: {}", log.len());for l in log.iter().filter(|l| {- l.starts_with("[omniget] $")+ l.starts_with("[libreget] $")|| l.contains("format(s)")|| l.contains("Total fragments")|| l.contains("Destination")diff --git a/src-tauri/omniget-core/src/fs_paths.rs b/src-tauri/libreget-core/src/fs_paths.rssimilarity index 100%rename from src-tauri/omniget-core/src/fs_paths.rsrename to src-tauri/libreget-core/src/fs_paths.rsdiff --git a/src-tauri/omniget-core/src/lib.rs b/src-tauri/libreget-core/src/lib.rssimilarity index 100%rename from src-tauri/omniget-core/src/lib.rsrename to src-tauri/libreget-core/src/lib.rsdiff --git a/src-tauri/omniget-core/src/models/download.rs b/src-tauri/libreget-core/src/models/download.rssimilarity index 100%rename from src-tauri/omniget-core/src/models/download.rsrename to src-tauri/libreget-core/src/models/download.rsdiff --git a/src-tauri/omniget-core/src/models/media.rs b/src-tauri/libreget-core/src/models/media.rssimilarity index 100%rename from src-tauri/omniget-core/src/models/media.rsrename to src-tauri/libreget-core/src/models/media.rsdiff --git a/src-tauri/omniget-core/src/models/mod.rs b/src-tauri/libreget-core/src/models/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/models/mod.rsrename to src-tauri/libreget-core/src/models/mod.rsdiff --git a/src-tauri/omniget-core/src/models/progress.rs b/src-tauri/libreget-core/src/models/progress.rssimilarity index 100%rename from src-tauri/omniget-core/src/models/progress.rsrename to src-tauri/libreget-core/src/models/progress.rsdiff --git a/src-tauri/omniget-core/src/models/settings.rs b/src-tauri/libreget-core/src/models/settings.rssimilarity index 100%rename from src-tauri/omniget-core/src/models/settings.rsrename to src-tauri/libreget-core/src/models/settings.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/api.rs b/src-tauri/libreget-core/src/platforms/bilibili/api.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/api.rsrename to src-tauri/libreget-core/src/platforms/bilibili/api.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/auth/captcha.rs b/src-tauri/libreget-core/src/platforms/bilibili/auth/captcha.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/auth/captcha.rsrename to src-tauri/libreget-core/src/platforms/bilibili/auth/captcha.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/auth/mod.rs b/src-tauri/libreget-core/src/platforms/bilibili/auth/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/auth/mod.rsrename to src-tauri/libreget-core/src/platforms/bilibili/auth/mod.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/auth/qr.rs b/src-tauri/libreget-core/src/platforms/bilibili/auth/qr.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/auth/qr.rsrename to src-tauri/libreget-core/src/platforms/bilibili/auth/qr.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/auth/sms.rs b/src-tauri/libreget-core/src/platforms/bilibili/auth/sms.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/auth/sms.rsrename to src-tauri/libreget-core/src/platforms/bilibili/auth/sms.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/cdn.rs b/src-tauri/libreget-core/src/platforms/bilibili/cdn.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/cdn.rsrename to src-tauri/libreget-core/src/platforms/bilibili/cdn.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/cookie.rs b/src-tauri/libreget-core/src/platforms/bilibili/cookie.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/cookie.rsrename to src-tauri/libreget-core/src/platforms/bilibili/cookie.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/cover.rs b/src-tauri/libreget-core/src/platforms/bilibili/cover.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/cover.rsrename to src-tauri/libreget-core/src/platforms/bilibili/cover.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/danmaku/ass/lanes.rs b/src-tauri/libreget-core/src/platforms/bilibili/danmaku/ass/lanes.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/danmaku/ass/lanes.rsrename to src-tauri/libreget-core/src/platforms/bilibili/danmaku/ass/lanes.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/danmaku/ass/mod.rs b/src-tauri/libreget-core/src/platforms/bilibili/danmaku/ass/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/danmaku/ass/mod.rsrename to src-tauri/libreget-core/src/platforms/bilibili/danmaku/ass/mod.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/danmaku/ass/render.rs b/src-tauri/libreget-core/src/platforms/bilibili/danmaku/ass/render.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/danmaku/ass/render.rsrename to src-tauri/libreget-core/src/platforms/bilibili/danmaku/ass/render.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/danmaku/json.rs b/src-tauri/libreget-core/src/platforms/bilibili/danmaku/json.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/danmaku/json.rsrename to src-tauri/libreget-core/src/platforms/bilibili/danmaku/json.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/danmaku/mod.rs b/src-tauri/libreget-core/src/platforms/bilibili/danmaku/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/danmaku/mod.rsrename to src-tauri/libreget-core/src/platforms/bilibili/danmaku/mod.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/danmaku/proto.rs b/src-tauri/libreget-core/src/platforms/bilibili/danmaku/proto.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/danmaku/proto.rsrename to src-tauri/libreget-core/src/platforms/bilibili/danmaku/proto.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/danmaku/xml.rs b/src-tauri/libreget-core/src/platforms/bilibili/danmaku/xml.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/danmaku/xml.rsrename to src-tauri/libreget-core/src/platforms/bilibili/danmaku/xml.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/engine/fetch.rs b/src-tauri/libreget-core/src/platforms/bilibili/engine/fetch.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/engine/fetch.rsrename to src-tauri/libreget-core/src/platforms/bilibili/engine/fetch.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/engine/mod.rs b/src-tauri/libreget-core/src/platforms/bilibili/engine/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/engine/mod.rsrename to src-tauri/libreget-core/src/platforms/bilibili/engine/mod.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/engine/mux.rs b/src-tauri/libreget-core/src/platforms/bilibili/engine/mux.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/engine/mux.rsrename to src-tauri/libreget-core/src/platforms/bilibili/engine/mux.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/engine/query.rs b/src-tauri/libreget-core/src/platforms/bilibili/engine/query.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/engine/query.rsrename to src-tauri/libreget-core/src/platforms/bilibili/engine/query.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/legacy.rs b/src-tauri/libreget-core/src/platforms/bilibili/legacy.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/legacy.rsrename to src-tauri/libreget-core/src/platforms/bilibili/legacy.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/mod.rs b/src-tauri/libreget-core/src/platforms/bilibili/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/mod.rsrename to src-tauri/libreget-core/src/platforms/bilibili/mod.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/naming.rs b/src-tauri/libreget-core/src/platforms/bilibili/naming.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/naming.rsrename to src-tauri/libreget-core/src/platforms/bilibili/naming.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/nfo.rs b/src-tauri/libreget-core/src/platforms/bilibili/nfo.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/nfo.rsrename to src-tauri/libreget-core/src/platforms/bilibili/nfo.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/notify.rs b/src-tauri/libreget-core/src/platforms/bilibili/notify.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/notify.rsrename to src-tauri/libreget-core/src/platforms/bilibili/notify.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/parser/bangumi.rs b/src-tauri/libreget-core/src/platforms/bilibili/parser/bangumi.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/parser/bangumi.rsrename to src-tauri/libreget-core/src/platforms/bilibili/parser/bangumi.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/parser/cheese.rs b/src-tauri/libreget-core/src/platforms/bilibili/parser/cheese.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/parser/cheese.rsrename to src-tauri/libreget-core/src/platforms/bilibili/parser/cheese.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/parser/favlist.rs b/src-tauri/libreget-core/src/platforms/bilibili/parser/favlist.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/parser/favlist.rsrename to src-tauri/libreget-core/src/platforms/bilibili/parser/favlist.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/parser/festival.rs b/src-tauri/libreget-core/src/platforms/bilibili/parser/festival.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/parser/festival.rsrename to src-tauri/libreget-core/src/platforms/bilibili/parser/festival.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/parser/history.rs b/src-tauri/libreget-core/src/platforms/bilibili/parser/history.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/parser/history.rsrename to src-tauri/libreget-core/src/platforms/bilibili/parser/history.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/parser/list.rs b/src-tauri/libreget-core/src/platforms/bilibili/parser/list.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/parser/list.rsrename to src-tauri/libreget-core/src/platforms/bilibili/parser/list.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/parser/mod.rs b/src-tauri/libreget-core/src/platforms/bilibili/parser/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/parser/mod.rsrename to src-tauri/libreget-core/src/platforms/bilibili/parser/mod.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/parser/popular.rs b/src-tauri/libreget-core/src/platforms/bilibili/parser/popular.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/parser/popular.rsrename to src-tauri/libreget-core/src/platforms/bilibili/parser/popular.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/parser/space.rs b/src-tauri/libreget-core/src/platforms/bilibili/parser/space.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/parser/space.rsrename to src-tauri/libreget-core/src/platforms/bilibili/parser/space.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/parser/video.rs b/src-tauri/libreget-core/src/platforms/bilibili/parser/video.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/parser/video.rsrename to src-tauri/libreget-core/src/platforms/bilibili/parser/video.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/parser/watch_later.rs b/src-tauri/libreget-core/src/platforms/bilibili/parser/watch_later.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/parser/watch_later.rsrename to src-tauri/libreget-core/src/platforms/bilibili/parser/watch_later.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/preview.rs b/src-tauri/libreget-core/src/platforms/bilibili/preview.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/preview.rsrename to src-tauri/libreget-core/src/platforms/bilibili/preview.rsdiff --git a/src-tauri/omniget-core/src/platforms/bilibili/url_kind.rs b/src-tauri/libreget-core/src/platforms/bilibili/url_kind.rssimilarity index 98%rename from src-tauri/omniget-core/src/platforms/bilibili/url_kind.rsrename to src-tauri/libreget-core/src/platforms/bilibili/url_kind.rsindex 0988749c..0bb83506 100644--- a/src-tauri/omniget-core/src/platforms/bilibili/url_kind.rs+++ b/src-tauri/libreget-core/src/platforms/bilibili/url_kind.rs@@ -108,10 +108,10 @@ pub fn detect_with_query(url: &str, query: Option<&str>) -> Result<UrlKind> {}fn detect_internal(url: &str, query_override: Option<&str>) -> Result<UrlKind> {- if url == "omniget://bilibili/watch-later" {+ if url == "libreget://bilibili/watch-later" {return Ok(UrlKind::WatchLater);}- if url == "omniget://bilibili/history" {+ if url == "libreget://bilibili/history" {return Ok(UrlKind::History);}@@ -520,11 +520,11 @@ mod tests {#[test]fn detects_internal_schemas() {assert_eq!(- detect("omniget://bilibili/watch-later").unwrap(),+ detect("libreget://bilibili/watch-later").unwrap(),UrlKind::WatchLater);assert_eq!(- detect("omniget://bilibili/history").unwrap(),+ detect("libreget://bilibili/history").unwrap(),UrlKind::History);}diff --git a/src-tauri/omniget-core/src/platforms/bilibili/wbi.rs b/src-tauri/libreget-core/src/platforms/bilibili/wbi.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bilibili/wbi.rsrename to src-tauri/libreget-core/src/platforms/bilibili/wbi.rsdiff --git a/src-tauri/omniget-core/src/platforms/bluesky.rs b/src-tauri/libreget-core/src/platforms/bluesky.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/bluesky.rsrename to src-tauri/libreget-core/src/platforms/bluesky.rsdiff --git a/src-tauri/omniget-core/src/platforms/cookie_provider.rs b/src-tauri/libreget-core/src/platforms/cookie_provider.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/cookie_provider.rsrename to src-tauri/libreget-core/src/platforms/cookie_provider.rsdiff --git a/src-tauri/omniget-core/src/platforms/direct_file.rs b/src-tauri/libreget-core/src/platforms/direct_file.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/direct_file.rsrename to src-tauri/libreget-core/src/platforms/direct_file.rsdiff --git a/src-tauri/omniget-core/src/platforms/douyin.rs b/src-tauri/libreget-core/src/platforms/douyin.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/douyin.rsrename to src-tauri/libreget-core/src/platforms/douyin.rsdiff --git a/src-tauri/omniget-core/src/platforms/generic_ytdlp.rs b/src-tauri/libreget-core/src/platforms/generic_ytdlp.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/generic_ytdlp.rsrename to src-tauri/libreget-core/src/platforms/generic_ytdlp.rsdiff --git a/src-tauri/omniget-core/src/platforms/instagram.rs b/src-tauri/libreget-core/src/platforms/instagram.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/instagram.rsrename to src-tauri/libreget-core/src/platforms/instagram.rsdiff --git a/src-tauri/omniget-core/src/platforms/magnet.rs b/src-tauri/libreget-core/src/platforms/magnet.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/magnet.rsrename to src-tauri/libreget-core/src/platforms/magnet.rsdiff --git a/src-tauri/omniget-core/src/platforms/mod.rs b/src-tauri/libreget-core/src/platforms/mod.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/mod.rsrename to src-tauri/libreget-core/src/platforms/mod.rsdiff --git a/src-tauri/omniget-core/src/platforms/p2p.rs b/src-tauri/libreget-core/src/platforms/p2p.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/p2p.rsrename to src-tauri/libreget-core/src/platforms/p2p.rsdiff --git a/src-tauri/omniget-core/src/platforms/p2p_words.rs b/src-tauri/libreget-core/src/platforms/p2p_words.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/p2p_words.rsrename to src-tauri/libreget-core/src/platforms/p2p_words.rsdiff --git a/src-tauri/omniget-core/src/platforms/pinterest.rs b/src-tauri/libreget-core/src/platforms/pinterest.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/pinterest.rsrename to src-tauri/libreget-core/src/platforms/pinterest.rsdiff --git a/src-tauri/omniget-core/src/platforms/reddit.rs b/src-tauri/libreget-core/src/platforms/reddit.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/reddit.rsrename to src-tauri/libreget-core/src/platforms/reddit.rsdiff --git a/src-tauri/omniget-core/src/platforms/threads.rs b/src-tauri/libreget-core/src/platforms/threads.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/threads.rsrename to src-tauri/libreget-core/src/platforms/threads.rsdiff --git a/src-tauri/omniget-core/src/platforms/tiktok.rs b/src-tauri/libreget-core/src/platforms/tiktok.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/tiktok.rsrename to src-tauri/libreget-core/src/platforms/tiktok.rsdiff --git a/src-tauri/omniget-core/src/platforms/traits.rs b/src-tauri/libreget-core/src/platforms/traits.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/traits.rsrename to src-tauri/libreget-core/src/platforms/traits.rsdiff --git a/src-tauri/omniget-core/src/platforms/twitch.rs b/src-tauri/libreget-core/src/platforms/twitch.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/twitch.rsrename to src-tauri/libreget-core/src/platforms/twitch.rsdiff --git a/src-tauri/omniget-core/src/platforms/twitter.rs b/src-tauri/libreget-core/src/platforms/twitter.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/twitter.rsrename to src-tauri/libreget-core/src/platforms/twitter.rsdiff --git a/src-tauri/omniget-core/src/platforms/vimeo.rs b/src-tauri/libreget-core/src/platforms/vimeo.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/vimeo.rsrename to src-tauri/libreget-core/src/platforms/vimeo.rsdiff --git a/src-tauri/omniget-core/src/platforms/youtube.rs b/src-tauri/libreget-core/src/platforms/youtube.rssimilarity index 100%rename from src-tauri/omniget-core/src/platforms/youtube.rsrename to src-tauri/libreget-core/src/platforms/youtube.rsdiff --git a/src-tauri/omniget-core/tests/bench_engine.rs b/src-tauri/libreget-core/tests/bench_engine.rssimilarity index 97%rename from src-tauri/omniget-core/tests/bench_engine.rsrename to src-tauri/libreget-core/tests/bench_engine.rsindex 5ee9dc70..a35ff742 100644--- a/src-tauri/omniget-core/tests/bench_engine.rs+++ b/src-tauri/libreget-core/tests/bench_engine.rs@@ -13,8 +13,8 @@use std::path::PathBuf;use std::time::Instant;-use omniget_core::core::http_fetcher::{HttpFetcher, HttpFetcherConfig};-use omniget_core::models::progress::ProgressUpdate;+use libreget_core::core::http_fetcher::{HttpFetcher, HttpFetcherConfig};+use libreget_core::models::progress::ProgressUpdate;fn env_list(name: &str, default: &str) -> Vec<u64> {std::env::var(name)@@ -166,7 +166,7 @@ async fn bench_engine() {let (tx, mut rx) = tokio::sync::mpsc::channel::<ProgressUpdate>(64);tokio::spawn(async move { while rx.recv().await.is_some() {} });let t = Instant::now();- let r = omniget_core::core::ytdlp::download_video(+ let r = libreget_core::core::ytdlp::download_video(&ytdlp,&url,&dir,diff --git a/src-tauri/omniget-core/tests/instagram_live.rs b/src-tauri/libreget-core/tests/instagram_live.rssimilarity index 95%rename from src-tauri/omniget-core/tests/instagram_live.rsrename to src-tauri/libreget-core/tests/instagram_live.rsindex 986fb684..74bbe9db 100644--- a/src-tauri/omniget-core/tests/instagram_live.rs+++ b/src-tauri/libreget-core/tests/instagram_live.rs@@ -2,7 +2,7 @@//! por padrão; roda com um cookies.txt (Netscape) do instagram.com://!//! ```text-//! OMNIGET_IG_COOKIES="$HOME/Library/Application Support/com.openselena.omniget/cookies/instagram.com/_default.txt" \+//! OMNIGET_IG_COOKIES="$HOME/Library/Application Support/com.openselena.libreget/cookies/instagram.com/_default.txt" \//! cargo test -p omniget-core --test instagram_live -- --ignored --nocapture//! ```//!@@ -11,8 +11,8 @@use std::sync::atomic::AtomicBool;-use omniget_core::core::tools::instagram::{follow, media, profile, social, IgClient, Session};-use omniget_core::core::tools::noop_progress;+use libreget_core::core::tools::instagram::{follow, media, profile, social, IgClient, Session};+use libreget_core::core::tools::noop_progress;#[tokio::test]#[ignore]diff --git a/src-tauri/omniget-plugin-sdk/Cargo.toml b/src-tauri/libreget-plugin-sdk/Cargo.tomlsimilarity index 66%rename from src-tauri/omniget-plugin-sdk/Cargo.tomlrename to src-tauri/libreget-plugin-sdk/Cargo.tomlindex f1b1f739..de36d376 100644--- a/src-tauri/omniget-plugin-sdk/Cargo.toml+++ b/src-tauri/libreget-plugin-sdk/Cargo.toml@@ -1,8 +1,8 @@[package]-name = "omniget-plugin-sdk"+name = "libreget-plugin-sdk"version = "0.2.0"edition = "2021"-description = "SDK for building OmniGet plugins"+description = "SDK for building LibreGet plugins"[dependencies]serde = { version = "1", features = ["derive"] }diff --git a/src-tauri/omniget-plugin-sdk/build.rs b/src-tauri/libreget-plugin-sdk/build.rssimilarity index 93%rename from src-tauri/omniget-plugin-sdk/build.rsrename to src-tauri/libreget-plugin-sdk/build.rsindex dbc6720f..4867aee6 100644--- a/src-tauri/omniget-plugin-sdk/build.rs+++ b/src-tauri/libreget-plugin-sdk/build.rs@@ -16,7 +16,7 @@ fn main() {.filter(|o| o.status.success()).map(|o| String::from_utf8_lossy(&o.stdout).trim().to_string()).unwrap_or_else(|| "unknown".to_string());- println!("cargo:rustc-env=OMNIGET_SDK_RUSTC_VERSION={version}");+ println!("cargo:rustc-env=LIBREGET_SDK_RUSTC_VERSION={version}");println!("cargo:rerun-if-env-changed=RUSTC");println!("cargo:rerun-if-env-changed=RUSTUP_TOOLCHAIN");}diff --git a/src-tauri/omniget-plugin-sdk/src/host.rs b/src-tauri/libreget-plugin-sdk/src/host.rssimilarity index 95%rename from src-tauri/omniget-plugin-sdk/src/host.rsrename to src-tauri/libreget-plugin-sdk/src/host.rsindex 9619daf0..141f3893 100644--- a/src-tauri/omniget-plugin-sdk/src/host.rs+++ b/src-tauri/libreget-plugin-sdk/src/host.rs@@ -42,9 +42,9 @@ pub trait PluginHost: Send + Sync {////// # Platform layout///- /// - Windows: `%LOCALAPPDATA%\com.openselena.omniget\external-cache\{plugin_id}\{namespace}\`- /// - Linux: `$XDG_CACHE_HOME/com.openselena.omniget/external-cache/{plugin_id}/{namespace}/` (falls back to `~/.cache/...`)- /// - macOS: `~/Library/Caches/com.openselena.omniget/external-cache/{plugin_id}/{namespace}/`+ /// - Windows: `%LOCALAPPDATA%\com.openselena.libreget\external-cache\{plugin_id}\{namespace}\`+ /// - Linux: `$XDG_CACHE_HOME/com.openselena.libreget/external-cache/{plugin_id}/{namespace}/` (falls back to `~/.cache/...`)+ /// - macOS: `~/Library/Caches/com.openselena.libreget/external-cache/{plugin_id}/{namespace}/`////// These are the OS-canonical cache locations (non-roaming on Windows,/// `$XDG_CACHE_HOME` on Linux, `Caches/` on macOS). They are deliberatelydiff --git a/src-tauri/omniget-plugin-sdk/src/lib.rs b/src-tauri/libreget-plugin-sdk/src/lib.rssimilarity index 98%rename from src-tauri/omniget-plugin-sdk/src/lib.rsrename to src-tauri/libreget-plugin-sdk/src/lib.rsindex dc4d9eb1..d54861ed 100644--- a/src-tauri/omniget-plugin-sdk/src/lib.rs+++ b/src-tauri/libreget-plugin-sdk/src/lib.rs@@ -33,7 +33,7 @@ pub const BUILD_INFO: &str = concat!("sdk=",env!("CARGO_PKG_VERSION"),";rustc=",- env!("OMNIGET_SDK_RUSTC_VERSION"),+ env!("LIBREGET_SDK_RUSTC_VERSION"),"\0");diff --git a/src-tauri/omniget-plugin-sdk/src/manifest.rs b/src-tauri/libreget-plugin-sdk/src/manifest.rssimilarity index 100%rename from src-tauri/omniget-plugin-sdk/src/manifest.rsrename to src-tauri/libreget-plugin-sdk/src/manifest.rsdiff --git a/src-tauri/omniget-plugin-sdk/src/plugin.rs b/src-tauri/libreget-plugin-sdk/src/plugin.rssimilarity index 65%rename from src-tauri/omniget-plugin-sdk/src/plugin.rsrename to src-tauri/libreget-plugin-sdk/src/plugin.rsindex 7c0ac0eb..98fd528c 100644--- a/src-tauri/omniget-plugin-sdk/src/plugin.rs+++ b/src-tauri/libreget-plugin-sdk/src/plugin.rs@@ -2,7 +2,7 @@ use std::sync::Arc;use crate::host::PluginHost;-pub trait OmnigetPlugin: Send + Sync {+pub trait LibregetPlugin: Send + Sync {fn id(&self) -> &str;fn name(&self) -> &str;fn version(&self) -> &str;@@ -23,24 +23,34 @@ pub trait OmnigetPlugin: Send + Sync {#[macro_export]macro_rules! export_plugin {($constructor:expr) => {+ #[no_mangle]+ pub extern "C" fn libreget_plugin_abi_version() -> u32 {+ $crate::ABI_VERSION+ }+#[no_mangle]pub extern "C" fn omniget_plugin_abi_version() -> u32 {$crate::ABI_VERSION}- /// Toolchain handshake (ABI v3+). Returns a NUL-terminated- /// `sdk=...;rustc=...` fingerprint the host compares against its own- /// before trusting any non-C-ABI boundary (trait objects, String,- /// serde_json::Value, boxed futures). Thin `*const c_char` return is- /// FFI-safe on every rustc, so this call is safe even on a mismatched- /// toolchain — unlike everything it protects.+ #[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 omniget_plugin_init() -> *mut dyn $crate::OmnigetPlugin {+ 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/convert/Cargo.toml b/src-tauri/plugins/convert/Cargo.tomlindex 03c7a565..76a0d4ef 100644--- a/src-tauri/plugins/convert/Cargo.toml+++ b/src-tauri/plugins/convert/Cargo.toml@@ -1,5 +1,5 @@[package]-name = "omniget-plugin-convert"+name = "libreget-plugin-convert"version = "1.0.3"edition = "2021"@@ -11,5 +11,5 @@ serde_json = "1"anyhow = "1"tracing = "0.1"tokio-util = { version = "0.7", features = ["rt"] }-omniget-core = { path = "../../omniget-core", features = ["desktop"] }-omniget-plugin-sdk = { path = "../../omniget-plugin-sdk" }+libreget-core = { path = "../../libreget-core", features = ["desktop"] }+libreget-plugin-sdk = { path = "../../libreget-plugin-sdk" }diff --git a/src-tauri/plugins/convert/src/lib.rs b/src-tauri/plugins/convert/src/lib.rsindex 5b677604..93718f6d 100644--- a/src-tauri/plugins/convert/src/lib.rs+++ b/src-tauri/plugins/convert/src/lib.rs@@ -1,4 +1,4 @@-use omniget_plugin_sdk::{OmnigetPlugin, PluginHost};+use libreget_plugin_sdk::{LibregetPlugin, PluginHost};use std::collections::HashMap;use std::sync::Arc;use tokio::sync::mpsc;@@ -18,11 +18,11 @@ impl ConvertPlugin {}}-pub fn manifest() -> omniget_plugin_sdk::PluginManifest {+pub fn manifest() -> libreget_plugin_sdk::PluginManifest {serde_json::from_str(include_str!("../plugin.json")).expect("valid convert manifest")}-impl OmnigetPlugin for ConvertPlugin {+impl LibregetPlugin for ConvertPlugin {fn id(&self) -> &str {"convert"}@@ -53,14 +53,14 @@ impl OmnigetPlugin for ConvertPlugin {let path: String =serde_json::from_value(args.get("path").cloned().ok_or("missing 'path'")?).map_err(|e| e.to_string())?;- let info = omniget_core::core::ffmpeg::probe(std::path::Path::new(&path))+ let info = libreget_core::core::ffmpeg::probe(std::path::Path::new(&path)).await.map_err(|e| e.to_string())?;serde_json::to_value(info).map_err(|e| e.to_string())}"convert_file" => {- let options: omniget_core::core::ffmpeg::ConversionOptions =+ let options: libreget_core::core::ffmpeg::ConversionOptions =serde_json::from_value(args.get("options").cloned().ok_or("missing 'options'")?,)@@ -82,7 +82,7 @@ impl OmnigetPlugin for ConvertPlugin {tokio::spawn(async move {let (tx, mut rx) =- mpsc::channel::<omniget_core::models::progress::ProgressUpdate>(32);+ mpsc::channel::<libreget_core::models::progress::ProgressUpdate>(32);let host_progress = host.clone();let cid = conversion_id;@@ -96,7 +96,7 @@ impl OmnigetPlugin for ConvertPlugin {});let result =- omniget_core::core::ffmpeg::convert(&options, cancel_token, tx).await;+ libreget_core::core::ffmpeg::convert(&options, cancel_token, tx).await;let _ = progress_forwarder.await;active.lock().await.remove(&conversion_id);@@ -149,7 +149,7 @@ impl OmnigetPlugin for ConvertPlugin {}"get_hwaccel_info" => {- let info = omniget_core::core::hwaccel::detect_hwaccel().await;+ let info = libreget_core::core::hwaccel::detect_hwaccel().await;serde_json::to_value(info).map_err(|e| e.to_string())}diff --git a/src-tauri/plugins/courses/Cargo.toml b/src-tauri/plugins/courses/Cargo.tomlindex d9ceff77..7164c5bd 100644--- a/src-tauri/plugins/courses/Cargo.toml+++ b/src-tauri/plugins/courses/Cargo.toml@@ -1,5 +1,5 @@[package]-name = "omniget-plugin-courses"+name = "libreget-plugin-courses"version = "1.4.1"edition = "2021"@@ -31,8 +31,8 @@ urlencoding = "2"base64 = "0.22.1"sha2 = "0.10"filetime = "0.2.27"-omniget-core = { path = "../../omniget-core", features = ["desktop"] }-omniget-plugin-sdk = { path = "../../omniget-plugin-sdk" }+libreget-core = { path = "../../libreget-core", features = ["desktop"] }+libreget-plugin-sdk = { path = "../../libreget-plugin-sdk" }[target.'cfg(windows)'.dependencies]webview2-com = "0.39"diff --git a/src-tauri/plugins/courses/src/commands/afya.rs b/src-tauri/plugins/courses/src/commands/afya.rsindex fe7ee2dd..8461d909 100644--- a/src-tauri/plugins/courses/src/commands/afya.rs+++ b/src-tauri/plugins/courses/src/commands/afya.rs@@ -56,7 +56,7 @@ pub async fn afya_login_token(*state.afya_session_validated_at.lock().await = None;*state.afya_courses_cache.lock().await = None;- let parsed_token = omniget_core::core::cookie_parser::parse_bearer_input(&token);+ let parsed_token = libreget_core::core::cookie_parser::parse_bearer_input(&token);let client = crate::platforms::medcel::api::build_client_with_origin(&parsed_token,diff --git a/src-tauri/plugins/courses/src/commands/alpaclass.rs b/src-tauri/plugins/courses/src/commands/alpaclass.rsindex 7ef1ae8a..536d49c5 100644--- a/src-tauri/plugins/courses/src/commands/alpaclass.rs+++ b/src-tauri/plugins/courses/src/commands/alpaclass.rs@@ -29,7 +29,7 @@ pub async fn alpaclass_login(*state.alpaclass_session_validated_at.lock().await = None;*state.alpaclass_courses_cache.lock().await = None;- let parsed_token = omniget_core::core::cookie_parser::parse_bearer_input(&token);+ let parsed_token = libreget_core::core::cookie_parser::parse_bearer_input(&token);match api::authenticate(&parsed_token, &platform_url).await {Ok(session) => {diff --git a/src-tauri/plugins/courses/src/commands/areademembros.rs b/src-tauri/plugins/courses/src/commands/areademembros.rsindex 5f162466..2da73817 100644--- a/src-tauri/plugins/courses/src/commands/areademembros.rs+++ b/src-tauri/plugins/courses/src/commands/areademembros.rs@@ -30,12 +30,12 @@ pub async fn areademembros_login_token(*state.areademembros_courses_cache.lock().await = None;let clean_url = site_url.trim_end_matches('/').to_string();- let parsed = omniget_core::core::cookie_parser::parse_cookie_input(&cookies, "session");+ let parsed = libreget_core::core::cookie_parser::parse_cookie_input(&cookies, "session");let session = AreaDeMembrosSession {cookies: parsed.cookie_string.clone(),site_url: clean_url.clone(),- client: omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ client: libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/astronmembers.rs b/src-tauri/plugins/courses/src/commands/astronmembers.rsindex 7629825d..5c342929 100644--- a/src-tauri/plugins/courses/src/commands/astronmembers.rs+++ b/src-tauri/plugins/courses/src/commands/astronmembers.rs@@ -59,12 +59,12 @@ pub async fn astron_login_token(*state.astron_courses_cache.lock().await = None;let clean_url = site_url.trim_end_matches('/').to_string();- let parsed = omniget_core::core::cookie_parser::parse_cookie_input(&cookies, "session");+ let parsed = libreget_core::core::cookie_parser::parse_cookie_input(&cookies, "session");let session = AstronSession {cookies: parsed.cookie_string.clone(),site_url: clean_url.clone(),- client: omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ client: libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/cademi_cmd.rs b/src-tauri/plugins/courses/src/commands/cademi_cmd.rsindex 80f84f07..ff24600e 100644--- a/src-tauri/plugins/courses/src/commands/cademi_cmd.rs+++ b/src-tauri/plugins/courses/src/commands/cademi_cmd.rs@@ -58,12 +58,12 @@ pub async fn cademi_login_cookie(*state.cademi_courses_cache.lock().await = None;let trimmed_url = site_url.trim_end_matches('/').to_string();- let parsed = omniget_core::core::cookie_parser::parse_cookie_input(&cookie, "app_v4_session");+ let parsed = libreget_core::core::cookie_parser::parse_cookie_input(&cookie, "app_v4_session");let session = CademiSession {cookies: parsed.token.clone(),site_url: trimmed_url.clone(),- client: omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ client: libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/cakto.rs b/src-tauri/plugins/courses/src/commands/cakto.rsindex 8dac05e9..2ae7fa5f 100644--- a/src-tauri/plugins/courses/src/commands/cakto.rs+++ b/src-tauri/plugins/courses/src/commands/cakto.rs@@ -54,14 +54,14 @@ pub async fn cakto_login_token(*state.cakto_session_validated_at.lock().await = None;*state.cakto_courses_cache.lock().await = None;- let parsed = omniget_core::core::cookie_parser::parse_cookie_input(+ let parsed = libreget_core::core::cookie_parser::parse_cookie_input(&cookie,"__Secure-better-auth.session_token",);let session = CaktoSession {cookie: parsed.token.clone(),- client: omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ client: libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/caktomembers.rs b/src-tauri/plugins/courses/src/commands/caktomembers.rsindex 1474e681..c9b7aaba 100644--- a/src-tauri/plugins/courses/src/commands/caktomembers.rs+++ b/src-tauri/plugins/courses/src/commands/caktomembers.rs@@ -28,7 +28,7 @@ pub async fn caktomembers_login_token(*state.caktomembers_session_validated_at.lock().await = None;*state.caktomembers_courses_cache.lock().await = None;- let parsed = omniget_core::core::cookie_parser::parse_cookie_input(+ let parsed = libreget_core::core::cookie_parser::parse_cookie_input(&cookie,"__Secure-better-auth.session_token",);@@ -37,7 +37,7 @@ pub async fn caktomembers_login_token(.await.map_err(|e| format!("Failed to fetch access token: {}", e))?;- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/curseduca.rs b/src-tauri/plugins/courses/src/commands/curseduca.rsindex a6b9d74a..81814e40 100644--- a/src-tauri/plugins/courses/src/commands/curseduca.rs+++ b/src-tauri/plugins/courses/src/commands/curseduca.rs@@ -60,13 +60,13 @@ pub async fn curseduca_login_token(*state.curseduca_courses_cache.lock().await = None;let clean_url = site_url.trim_end_matches('/').to_string();- let parsed_token = omniget_core::core::cookie_parser::parse_bearer_input(&token);+ let parsed_token = libreget_core::core::cookie_parser::parse_bearer_input(&token);let session = CurseducaSession {token: parsed_token.clone(),api_key: api_key.clone(),site_url: clean_url,- client: omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ client: libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/dsa.rs b/src-tauri/plugins/courses/src/commands/dsa.rsindex 41e827cf..4d640e62 100644--- a/src-tauri/plugins/courses/src/commands/dsa.rs+++ b/src-tauri/plugins/courses/src/commands/dsa.rs@@ -28,11 +28,11 @@ pub async fn dsa_login_token(*state.dsa_session_validated_at.lock().await = None;*state.dsa_courses_cache.lock().await = None;- let parsed_token = omniget_core::core::cookie_parser::parse_bearer_input(&token);+ let parsed_token = libreget_core::core::cookie_parser::parse_bearer_input(&token);let session = DsaSession {token: parsed_token.clone(),- client: omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ client: libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/entregadigital.rs b/src-tauri/plugins/courses/src/commands/entregadigital.rsindex 9ecd99d8..1ad6bdb4 100644--- a/src-tauri/plugins/courses/src/commands/entregadigital.rs+++ b/src-tauri/plugins/courses/src/commands/entregadigital.rs@@ -32,7 +32,7 @@ pub async fn entregadigital_login_token(*state.entregadigital_session_validated_at.lock().await = None;*state.entregadigital_courses_cache.lock().await = None;- let parsed_token = omniget_core::core::cookie_parser::parse_bearer_input(&token);+ let parsed_token = libreget_core::core::cookie_parser::parse_bearer_input(&token);let api_base =api::build_api_base(&site_url).map_err(|e| format!("Invalid site URL: {}", e))?;@@ -43,7 +43,7 @@ pub async fn entregadigital_login_token(app_version: app_version.clone(),device_id: device_id.clone(),os_value: os_value.clone(),- client: omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ client: libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/estrategia_concursos.rs b/src-tauri/plugins/courses/src/commands/estrategia_concursos.rsindex ad826443..f446a847 100644--- a/src-tauri/plugins/courses/src/commands/estrategia_concursos.rs+++ b/src-tauri/plugins/courses/src/commands/estrategia_concursos.rs@@ -30,9 +30,9 @@ pub async fn estrategia_concursos_login_token(*state.estrategia_concursos_session_validated_at.lock().await = None;*state.estrategia_concursos_courses_cache.lock().await = None;- let parsed = omniget_core::core::cookie_parser::parse_cookie_input(&token, "__Secure-SID");+ let parsed = libreget_core::core::cookie_parser::parse_cookie_input(&token, "__Secure-SID");- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/estrategia_ldi.rs b/src-tauri/plugins/courses/src/commands/estrategia_ldi.rsindex dafb0eb9..bbe695f4 100644--- a/src-tauri/plugins/courses/src/commands/estrategia_ldi.rs+++ b/src-tauri/plugins/courses/src/commands/estrategia_ldi.rs@@ -28,9 +28,9 @@ pub async fn estrategia_ldi_login_token(*state.estrategia_ldi_session_validated_at.lock().await = None;*state.estrategia_ldi_courses_cache.lock().await = None;- let parsed = omniget_core::core::cookie_parser::parse_cookie_input(&token, "__Secure-SID");+ let parsed = libreget_core::core::cookie_parser::parse_cookie_input(&token, "__Secure-SID");- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/estrategia_militares.rs b/src-tauri/plugins/courses/src/commands/estrategia_militares.rsindex d016a6db..5a311038 100644--- a/src-tauri/plugins/courses/src/commands/estrategia_militares.rs+++ b/src-tauri/plugins/courses/src/commands/estrategia_militares.rs@@ -30,9 +30,9 @@ pub async fn estrategia_militares_login_token(*state.estrategia_militares_session_validated_at.lock().await = None;*state.estrategia_militares_courses_cache.lock().await = None;- let parsed = omniget_core::core::cookie_parser::parse_cookie_input(&token, "__Secure-SID");+ let parsed = libreget_core::core::cookie_parser::parse_cookie_input(&token, "__Secure-SID");- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/fluencyacademy.rs b/src-tauri/plugins/courses/src/commands/fluencyacademy.rsindex 268beb68..0897edac 100644--- a/src-tauri/plugins/courses/src/commands/fluencyacademy.rs+++ b/src-tauri/plugins/courses/src/commands/fluencyacademy.rs@@ -55,12 +55,12 @@ pub async fn fluency_login_token(*state.fluency_session_validated_at.lock().await = None;*state.fluency_courses_cache.lock().await = None;- let parsed_token = omniget_core::core::cookie_parser::parse_bearer_input(&token);+ let parsed_token = libreget_core::core::cookie_parser::parse_bearer_input(&token);let session = FluencySession {token: parsed_token.clone(),email: String::new(),- client: omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ client: libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/grancursos.rs b/src-tauri/plugins/courses/src/commands/grancursos.rsindex 6b54d11a..abf0f606 100644--- a/src-tauri/plugins/courses/src/commands/grancursos.rs+++ b/src-tauri/plugins/courses/src/commands/grancursos.rs@@ -28,9 +28,9 @@ pub async fn grancursos_login_cookies(*state.grancursos_session_validated_at.lock().await = None;*state.grancursos_courses_cache.lock().await = None;- let parsed = omniget_core::core::cookie_parser::parse_cookie_input(&cookies, "laravel_session");+ let parsed = libreget_core::core::cookie_parser::parse_cookie_input(&cookies, "laravel_session");- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/greatcourses.rs b/src-tauri/plugins/courses/src/commands/greatcourses.rsindex ccce0785..5b56e149 100644--- a/src-tauri/plugins/courses/src/commands/greatcourses.rs+++ b/src-tauri/plugins/courses/src/commands/greatcourses.rs@@ -55,12 +55,12 @@ pub async fn wondrium_login_token(*state.wondrium_session_validated_at.lock().await = None;*state.wondrium_courses_cache.lock().await = None;- let parsed_token = omniget_core::core::cookie_parser::parse_bearer_input(&token);+ let parsed_token = libreget_core::core::cookie_parser::parse_bearer_input(&token);let session = WondriumSession {token: parsed_token.clone(),email: String::new(),- client: omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ client: libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/greenn.rs b/src-tauri/plugins/courses/src/commands/greenn.rsindex 06022d4f..42233f72 100644--- a/src-tauri/plugins/courses/src/commands/greenn.rs+++ b/src-tauri/plugins/courses/src/commands/greenn.rs@@ -28,11 +28,11 @@ pub async fn greenn_login_token(*state.greenn_session_validated_at.lock().await = None;*state.greenn_courses_cache.lock().await = None;- let parsed_token = omniget_core::core::cookie_parser::parse_bearer_input(&token);+ let parsed_token = libreget_core::core::cookie_parser::parse_bearer_input(&token);let session = GreennSession {token: parsed_token.clone(),- client: omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ client: libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/gumroad.rs b/src-tauri/plugins/courses/src/commands/gumroad.rsindex 0c160aca..e382f019 100644--- a/src-tauri/plugins/courses/src/commands/gumroad.rs+++ b/src-tauri/plugins/courses/src/commands/gumroad.rs@@ -55,12 +55,12 @@ pub async fn gumroad_login_token(*state.gumroad_session_validated_at.lock().await = None;*state.gumroad_courses_cache.lock().await = None;- let parsed_token = omniget_core::core::cookie_parser::parse_bearer_input(&token);+ let parsed_token = libreget_core::core::cookie_parser::parse_bearer_input(&token);let session = GumroadSession {token: parsed_token.clone(),email: String::new(),- client: omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ client: libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("okhttp/4.8.1").default_headers({let mut h = reqwest::header::HeaderMap::new();diff --git a/src-tauri/plugins/courses/src/commands/kajabi.rs b/src-tauri/plugins/courses/src/commands/kajabi.rsindex 434251da..945b8c89 100644--- a/src-tauri/plugins/courses/src/commands/kajabi.rs+++ b/src-tauri/plugins/courses/src/commands/kajabi.rs@@ -53,7 +53,7 @@ pub async fn kajabi_verify_login(client: reqwest::Client::new(),};- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("KajabiMobileApp").default_headers({let mut h = reqwest::header::HeaderMap::new();@@ -96,7 +96,7 @@ pub async fn kajabi_login_token(*state.kajabi_session_validated_at.lock().await = None;*state.kajabi_courses_cache.lock().await = None;- let parsed_token = omniget_core::core::cookie_parser::parse_bearer_input(&token);+ let parsed_token = libreget_core::core::cookie_parser::parse_bearer_input(&token);let site_id = match site_id {Some(s) if !s.trim().is_empty() => s,@@ -108,7 +108,7 @@ pub async fn kajabi_login_token(}};- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("KajabiMobileApp").default_headers({let mut h = reqwest::header::HeaderMap::new();@@ -233,7 +233,7 @@ pub async fn kajabi_set_site(.as_mut().ok_or_else(|| "Not authenticated".to_string())?;- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("KajabiMobileApp").default_headers({let mut h = reqwest::header::HeaderMap::new();diff --git a/src-tauri/plugins/courses/src/commands/kirvano.rs b/src-tauri/plugins/courses/src/commands/kirvano.rsindex 18d38cc3..33f1c525 100644--- a/src-tauri/plugins/courses/src/commands/kirvano.rs+++ b/src-tauri/plugins/courses/src/commands/kirvano.rs@@ -55,12 +55,12 @@ pub async fn kirvano_login_token(*state.kirvano_session_validated_at.lock().await = None;*state.kirvano_courses_cache.lock().await = None;- let parsed_token = omniget_core::core::cookie_parser::parse_bearer_input(&token);+ let parsed_token = libreget_core::core::cookie_parser::parse_bearer_input(&token);let session = KirvanoSession {token: parsed_token.clone(),email: String::new(),- client: omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ client: libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/kiwify.rs b/src-tauri/plugins/courses/src/commands/kiwify.rsindex f9f566c3..df8970cd 100644--- a/src-tauri/plugins/courses/src/commands/kiwify.rs+++ b/src-tauri/plugins/courses/src/commands/kiwify.rs@@ -55,12 +55,12 @@ pub async fn kiwify_login_token(*state.kiwify_session_validated_at.lock().await = None;*state.kiwify_courses_cache.lock().await = None;- let parsed_token = omniget_core::core::cookie_parser::parse_bearer_input(&token);+ let parsed_token = libreget_core::core::cookie_parser::parse_bearer_input(&token);let session = KiwifySession {token: parsed_token.clone(),email: String::new(),- client: omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ client: libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/masterclass.rs b/src-tauri/plugins/courses/src/commands/masterclass.rsindex fd594f7f..3337a165 100644--- a/src-tauri/plugins/courses/src/commands/masterclass.rs+++ b/src-tauri/plugins/courses/src/commands/masterclass.rs@@ -28,7 +28,7 @@ pub async fn masterclass_login_cookies(*state.masterclass_session_validated_at.lock().await = None;*state.masterclass_courses_cache.lock().await = None;- let parsed = omniget_core::core::cookie_parser::parse_cookie_input(&cookies, "access_token");+ let parsed = libreget_core::core::cookie_parser::parse_cookie_input(&cookies, "access_token");let session = api::authenticate_cookies(&parsed.cookie_string).awaitdiff --git a/src-tauri/plugins/courses/src/commands/medcel.rs b/src-tauri/plugins/courses/src/commands/medcel.rsindex 0e8931d3..4b8a2467 100644--- a/src-tauri/plugins/courses/src/commands/medcel.rs+++ b/src-tauri/plugins/courses/src/commands/medcel.rs@@ -56,7 +56,7 @@ pub async fn medcel_login_token(*state.medcel_session_validated_at.lock().await = None;*state.medcel_courses_cache.lock().await = None;- let parsed_token = omniget_core::core::cookie_parser::parse_bearer_input(&token);+ let parsed_token = libreget_core::core::cookie_parser::parse_bearer_input(&token);let client =api::build_client_with_origin(&parsed_token, &api_key, "https://areaaluno.medcel.com.br")diff --git a/src-tauri/plugins/courses/src/commands/medcof.rs b/src-tauri/plugins/courses/src/commands/medcof.rsindex 0376e025..3a1e9566 100644--- a/src-tauri/plugins/courses/src/commands/medcof.rs+++ b/src-tauri/plugins/courses/src/commands/medcof.rs@@ -28,11 +28,11 @@ pub async fn medcof_login_token(*state.medcof_session_validated_at.lock().await = None;*state.medcof_courses_cache.lock().await = None;- let parsed_token = omniget_core::core::cookie_parser::parse_bearer_input(&token);+ let parsed_token = libreget_core::core::cookie_parser::parse_bearer_input(&token);let session = MedcofSession {token: parsed_token.clone(),- client: omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ client: libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/medway.rs b/src-tauri/plugins/courses/src/commands/medway.rsindex c7845c2f..b5c93c26 100644--- a/src-tauri/plugins/courses/src/commands/medway.rs+++ b/src-tauri/plugins/courses/src/commands/medway.rs@@ -28,9 +28,9 @@ pub async fn medway_login_token(*state.medway_session_validated_at.lock().await = None;*state.medway_courses_cache.lock().await = None;- let parsed_token = omniget_core::core::cookie_parser::parse_bearer_input(&token);+ let parsed_token = libreget_core::core::cookie_parser::parse_bearer_input(&token);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/memberkit_cmd.rs b/src-tauri/plugins/courses/src/commands/memberkit_cmd.rsindex f14ffa8a..750df8ab 100644--- a/src-tauri/plugins/courses/src/commands/memberkit_cmd.rs+++ b/src-tauri/plugins/courses/src/commands/memberkit_cmd.rs@@ -59,12 +59,12 @@ pub async fn memberkit_login_cookie(let trimmed_url = site_url.trim_end_matches('/').to_string();let parsed =- omniget_core::core::cookie_parser::parse_cookie_input(&cookie, "_memberkit_session");+ libreget_core::core::cookie_parser::parse_cookie_input(&cookie, "_memberkit_session");let session = MemberkitSession {cookies: parsed.token.clone(),site_url: trimmed_url.clone(),- client: omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ client: libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/nutror.rs b/src-tauri/plugins/courses/src/commands/nutror.rsindex 46ba0272..2ea6c330 100644--- a/src-tauri/plugins/courses/src/commands/nutror.rs+++ b/src-tauri/plugins/courses/src/commands/nutror.rs@@ -29,12 +29,12 @@ pub async fn nutror_login_token(*state.nutror_session_validated_at.lock().await = None;*state.nutror_courses_cache.lock().await = None;- let parsed_token = omniget_core::core::cookie_parser::parse_bearer_input(&token);+ let parsed_token = libreget_core::core::cookie_parser::parse_bearer_input(&token);let session = NutrorSession {token: parsed_token.clone(),refresh_token: refresh_token.clone(),- client: omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ client: libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/commands/pluralsight.rs b/src-tauri/plugins/courses/src/commands/pluralsight.rsindex 94bb661c..6867c5ce 100644--- a/src-tauri/plugins/courses/src/commands/pluralsight.rs+++ b/src-tauri/plugins/courses/src/commands/pluralsight.rs@@ -29,7 +29,7 @@ pub async fn pluralsight_login_cookies(*state.pluralsight_courses_cache.lock().await = None;let parsed =- omniget_core::core::cookie_parser::parse_cookie_input(&cookies, "PsJwt-production");+ libreget_core::core::cookie_parser::parse_cookie_input(&cookies, "PsJwt-production");let session = api::authenticate_cookies(&parsed.cookie_string).map_err(|e| format!("Authentication failed: {}", e))?;diff --git a/src-tauri/plugins/courses/src/commands/rocketseat.rs b/src-tauri/plugins/courses/src/commands/rocketseat.rsindex 602082a3..e56bdb9c 100644--- a/src-tauri/plugins/courses/src/commands/rocketseat.rs+++ b/src-tauri/plugins/courses/src/commands/rocketseat.rs@@ -28,7 +28,7 @@ pub async fn rocketseat_login_token(*state.rocketseat_session_validated_at.lock().await = None;*state.rocketseat_courses_cache.lock().await = None;- let parsed = omniget_core::core::cookie_parser::parse_cookie_input(+ let parsed = libreget_core::core::cookie_parser::parse_cookie_input(&token,"skylab_next_access_token_v4",);@@ -41,7 +41,7 @@ pub async fn rocketseat_login_token();let parsed_token = if parsed.token.is_empty() {- let bearer = omniget_core::core::cookie_parser::parse_bearer_input(&token);+ let bearer = libreget_core::core::cookie_parser::parse_bearer_input(&token);tracing::info!("[rocketseat] fallback to parse_bearer_input: len={}",bearer.len()diff --git a/src-tauri/plugins/courses/src/commands/skool.rs b/src-tauri/plugins/courses/src/commands/skool.rsindex db705263..53483382 100644--- a/src-tauri/plugins/courses/src/commands/skool.rs+++ b/src-tauri/plugins/courses/src/commands/skool.rs@@ -54,9 +54,9 @@ pub async fn skool_login_token(*state.skool_session_validated_at.lock().await = None;*state.skool_courses_cache.lock().await = None;- let mut parsed = omniget_core::core::cookie_parser::parse_cookie_input(&token, "auth_token");+ let mut parsed = libreget_core::core::cookie_parser::parse_cookie_input(&token, "auth_token");if parsed.token.is_empty() {- parsed = omniget_core::core::cookie_parser::parse_cookie_input(&token, "skooltok");+ parsed = libreget_core::core::cookie_parser::parse_cookie_input(&token, "skooltok");}let cookie_val = if !parsed.token.is_empty() {diff --git a/src-tauri/plugins/courses/src/commands/teachable.rs b/src-tauri/plugins/courses/src/commands/teachable.rsindex 6d494248..96052249 100644--- a/src-tauri/plugins/courses/src/commands/teachable.rs+++ b/src-tauri/plugins/courses/src/commands/teachable.rs@@ -61,9 +61,9 @@ pub async fn teachable_login_token(*state.teachable_session_validated_at.lock().await = None;*state.teachable_courses_cache.lock().await = None;- let parsed_token = omniget_core::core::cookie_parser::parse_bearer_input(&token);+ let parsed_token = libreget_core::core::cookie_parser::parse_bearer_input(&token);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("ktor-client").default_headers({let mut h = reqwest::header::HeaderMap::new();diff --git a/src-tauri/plugins/courses/src/commands/themembers.rs b/src-tauri/plugins/courses/src/commands/themembers.rsindex a9c09477..eed7755a 100644--- a/src-tauri/plugins/courses/src/commands/themembers.rs+++ b/src-tauri/plugins/courses/src/commands/themembers.rs@@ -57,7 +57,7 @@ pub async fn themembers_login_token(*state.themembers_session_validated_at.lock().await = None;*state.themembers_courses_cache.lock().await = None;- let parsed_token = omniget_core::core::cookie_parser::parse_bearer_input(&token);+ let parsed_token = libreget_core::core::cookie_parser::parse_bearer_input(&token);match api::authenticate_token(&parsed_token, &domain).await {Ok(session) => {diff --git a/src-tauri/plugins/courses/src/commands/thinkific.rs b/src-tauri/plugins/courses/src/commands/thinkific.rsindex 7b6221d5..fa5ad38f 100644--- a/src-tauri/plugins/courses/src/commands/thinkific.rs+++ b/src-tauri/plugins/courses/src/commands/thinkific.rs@@ -30,7 +30,7 @@ pub async fn thinkific_login(*state.thinkific_courses_cache.lock().await = None;let parsed =- omniget_core::core::cookie_parser::parse_cookie_input(&cookies, "thinkific_session");+ libreget_core::core::cookie_parser::parse_cookie_input(&cookies, "thinkific_session");let session = api::create_session(&parsed.cookie_string, &site_url).map_err(|e| format!("Failed to create session: {}", e))?;diff --git a/src-tauri/plugins/courses/src/commands/voomp.rs b/src-tauri/plugins/courses/src/commands/voomp.rsindex 80ee59b6..217b2262 100644--- a/src-tauri/plugins/courses/src/commands/voomp.rs+++ b/src-tauri/plugins/courses/src/commands/voomp.rs@@ -28,11 +28,11 @@ pub async fn voomp_login_token(*state.voomp_session_validated_at.lock().await = None;*state.voomp_courses_cache.lock().await = None;- let parsed_token = omniget_core::core::cookie_parser::parse_bearer_input(&token);+ let parsed_token = libreget_core::core::cookie_parser::parse_bearer_input(&token);let session = VoompSession {token: parsed_token.clone(),- client: omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ client: libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/lib.rs b/src-tauri/plugins/courses/src/lib.rsindex b36cd2b6..4f64eb23 100644--- a/src-tauri/plugins/courses/src/lib.rs+++ b/src-tauri/plugins/courses/src/lib.rs@@ -7,10 +7,10 @@ pub mod settings_helper;pub mod state;pub mod models {- pub use omniget_core::models::*;+ pub use libreget_core::models::*;}-use omniget_plugin_sdk::{OmnigetPlugin, PluginHost};+use libreget_plugin_sdk::{LibregetPlugin, PluginHost};use state::CoursesState;use std::sync::Arc;@@ -71,11 +71,11 @@ impl CoursesPlugin {}}-pub fn manifest() -> omniget_plugin_sdk::PluginManifest {+pub fn manifest() -> libreget_plugin_sdk::PluginManifest {serde_json::from_str(include_str!("../plugin.json")).expect("valid courses manifest")}-impl OmnigetPlugin for CoursesPlugin {+impl LibregetPlugin for CoursesPlugin {fn id(&self) -> &str {"courses"}diff --git a/src-tauri/plugins/courses/src/platforms/afyainternato/api.rs b/src-tauri/plugins/courses/src/platforms/afyainternato/api.rsindex db1a4da3..e9b65cd0 100644--- a/src-tauri/plugins/courses/src/platforms/afyainternato/api.rs+++ b/src-tauri/plugins/courses/src/platforms/afyainternato/api.rs@@ -41,7 +41,7 @@ pub async fn authenticate(api_key: &str,) -> anyhow::Result<AfyaSession> {let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0",)diff --git a/src-tauri/plugins/courses/src/platforms/afyainternato/downloader.rs b/src-tauri/plugins/courses/src/platforms/afyainternato/downloader.rsindex be6ccc7f..853b4d62 100644--- a/src-tauri/plugins/courses/src/platforms/afyainternato/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/afyainternato/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, AfyaCourse, AfyaSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[afya] course already complete, skipping");return Ok(());}@@ -96,7 +96,7 @@ pub async fn download_full_course(tokio::fs::create_dir_all(&lesson_dir).await?;if let Some(ref desc) = lesson.description {- omniget_core::core::course_utils::save_description(&lesson_dir, desc, "txt")+ libreget_core::core::course_utils::save_description(&lesson_dir, desc, "txt").await.ok();}@@ -245,7 +245,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -257,7 +257,7 @@ async fn download_hls_video(output_path: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -280,11 +280,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -315,6 +315,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/afyainternato/mod.rs b/src-tauri/plugins/courses/src/platforms/afyainternato/mod.rsindex 8974c958..2c506b11 100644--- a/src-tauri/plugins/courses/src/platforms/afyainternato/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/afyainternato/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -63,7 +63,7 @@ impl PlatformDownloader for AfyaInternatoDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download Afya Internato courses"diff --git a/src-tauri/plugins/courses/src/platforms/alpaclass/api.rs b/src-tauri/plugins/courses/src/platforms/alpaclass/api.rsindex 529b3cfd..91b12ad4 100644--- a/src-tauri/plugins/courses/src/platforms/alpaclass/api.rs+++ b/src-tauri/plugins/courses/src/platforms/alpaclass/api.rs@@ -97,7 +97,7 @@ fn build_client(token: &str, subdomain: &str, origin_url: &str) -> anyhow::ResulHeaderValue::from_str(&format!("{}/", origin_url))?,);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/alpaclass/downloader.rs b/src-tauri/plugins/courses/src/platforms/alpaclass/downloader.rsindex 822b2721..6984a5bd 100644--- a/src-tauri/plugins/courses/src/platforms/alpaclass/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/alpaclass/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, AlpaclassCourse, AlpaclassSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {return Ok(());}@@ -123,7 +123,7 @@ pub async fn download_full_course(};if let Some(ref html) = detail.html_content {- omniget_core::core::course_utils::save_description(&lesson_dir, html, "html")+ libreget_core::core::course_utils::save_description(&lesson_dir, html, "html").await.ok();}@@ -290,7 +290,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -303,7 +303,7 @@ async fn download_hls_video(referer: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -327,11 +327,11 @@ async fn download_with_ytdlp(referer: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -362,6 +362,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/alpaclass/mod.rs b/src-tauri/plugins/courses/src/platforms/alpaclass/mod.rsindex 8c0d494c..3cba282b 100644--- a/src-tauri/plugins/courses/src/platforms/alpaclass/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/alpaclass/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType};+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType};pub struct AlpaclassDownloader;@@ -55,7 +55,7 @@ impl PlatformDownloader for AlpaclassDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download from Alpaclass"diff --git a/src-tauri/plugins/courses/src/platforms/areademembros/api.rs b/src-tauri/plugins/courses/src/platforms/areademembros/api.rsindex ef510001..4a58372c 100644--- a/src-tauri/plugins/courses/src/platforms/areademembros/api.rs+++ b/src-tauri/plugins/courses/src/platforms/areademembros/api.rs@@ -53,7 +53,7 @@ fn build_client(cookies: &str, site_url: &str) -> anyhow::Result<reqwest::ClientHeaderValue::from_static("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"),);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/areademembros/downloader.rs b/src-tauri/plugins/courses/src/platforms/areademembros/downloader.rsindex c32967dc..ed855206 100644--- a/src-tauri/plugins/courses/src/platforms/areademembros/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/areademembros/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, AreaDeMembrosApiCourse, AreaDeMembrosSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[areademembros] course already complete, skipping");return Ok(());}@@ -125,7 +125,7 @@ pub async fn download_full_course(if let Some(ref desc) = description {let lesson_desc_dir = format!("{}/{}. {}", mod_dir, li + 1, lesson_name);tokio::fs::create_dir_all(&lesson_desc_dir).await?;- omniget_core::core::course_utils::save_description(&lesson_desc_dir, desc, "html")+ libreget_core::core::course_utils::save_description(&lesson_desc_dir, desc, "html").await.ok();}@@ -219,7 +219,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -231,11 +231,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,diff --git a/src-tauri/plugins/courses/src/platforms/areademembros/mod.rs b/src-tauri/plugins/courses/src/platforms/areademembros/mod.rsindex 9b6137f6..fd519a19 100644--- a/src-tauri/plugins/courses/src/platforms/areademembros/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/areademembros/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType};+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType};pub struct AreaDeMembrosDownloader;@@ -55,7 +55,7 @@ impl PlatformDownloader for AreaDeMembrosDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download from Area de Membros"diff --git a/src-tauri/plugins/courses/src/platforms/astronmembers/api.rs b/src-tauri/plugins/courses/src/platforms/astronmembers/api.rsindex d18d19c4..2f04ef5b 100644--- a/src-tauri/plugins/courses/src/platforms/astronmembers/api.rs+++ b/src-tauri/plugins/courses/src/platforms/astronmembers/api.rs@@ -54,7 +54,7 @@ fn build_client(cookies: &str, site_url: &str) -> anyhow::Result<reqwest::ClientHeaderValue::from_static("text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"),);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))@@ -76,7 +76,7 @@ pub async fn authenticate(password: &str,) -> anyhow::Result<AstronSession> {let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).cookie_store(true).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/astronmembers/downloader.rs b/src-tauri/plugins/courses/src/platforms/astronmembers/downloader.rsindex 886a84f7..7bdb0df5 100644--- a/src-tauri/plugins/courses/src/platforms/astronmembers/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/astronmembers/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, AstronCourse, AstronSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[astron] course already complete, skipping");return Ok(());}@@ -125,7 +125,7 @@ pub async fn download_full_course(if let Some(ref desc) = description {let lesson_desc_dir = format!("{}/{}. {}", mod_dir, li + 1, lesson_name);tokio::fs::create_dir_all(&lesson_desc_dir).await?;- omniget_core::core::course_utils::save_description(&lesson_desc_dir, desc, "html")+ libreget_core::core::course_utils::save_description(&lesson_desc_dir, desc, "html").await.ok();}@@ -232,7 +232,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -244,7 +244,7 @@ async fn download_hls_video(output_path: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -267,11 +267,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,diff --git a/src-tauri/plugins/courses/src/platforms/astronmembers/mod.rs b/src-tauri/plugins/courses/src/platforms/astronmembers/mod.rsindex 89c951b2..6daf09b0 100644--- a/src-tauri/plugins/courses/src/platforms/astronmembers/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/astronmembers/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType};+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType};pub struct AstronMembersDownloader;@@ -55,7 +55,7 @@ impl PlatformDownloader for AstronMembersDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download from Astron Members"diff --git a/src-tauri/plugins/courses/src/platforms/cademi/api.rs b/src-tauri/plugins/courses/src/platforms/cademi/api.rsindex c979fecf..2a5d2383 100644--- a/src-tauri/plugins/courses/src/platforms/cademi/api.rs+++ b/src-tauri/plugins/courses/src/platforms/cademi/api.rs@@ -59,7 +59,7 @@ fn build_client(cookies: &str, site_url: &str) -> anyhow::Result<reqwest::Client);headers.insert("Referer", HeaderValue::from_str(&format!("{}/", site_url))?);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))@@ -81,7 +81,7 @@ pub async fn authenticate(site_url: &str,) -> anyhow::Result<CademiSession> {let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).cookie_store(true).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/cademi/downloader.rs b/src-tauri/plugins/courses/src/platforms/cademi/downloader.rsindex 15142a59..9a795e6f 100644--- a/src-tauri/plugins/courses/src/platforms/cademi/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/cademi/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, CademiCourse, CademiSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[cademi] course already complete, skipping");return Ok(());}@@ -124,7 +124,7 @@ pub async fn download_full_course(if let Some(ref desc) = detail.description {let lesson_desc_dir = format!("{}/{}. {}", mod_dir, li + 1, lesson_name);tokio::fs::create_dir_all(&lesson_desc_dir).await?;- omniget_core::core::course_utils::save_description(&lesson_desc_dir, desc, "html")+ libreget_core::core::course_utils::save_description(&lesson_desc_dir, desc, "html").await.ok();}@@ -212,7 +212,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -224,11 +224,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -259,6 +259,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/cademi/mod.rs b/src-tauri/plugins/courses/src/platforms/cademi/mod.rsindex 09b1c94b..c3f841c3 100644--- a/src-tauri/plugins/courses/src/platforms/cademi/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/cademi/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -63,7 +63,7 @@ impl PlatformDownloader for CademiDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download from Cademi"))}diff --git a/src-tauri/plugins/courses/src/platforms/cakto/api.rs b/src-tauri/plugins/courses/src/platforms/cakto/api.rsindex 4a10a968..0a5643e2 100644--- a/src-tauri/plugins/courses/src/platforms/cakto/api.rs+++ b/src-tauri/plugins/courses/src/platforms/cakto/api.rs@@ -63,7 +63,7 @@ fn build_client(cookie: &str) -> anyhow::Result<reqwest::Client> {headers.insert("Origin", HeaderValue::from_static(API_BASE));headers.insert("Referer", HeaderValue::from_str(&format!("{}/", API_BASE))?);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))@@ -81,7 +81,7 @@ fn session_file_path() -> anyhow::Result<PathBuf> {pub async fn authenticate(email: &str, password: &str) -> anyhow::Result<CaktoSession> {let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).connect_timeout(Duration::from_secs(30)).timeout(Duration::from_secs(60))diff --git a/src-tauri/plugins/courses/src/platforms/cakto/downloader.rs b/src-tauri/plugins/courses/src/platforms/cakto/downloader.rsindex 65852219..c8cd37e4 100644--- a/src-tauri/plugins/courses/src/platforms/cakto/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/cakto/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, CaktoCourse, CaktoSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[cakto] course already complete, skipping");return Ok(());}@@ -96,7 +96,7 @@ pub async fn download_full_course(tokio::fs::create_dir_all(&lesson_dir).await?;if let Some(ref desc) = lesson.description {- omniget_core::core::course_utils::save_description(&lesson_dir, desc, "html")+ libreget_core::core::course_utils::save_description(&lesson_dir, desc, "html").await.ok();}@@ -234,7 +234,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -246,11 +246,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -281,6 +281,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/cakto/mod.rs b/src-tauri/plugins/courses/src/platforms/cakto/mod.rsindex d8c92bb5..e86b6e3e 100644--- a/src-tauri/plugins/courses/src/platforms/cakto/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/cakto/mod.rs@@ -5,7 +5,7 @@ use anyhow::anyhow;use async_trait::async_trait;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -64,7 +64,7 @@ impl PlatformDownloader for CaktoDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download from Cakto"))}diff --git a/src-tauri/plugins/courses/src/platforms/caktomembers/api.rs b/src-tauri/plugins/courses/src/platforms/caktomembers/api.rsindex 508d6a3b..1f5b2033 100644--- a/src-tauri/plugins/courses/src/platforms/caktomembers/api.rs+++ b/src-tauri/plugins/courses/src/platforms/caktomembers/api.rs@@ -62,7 +62,7 @@ fn build_client(access_token: &str) -> anyhow::Result<reqwest::Client> {HeaderValue::from_static("https://app.cakto.com.br/"),);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))@@ -81,7 +81,7 @@ fn build_cookie_client(cookie: &str) -> anyhow::Result<reqwest::Client> {);headers.insert("Accept", HeaderValue::from_static("application/json"));- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/caktomembers/downloader.rs b/src-tauri/plugins/courses/src/platforms/caktomembers/downloader.rsindex f06e2b9d..4cc88d9b 100644--- a/src-tauri/plugins/courses/src/platforms/caktomembers/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/caktomembers/downloader.rs@@ -5,7 +5,7 @@ use anyhow::anyhow;use tauri::Emitter;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, CaktoMembersCourse, CaktoMembersSession};@@ -49,7 +49,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[caktomembers] course already complete, skipping");return Ok(());}@@ -94,7 +94,7 @@ pub async fn download_full_course(if let Some(ref desc) = lesson.description {let lesson_desc_dir = format!("{}/{}. {}", mod_dir, li + 1, lesson_name);tokio::fs::create_dir_all(&lesson_desc_dir).await?;- omniget_core::core::course_utils::save_description(&lesson_desc_dir, desc, "html")+ libreget_core::core::course_utils::save_description(&lesson_desc_dir, desc, "html").await.ok();}@@ -231,7 +231,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -243,7 +243,7 @@ async fn download_hls_video(output_path: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -266,11 +266,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = std::path::Path::new(output_dir);let (tx, _rx) = tokio::sync::mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,diff --git a/src-tauri/plugins/courses/src/platforms/caktomembers/mod.rs b/src-tauri/plugins/courses/src/platforms/caktomembers/mod.rsindex ac1f238e..44e6006f 100644--- a/src-tauri/plugins/courses/src/platforms/caktomembers/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/caktomembers/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -63,7 +63,7 @@ impl PlatformDownloader for CaktoMembersDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download Cakto Members courses"diff --git a/src-tauri/plugins/courses/src/platforms/curseduca/api.rs b/src-tauri/plugins/courses/src/platforms/curseduca/api.rsindex 729503b4..1f0a0dab 100644--- a/src-tauri/plugins/courses/src/platforms/curseduca/api.rs+++ b/src-tauri/plugins/courses/src/platforms/curseduca/api.rs@@ -58,7 +58,7 @@ fn build_client(token: &str, api_key: &str) -> anyhow::Result<reqwest::Client> {headers.insert("api_key", HeaderValue::from_str(api_key)?);headers.insert("Accept", HeaderValue::from_static("application/json"));- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))@@ -76,7 +76,7 @@ fn session_file_path() -> anyhow::Result<PathBuf> {pub async fn discover_api_key(site_url: &str) -> anyhow::Result<String> {let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).connect_timeout(Duration::from_secs(30)).timeout(Duration::from_secs(60))@@ -122,7 +122,7 @@ pub async fn authenticate(let api_key = discover_api_key(site_url).await?;let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).connect_timeout(Duration::from_secs(30)).timeout(Duration::from_secs(60))diff --git a/src-tauri/plugins/courses/src/platforms/curseduca/downloader.rs b/src-tauri/plugins/courses/src/platforms/curseduca/downloader.rsindex 95231fc4..8e87651e 100644--- a/src-tauri/plugins/courses/src/platforms/curseduca/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/curseduca/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, CurseducaCourse, CurseducaSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[curseduca] course already complete, skipping");return Ok(());}@@ -96,7 +96,7 @@ pub async fn download_full_course(if let Some(ref desc) = lesson.description {let lesson_desc_dir = format!("{}/{}. {}", mod_dir, li + 1, lesson_name);tokio::fs::create_dir_all(&lesson_desc_dir).await?;- omniget_core::core::course_utils::save_description(&lesson_desc_dir, desc, "html")+ libreget_core::core::course_utils::save_description(&lesson_desc_dir, desc, "html").await.ok();}@@ -229,7 +229,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -241,7 +241,7 @@ async fn download_hls_video(output_path: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -264,11 +264,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,diff --git a/src-tauri/plugins/courses/src/platforms/curseduca/mod.rs b/src-tauri/plugins/courses/src/platforms/curseduca/mod.rsindex ff0e3fe2..2fd20062 100644--- a/src-tauri/plugins/courses/src/platforms/curseduca/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/curseduca/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -65,7 +65,7 @@ impl PlatformDownloader for CurseducaDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download Curseduca courses"diff --git a/src-tauri/plugins/courses/src/platforms/datascienceacademy/api.rs b/src-tauri/plugins/courses/src/platforms/datascienceacademy/api.rsindex b2c0885b..53bb3fde 100644--- a/src-tauri/plugins/courses/src/platforms/datascienceacademy/api.rs+++ b/src-tauri/plugins/courses/src/platforms/datascienceacademy/api.rs@@ -53,7 +53,7 @@ fn build_client(token: &str) -> anyhow::Result<reqwest::Client> {headers.insert("Origin", HeaderValue::from_static(API_BASE));headers.insert("Referer", HeaderValue::from_str(&format!("{}/", API_BASE))?);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/datascienceacademy/downloader.rs b/src-tauri/plugins/courses/src/platforms/datascienceacademy/downloader.rsindex 448fcf48..4d2e88ba 100644--- a/src-tauri/plugins/courses/src/platforms/datascienceacademy/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/datascienceacademy/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, DsaCourse, DsaSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[dsa] course already complete, skipping");return Ok(());}@@ -96,7 +96,7 @@ pub async fn download_full_course(if let Some(ref desc) = lesson.description {let lesson_desc_dir = format!("{}/{}. {}", mod_dir, li + 1, lesson_name);tokio::fs::create_dir_all(&lesson_desc_dir).await?;- omniget_core::core::course_utils::save_description(&lesson_desc_dir, desc, "html")+ libreget_core::core::course_utils::save_description(&lesson_desc_dir, desc, "html").await.ok();}@@ -189,7 +189,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -201,11 +201,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,diff --git a/src-tauri/plugins/courses/src/platforms/datascienceacademy/mod.rs b/src-tauri/plugins/courses/src/platforms/datascienceacademy/mod.rsindex 82bd686e..be345447 100644--- a/src-tauri/plugins/courses/src/platforms/datascienceacademy/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/datascienceacademy/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -64,7 +64,7 @@ impl PlatformDownloader for DataScienceAcademyDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download from Data Science Academy"diff --git a/src-tauri/plugins/courses/src/platforms/eduzznutror/api.rs b/src-tauri/plugins/courses/src/platforms/eduzznutror/api.rsindex 94b555c6..623b4382 100644--- a/src-tauri/plugins/courses/src/platforms/eduzznutror/api.rs+++ b/src-tauri/plugins/courses/src/platforms/eduzznutror/api.rs@@ -69,7 +69,7 @@ fn build_client(token: &str) -> anyhow::Result<reqwest::Client> {headers.insert("Accept", HeaderValue::from_static("application/json"));headers.insert("FrontVersion", HeaderValue::from_static("1458"));- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))@@ -92,7 +92,7 @@ pub async fn refresh_token(session: &NutrorSession) -> anyhow::Result<NutrorSess.ok_or_else(|| anyhow!("No refresh token available"))?;let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).connect_timeout(Duration::from_secs(30)).timeout(Duration::from_secs(60))diff --git a/src-tauri/plugins/courses/src/platforms/eduzznutror/downloader.rs b/src-tauri/plugins/courses/src/platforms/eduzznutror/downloader.rsindex 24850ade..9161c5d8 100644--- a/src-tauri/plugins/courses/src/platforms/eduzznutror/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/eduzznutror/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, NutrorCourse, NutrorSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[nutror] course already complete, skipping");return Ok(());}@@ -124,7 +124,7 @@ pub async fn download_full_course(};if let Some(ref desc) = detail.description {- omniget_core::core::course_utils::save_description(&lesson_dir, desc, "html")+ libreget_core::core::course_utils::save_description(&lesson_dir, desc, "html").await.ok();}@@ -273,7 +273,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -285,7 +285,7 @@ async fn download_hls_video(output_path: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -308,11 +308,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -343,6 +343,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/eduzznutror/mod.rs b/src-tauri/plugins/courses/src/platforms/eduzznutror/mod.rsindex c520a88a..49f3d54c 100644--- a/src-tauri/plugins/courses/src/platforms/eduzznutror/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/eduzznutror/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType};+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType};pub struct EduzzNutrorDownloader;@@ -58,7 +58,7 @@ impl PlatformDownloader for EduzzNutrorDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download from Eduzz Nutror"diff --git a/src-tauri/plugins/courses/src/platforms/entregadigital/api.rs b/src-tauri/plugins/courses/src/platforms/entregadigital/api.rsindex fb6b3d2e..8ccd6820 100644--- a/src-tauri/plugins/courses/src/platforms/entregadigital/api.rs+++ b/src-tauri/plugins/courses/src/platforms/entregadigital/api.rs@@ -98,7 +98,7 @@ fn build_client(headers.insert("device-id", HeaderValue::from_str(device_id)?);headers.insert("os", HeaderValue::from_str(os_value)?);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/entregadigital/downloader.rs b/src-tauri/plugins/courses/src/platforms/entregadigital/downloader.rsindex acb71fa6..c6154577 100644--- a/src-tauri/plugins/courses/src/platforms/entregadigital/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/entregadigital/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, EntregaDigitalCourse, EntregaDigitalSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {return Ok(());}@@ -123,7 +123,7 @@ pub async fn download_full_course(};if let Some(ref desc) = detail.description {- omniget_core::core::course_utils::save_description(&lesson_dir, desc, "html")+ libreget_core::core::course_utils::save_description(&lesson_dir, desc, "html").await.ok();}@@ -281,7 +281,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -293,7 +293,7 @@ async fn download_hls_video(output_path: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -316,11 +316,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -351,6 +351,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/entregadigital/mod.rs b/src-tauri/plugins/courses/src/platforms/entregadigital/mod.rsindex 765526e8..1c17378f 100644--- a/src-tauri/plugins/courses/src/platforms/entregadigital/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/entregadigital/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType};+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType};pub struct EntregaDigitalDownloader;@@ -55,7 +55,7 @@ impl PlatformDownloader for EntregaDigitalDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download from Entrega Digital"diff --git a/src-tauri/plugins/courses/src/platforms/estrategia_concursos/api.rs b/src-tauri/plugins/courses/src/platforms/estrategia_concursos/api.rsindex 397e50c8..72ff92fc 100644--- a/src-tauri/plugins/courses/src/platforms/estrategia_concursos/api.rs+++ b/src-tauri/plugins/courses/src/platforms/estrategia_concursos/api.rs@@ -84,7 +84,7 @@ fn build_client(token: &str) -> anyhow::Result<reqwest::Client> {HeaderValue::from_static("https://www.estrategiaconcursos.com.br/"),);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/estrategia_concursos/downloader.rs b/src-tauri/plugins/courses/src/platforms/estrategia_concursos/downloader.rsindex da972e85..7ee9988d 100644--- a/src-tauri/plugins/courses/src/platforms/estrategia_concursos/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/estrategia_concursos/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, EstrategiaConcursosCourse, EstrategiaConcursosSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[estrategia_concursos] course already complete, skipping");return Ok(());}@@ -144,7 +144,7 @@ pub async fn download_full_course(if !detail.description.is_empty() {let desc_dir = format!("{}/{}. {}", mod_dir, li + 1, lesson_name);tokio::fs::create_dir_all(&desc_dir).await.ok();- omniget_core::core::course_utils::save_description(+ libreget_core::core::course_utils::save_description(&desc_dir,&detail.description,"html",@@ -345,7 +345,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -361,6 +361,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/estrategia_concursos/mod.rs b/src-tauri/plugins/courses/src/platforms/estrategia_concursos/mod.rsindex d01eb831..6ce089c8 100644--- a/src-tauri/plugins/courses/src/platforms/estrategia_concursos/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/estrategia_concursos/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -71,7 +71,7 @@ impl PlatformDownloader for EstrategiaConcursosDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download Estratégia Concursos courses"diff --git a/src-tauri/plugins/courses/src/platforms/estrategia_ldi/api.rs b/src-tauri/plugins/courses/src/platforms/estrategia_ldi/api.rsindex 455773b8..0586a779 100644--- a/src-tauri/plugins/courses/src/platforms/estrategia_ldi/api.rs+++ b/src-tauri/plugins/courses/src/platforms/estrategia_ldi/api.rs@@ -70,7 +70,7 @@ fn build_client(token: &str) -> anyhow::Result<reqwest::Client> {HeaderValue::from_static("https://concursos.estrategia.com/"),);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/estrategia_ldi/downloader.rs b/src-tauri/plugins/courses/src/platforms/estrategia_ldi/downloader.rsindex 4a7b377c..3d813e48 100644--- a/src-tauri/plugins/courses/src/platforms/estrategia_ldi/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/estrategia_ldi/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, EstrategiaLdiCourse, EstrategiaLdiSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[estrategia_ldi] course already complete, skipping");return Ok(());}@@ -123,7 +123,7 @@ pub async fn download_full_course(let description = api::extract_description(&item_detail);if !description.is_empty() {- omniget_core::core::course_utils::save_description(&mod_dir, &description, "html")+ libreget_core::core::course_utils::save_description(&mod_dir, &description, "html").await.ok();}@@ -276,7 +276,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -288,7 +288,7 @@ async fn download_hls_video(output_path: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -311,11 +311,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -346,7 +346,7 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/estrategia_ldi/mod.rs b/src-tauri/plugins/courses/src/platforms/estrategia_ldi/mod.rsindex 5220b84f..b244deaf 100644--- a/src-tauri/plugins/courses/src/platforms/estrategia_ldi/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/estrategia_ldi/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -63,7 +63,7 @@ impl PlatformDownloader for EstrategiaLdiDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download Estratégia LDI courses"diff --git a/src-tauri/plugins/courses/src/platforms/estrategia_militares/api.rs b/src-tauri/plugins/courses/src/platforms/estrategia_militares/api.rsindex 5112062d..1a1dea33 100644--- a/src-tauri/plugins/courses/src/platforms/estrategia_militares/api.rs+++ b/src-tauri/plugins/courses/src/platforms/estrategia_militares/api.rs@@ -128,7 +128,7 @@ fn build_client(token: &str, cookie_string: &str) -> anyhow::Result<reqwest::Cliheaders.insert("x-vertical", HeaderValue::from_static("militares"));headers.insert("x-requester-id", HeaderValue::from_static("front-student"));- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/estrategia_militares/downloader.rs b/src-tauri/plugins/courses/src/platforms/estrategia_militares/downloader.rsindex ad662c0d..0394f7db 100644--- a/src-tauri/plugins/courses/src/platforms/estrategia_militares/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/estrategia_militares/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, EstrategiaMilitaresCourse, EstrategiaMilitaresSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {return Ok(());}@@ -122,7 +122,7 @@ pub async fn download_full_course(let description = api::extract_description(&item_detail);if !description.is_empty() {- omniget_core::core::course_utils::save_description(&mod_dir, &description, "html")+ libreget_core::core::course_utils::save_description(&mod_dir, &description, "html").await.ok();}@@ -364,7 +364,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -376,7 +376,7 @@ async fn download_hls_video(output_path: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -399,11 +399,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -434,6 +434,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/estrategia_militares/mod.rs b/src-tauri/plugins/courses/src/platforms/estrategia_militares/mod.rsindex b016cc7d..cd15e67d 100644--- a/src-tauri/plugins/courses/src/platforms/estrategia_militares/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/estrategia_militares/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -63,7 +63,7 @@ impl PlatformDownloader for EstrategiaMilitaresDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download Estratégia Militares courses"diff --git a/src-tauri/plugins/courses/src/platforms/fluencyacademy/api.rs b/src-tauri/plugins/courses/src/platforms/fluencyacademy/api.rsindex 65371fb4..3c991146 100644--- a/src-tauri/plugins/courses/src/platforms/fluencyacademy/api.rs+++ b/src-tauri/plugins/courses/src/platforms/fluencyacademy/api.rs@@ -68,7 +68,7 @@ fn build_client(token: &str) -> anyhow::Result<reqwest::Client> {HeaderValue::from_static("https://academy.fluency.io/"),);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))@@ -86,7 +86,7 @@ fn session_file_path() -> anyhow::Result<PathBuf> {pub async fn authenticate(email: &str, password: &str) -> anyhow::Result<FluencySession> {let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).connect_timeout(Duration::from_secs(30)).timeout(Duration::from_secs(60))diff --git a/src-tauri/plugins/courses/src/platforms/fluencyacademy/downloader.rs b/src-tauri/plugins/courses/src/platforms/fluencyacademy/downloader.rsindex bf9987e5..a1b84802 100644--- a/src-tauri/plugins/courses/src/platforms/fluencyacademy/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/fluencyacademy/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, FluencyCourse, FluencySession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[fluency] course already complete, skipping");return Ok(());}@@ -124,7 +124,7 @@ pub async fn download_full_course(if let Some(ref desc) = detail.description {let lesson_desc_dir = format!("{}/{}. {}", mod_dir, li + 1, lesson_name);tokio::fs::create_dir_all(&lesson_desc_dir).await?;- omniget_core::core::course_utils::save_description(&lesson_desc_dir, desc, "html")+ libreget_core::core::course_utils::save_description(&lesson_desc_dir, desc, "html").await.ok();}@@ -245,7 +245,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -257,7 +257,7 @@ async fn download_hls_video(output_path: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -280,11 +280,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -315,6 +315,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/fluencyacademy/mod.rs b/src-tauri/plugins/courses/src/platforms/fluencyacademy/mod.rsindex 6776a744..5eb76c1e 100644--- a/src-tauri/plugins/courses/src/platforms/fluencyacademy/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/fluencyacademy/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -63,7 +63,7 @@ impl PlatformDownloader for FluencyAcademyDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download from Fluency Academy"diff --git a/src-tauri/plugins/courses/src/platforms/grancursos/api.rs b/src-tauri/plugins/courses/src/platforms/grancursos/api.rsindex 26c43207..a7825d68 100644--- a/src-tauri/plugins/courses/src/platforms/grancursos/api.rs+++ b/src-tauri/plugins/courses/src/platforms/grancursos/api.rs@@ -60,7 +60,7 @@ fn build_client(cookies: &str) -> anyhow::Result<reqwest::Client> {HeaderValue::from_static("https://www.grancursosonline.com.br/"),);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/grancursos/downloader.rs b/src-tauri/plugins/courses/src/platforms/grancursos/downloader.rsindex eef365db..4fbc635e 100644--- a/src-tauri/plugins/courses/src/platforms/grancursos/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/grancursos/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, GranCursosCourse, GranCursosSession};@@ -53,7 +53,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[grancursos] course already complete, skipping");return Ok(());}@@ -232,7 +232,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -244,7 +244,7 @@ async fn download_hls_video(output_path: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -267,11 +267,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -302,6 +302,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/grancursos/mod.rs b/src-tauri/plugins/courses/src/platforms/grancursos/mod.rsindex 90e8338a..daa86207 100644--- a/src-tauri/plugins/courses/src/platforms/grancursos/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/grancursos/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -63,7 +63,7 @@ impl PlatformDownloader for GrancursosDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download from Gran Cursos"diff --git a/src-tauri/plugins/courses/src/platforms/greatcourses/api.rs b/src-tauri/plugins/courses/src/platforms/greatcourses/api.rsindex c3c0a354..6c800f03 100644--- a/src-tauri/plugins/courses/src/platforms/greatcourses/api.rs+++ b/src-tauri/plugins/courses/src/platforms/greatcourses/api.rs@@ -53,7 +53,7 @@ fn build_client(token: &str) -> anyhow::Result<reqwest::Client> {);headers.insert("Accept", HeaderValue::from_static("application/json"));- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))@@ -71,7 +71,7 @@ fn session_file_path() -> anyhow::Result<PathBuf> {pub async fn authenticate(email: &str, password: &str) -> anyhow::Result<WondriumSession> {let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).connect_timeout(Duration::from_secs(30)).timeout(Duration::from_secs(60))diff --git a/src-tauri/plugins/courses/src/platforms/greatcourses/downloader.rs b/src-tauri/plugins/courses/src/platforms/greatcourses/downloader.rsindex 32e53349..b4aeccf8 100644--- a/src-tauri/plugins/courses/src/platforms/greatcourses/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/greatcourses/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, WondriumCourse, WondriumSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[wondrium] course already complete, skipping");return Ok(());}@@ -193,7 +193,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -205,7 +205,7 @@ async fn download_hls_video(output_path: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -228,11 +228,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -263,6 +263,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/greatcourses/mod.rs b/src-tauri/plugins/courses/src/platforms/greatcourses/mod.rsindex e667a46e..c4161306 100644--- a/src-tauri/plugins/courses/src/platforms/greatcourses/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/greatcourses/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -66,7 +66,7 @@ impl PlatformDownloader for GreatCoursesDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download Wondrium courses"diff --git a/src-tauri/plugins/courses/src/platforms/greennclub/api.rs b/src-tauri/plugins/courses/src/platforms/greennclub/api.rsindex 31f0be52..1f8d48d9 100644--- a/src-tauri/plugins/courses/src/platforms/greennclub/api.rs+++ b/src-tauri/plugins/courses/src/platforms/greennclub/api.rs@@ -61,7 +61,7 @@ fn build_client(token: &str) -> anyhow::Result<reqwest::Client> {headers.insert("Origin", HeaderValue::from_static("https://greenn.club"));headers.insert("Referer", HeaderValue::from_static("https://greenn.club/"));- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/greennclub/downloader.rs b/src-tauri/plugins/courses/src/platforms/greennclub/downloader.rsindex 7aa532b9..97d97259 100644--- a/src-tauri/plugins/courses/src/platforms/greennclub/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/greennclub/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, GreennCourse, GreennSession};@@ -56,7 +56,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {return Ok(());}@@ -100,7 +100,7 @@ pub async fn download_full_course(tokio::fs::create_dir_all(&lesson_dir).await?;if let Some(ref content) = lesson.content {- omniget_core::core::course_utils::save_description(&lesson_dir, content, "html")+ libreget_core::core::course_utils::save_description(&lesson_dir, content, "html").await.ok();}@@ -275,7 +275,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -287,7 +287,7 @@ async fn download_hls_video(output_path: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -310,11 +310,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -345,6 +345,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/greennclub/mod.rs b/src-tauri/plugins/courses/src/platforms/greennclub/mod.rsindex 426b8937..59e7efca 100644--- a/src-tauri/plugins/courses/src/platforms/greennclub/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/greennclub/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType};+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType};pub struct GreennClubDownloader;@@ -55,7 +55,7 @@ impl PlatformDownloader for GreennClubDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download from Greenn Club"diff --git a/src-tauri/plugins/courses/src/platforms/gumroad/api.rs b/src-tauri/plugins/courses/src/platforms/gumroad/api.rsindex 88410ded..95a57b78 100644--- a/src-tauri/plugins/courses/src/platforms/gumroad/api.rs+++ b/src-tauri/plugins/courses/src/platforms/gumroad/api.rs@@ -55,7 +55,7 @@ fn build_client(token: &str) -> anyhow::Result<reqwest::Client> {HeaderValue::from_str(&format!("Bearer {}", token))?,);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))@@ -73,7 +73,7 @@ fn session_file_path() -> anyhow::Result<PathBuf> {pub async fn authenticate(email: &str, password: &str) -> anyhow::Result<GumroadSession> {let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).connect_timeout(Duration::from_secs(30)).timeout(Duration::from_secs(60))diff --git a/src-tauri/plugins/courses/src/platforms/gumroad/downloader.rs b/src-tauri/plugins/courses/src/platforms/gumroad/downloader.rsindex 2f283808..79193cb4 100644--- a/src-tauri/plugins/courses/src/platforms/gumroad/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/gumroad/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, GumroadProduct, GumroadSession};@@ -46,7 +46,7 @@ pub async fn download_product();tokio::fs::create_dir_all(&product_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&product_dir) {+ if libreget_core::core::course_utils::is_course_complete(&product_dir) {return Ok(());}@@ -184,7 +184,7 @@ pub async fn download_product(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&product_dir)+ libreget_core::core::course_utils::mark_course_complete(&product_dir).await.ok();@@ -197,7 +197,7 @@ async fn download_with_ytdlp(token: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);@@ -209,7 +209,7 @@ async fn download_with_ytdlp("User-Agent: okhttp/4.8.1".to_string(),];- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -240,6 +240,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/gumroad/mod.rs b/src-tauri/plugins/courses/src/platforms/gumroad/mod.rsindex 518b898c..eb8a48e7 100644--- a/src-tauri/plugins/courses/src/platforms/gumroad/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/gumroad/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -63,7 +63,7 @@ impl PlatformDownloader for GumroadDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download Gumroad courses"diff --git a/src-tauri/plugins/courses/src/platforms/hotmart/auth.rs b/src-tauri/plugins/courses/src/platforms/hotmart/auth.rsindex cb0587b7..49505217 100644--- a/src-tauri/plugins/courses/src/platforms/hotmart/auth.rs+++ b/src-tauri/plugins/courses/src/platforms/hotmart/auth.rs@@ -68,7 +68,7 @@ pub fn build_client_from_saved(saved: &SavedSession) -> anyhow::Result<reqwest::default_headers.insert("Pragma", HeaderValue::from_static("no-cache"));default_headers.insert("cache-control", HeaderValue::from_static("no-cache"));- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36").cookie_provider(Arc::new(jar)).default_headers(default_headers)@@ -268,7 +268,7 @@ async fn extract_webview_cookies_js(window.eval(- "window.location.href = 'https://omniget-cookie-extract.local/?cookies=' + encodeURIComponent(document.cookie)",+ "window.location.href = 'https://libreget-cookie-extract.local/?cookies=' + encodeURIComponent(document.cookie)",).map_err(|e| anyhow!("JS eval failed: {}", e))?;@@ -387,7 +387,7 @@ pub async fn authenticate(#[cfg(not(windows))]{- if host == "omniget-cookie-extract.local" {+ if host == "libreget-cookie-extract.local" {for (key, value) in url.query_pairs() {if key == "cookies" {*cookie_data_nav.lock().unwrap() = Some(value.to_string());diff --git a/src-tauri/plugins/courses/src/platforms/hotmart/downloader.rs b/src-tauri/plugins/courses/src/platforms/hotmart/downloader.rsindex 6b4ca17b..4ab212d8 100644--- a/src-tauri/plugins/courses/src/platforms/hotmart/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/hotmart/downloader.rs@@ -10,10 +10,10 @@ use tokio::sync::{mpsc, Mutex};use tokio_util::sync::CancellationToken;use crate::platforms::traits::PlatformDownloader;-use omniget_core::core::filename;-use omniget_core::core::media_processor::MediaProcessor;-use omniget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType};-use omniget_core::models::settings::{self, DownloadSettings};+use libreget_core::core::filename;+use libreget_core::core::media_processor::MediaProcessor;+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType};+use libreget_core::models::settings::{self, DownloadSettings};use super::api::{self, Course, Lesson};use super::auth::HotmartSession;@@ -46,7 +46,7 @@ struct DoneManifest {fn done_path(file_path: &str) -> PathBuf {let p = PathBuf::from(file_path);let file_name = p.file_name().unwrap_or_default().to_string_lossy();- let manifest_name = format!("{}.omniget.done", file_name);+ let manifest_name = format!("{}.libreget.done", file_name);p.with_file_name(manifest_name)}@@ -110,7 +110,7 @@ impl HotmartDownloader {concurrent_fragments: u32,) -> Self {let hls_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).connect_timeout(Duration::from_secs(30)).timeout(Duration::from_secs(300)).pool_max_idle_per_host(50)@@ -338,13 +338,13 @@ impl HotmartDownloader {}}- match omniget_core::core::ytdlp::ensure_ytdlp().await {+ match libreget_core::core::ytdlp::ensure_ytdlp().await {Ok(ytdlp_path) => {let out_dir = std::path::Path::new(&out).parent().unwrap_or(std::path::Path::new("."));let (vtx, _vrx) = mpsc::channel(8);- match omniget_core::core::ytdlp::download_video(+ match libreget_core::core::ytdlp::download_video(&ytdlp_path,&embed_url,out_dir,@@ -435,13 +435,13 @@ impl HotmartDownloader {let yt_url =format!("https://www.youtube.com/watch?v={}", video_id);- match omniget_core::core::ytdlp::ensure_ytdlp().await {+ match libreget_core::core::ytdlp::ensure_ytdlp().await {Ok(ytdlp_path) => {let out_dir = std::path::Path::new(&out).parent().unwrap_or(std::path::Path::new("."));let (ytx, _yrx) = mpsc::channel(8);- match omniget_core::core::ytdlp::download_video(+ match libreget_core::core::ytdlp::download_video(&ytdlp_path,&yt_url,out_dir,@@ -826,7 +826,7 @@ async fn retry_hls_download(max_retries: u32,max_attempts: u32,hls_client: Option<reqwest::Client>,-) -> anyhow::Result<omniget_core::core::hls_downloader::HlsDownloadResult> {+) -> anyhow::Result<libreget_core::core::hls_downloader::HlsDownloadResult> {let mut last_err = None;for attempt in 0..max_attempts {if cancel_token.is_cancelled() {@@ -999,7 +999,7 @@ impl PlatformDownloader for HotmartDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Hotmart downloads use start_course_download, not the generic download trait"diff --git a/src-tauri/plugins/courses/src/platforms/kajabi/api.rs b/src-tauri/plugins/courses/src/platforms/kajabi/api.rsindex 34327d64..d0075f01 100644--- a/src-tauri/plugins/courses/src/platforms/kajabi/api.rs+++ b/src-tauri/plugins/courses/src/platforms/kajabi/api.rs@@ -78,7 +78,7 @@ fn build_client(token: &str, site_id: &str) -> anyhow::Result<reqwest::Client> {headers.insert("KJB-SITE-ID", HeaderValue::from_str(site_id)?);headers.insert("Accept", HeaderValue::from_static("application/json"));- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))@@ -99,7 +99,7 @@ fn build_auth_client(token: &str) -> anyhow::Result<reqwest::Client> {headers.insert("KJB-DP", HeaderValue::from_static("ANDROID"));headers.insert("Accept", HeaderValue::from_static("application/json"));- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))@@ -117,7 +117,7 @@ fn session_file_path() -> anyhow::Result<PathBuf> {pub async fn request_login_link(email: &str) -> anyhow::Result<String> {let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).connect_timeout(Duration::from_secs(30)).timeout(Duration::from_secs(60))@@ -162,7 +162,7 @@ pub async fn verify_login(login_token: &str,) -> anyhow::Result<String> {let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).connect_timeout(Duration::from_secs(30)).timeout(Duration::from_secs(60))diff --git a/src-tauri/plugins/courses/src/platforms/kajabi/downloader.rs b/src-tauri/plugins/courses/src/platforms/kajabi/downloader.rsindex 9e903cfb..8050194a 100644--- a/src-tauri/plugins/courses/src/platforms/kajabi/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/kajabi/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, KajabiCourse, KajabiSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[kajabi] course already complete, skipping");return Ok(());}@@ -273,7 +273,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -285,7 +285,7 @@ async fn download_hls_video(output_path: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -308,11 +308,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -343,6 +343,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/kajabi/mod.rs b/src-tauri/plugins/courses/src/platforms/kajabi/mod.rsindex f900064d..940bdfbb 100644--- a/src-tauri/plugins/courses/src/platforms/kajabi/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/kajabi/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -65,7 +65,7 @@ impl PlatformDownloader for KajabiDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download Kajabi courses"diff --git a/src-tauri/plugins/courses/src/platforms/kirvano/api.rs b/src-tauri/plugins/courses/src/platforms/kirvano/api.rsindex 44d103f1..cdd4c859 100644--- a/src-tauri/plugins/courses/src/platforms/kirvano/api.rs+++ b/src-tauri/plugins/courses/src/platforms/kirvano/api.rs@@ -65,7 +65,7 @@ fn build_client(token: &str) -> anyhow::Result<reqwest::Client> {HeaderValue::from_static("https://app.kirvano.com/"),);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))@@ -83,7 +83,7 @@ fn session_file_path() -> anyhow::Result<PathBuf> {pub async fn authenticate(email: &str, password: &str) -> anyhow::Result<KirvanoSession> {let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).connect_timeout(Duration::from_secs(30)).timeout(Duration::from_secs(60))diff --git a/src-tauri/plugins/courses/src/platforms/kirvano/downloader.rs b/src-tauri/plugins/courses/src/platforms/kirvano/downloader.rsindex ee0bbefb..08bfe354 100644--- a/src-tauri/plugins/courses/src/platforms/kirvano/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/kirvano/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, KirvanoCourse, KirvanoSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[kirvano] course already complete, skipping");return Ok(());}@@ -120,7 +120,7 @@ pub async fn download_full_course(filename::sanitize_path_component(&lesson.name));tokio::fs::create_dir_all(&lesson_desc_dir).await?;- omniget_core::core::course_utils::save_description(&lesson_desc_dir, desc, "html")+ libreget_core::core::course_utils::save_description(&lesson_desc_dir, desc, "html").await.ok();}@@ -229,7 +229,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -241,11 +241,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -276,6 +276,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/kirvano/mod.rs b/src-tauri/plugins/courses/src/platforms/kirvano/mod.rsindex 56dc05e3..75100490 100644--- a/src-tauri/plugins/courses/src/platforms/kirvano/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/kirvano/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -65,7 +65,7 @@ impl PlatformDownloader for KirvanoDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download from Kirvano"diff --git a/src-tauri/plugins/courses/src/platforms/kiwify/api.rs b/src-tauri/plugins/courses/src/platforms/kiwify/api.rsindex 0b726e83..7be31327 100644--- a/src-tauri/plugins/courses/src/platforms/kiwify/api.rs+++ b/src-tauri/plugins/courses/src/platforms/kiwify/api.rs@@ -79,7 +79,7 @@ fn build_client(token: &str) -> anyhow::Result<reqwest::Client> {HeaderValue::from_static("https://admin.kiwify.com.br/"),);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))@@ -97,7 +97,7 @@ fn session_file_path() -> anyhow::Result<PathBuf> {pub async fn authenticate(email: &str, password: &str) -> anyhow::Result<KiwifySession> {let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).connect_timeout(Duration::from_secs(30)).timeout(Duration::from_secs(60))diff --git a/src-tauri/plugins/courses/src/platforms/kiwify/downloader.rs b/src-tauri/plugins/courses/src/platforms/kiwify/downloader.rsindex 9af366a7..4de4001a 100644--- a/src-tauri/plugins/courses/src/platforms/kiwify/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/kiwify/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, KiwifyCourse, KiwifySession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {return Ok(());}@@ -123,7 +123,7 @@ pub async fn download_full_course(};if let Some(ref desc) = detail.description {- omniget_core::core::course_utils::save_description(&lesson_dir, desc, "html")+ libreget_core::core::course_utils::save_description(&lesson_dir, desc, "html").await.ok();}@@ -293,7 +293,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -305,7 +305,7 @@ async fn download_hls_video(output_path: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -328,11 +328,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -363,6 +363,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/kiwify/mod.rs b/src-tauri/plugins/courses/src/platforms/kiwify/mod.rsindex accc83d1..0b6a8e14 100644--- a/src-tauri/plugins/courses/src/platforms/kiwify/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/kiwify/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -65,7 +65,7 @@ impl PlatformDownloader for KiwifyDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download Kiwify courses"diff --git a/src-tauri/plugins/courses/src/platforms/masterclass/api.rs b/src-tauri/plugins/courses/src/platforms/masterclass/api.rsindex 67a75231..bd0815b2 100644--- a/src-tauri/plugins/courses/src/platforms/masterclass/api.rs+++ b/src-tauri/plugins/courses/src/platforms/masterclass/api.rs@@ -52,7 +52,7 @@ fn build_client(cookies: &str) -> anyhow::Result<reqwest::Client> {headers.insert("Cookie", HeaderValue::from_str(cookies)?);headers.insert("Accept", HeaderValue::from_static("application/json"));- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/masterclass/downloader.rs b/src-tauri/plugins/courses/src/platforms/masterclass/downloader.rsindex a6d7ae6d..5940487a 100644--- a/src-tauri/plugins/courses/src/platforms/masterclass/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/masterclass/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, MasterClassCourse, MasterClassSession};@@ -63,7 +63,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[masterclass] course already complete, skipping");return Ok(());}@@ -211,7 +211,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -223,7 +223,7 @@ async fn download_hls_video(output_path: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -246,11 +246,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -281,6 +281,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/masterclass/mod.rs b/src-tauri/plugins/courses/src/platforms/masterclass/mod.rsindex d075fdc7..67ab5446 100644--- a/src-tauri/plugins/courses/src/platforms/masterclass/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/masterclass/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -63,7 +63,7 @@ impl PlatformDownloader for MasterClassDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download MasterClass courses"diff --git a/src-tauri/plugins/courses/src/platforms/matematicaprapassar/mod.rs b/src-tauri/plugins/courses/src/platforms/matematicaprapassar/mod.rsindex f9ab5b1d..a04e2849 100644--- a/src-tauri/plugins/courses/src/platforms/matematicaprapassar/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/matematicaprapassar/mod.rs@@ -3,7 +3,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -61,7 +61,7 @@ impl PlatformDownloader for MatematicaPraPassarDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download Matemática Pra Passar courses"diff --git a/src-tauri/plugins/courses/src/platforms/medcel/api.rs b/src-tauri/plugins/courses/src/platforms/medcel/api.rsindex 7e2dd03b..d4339a43 100644--- a/src-tauri/plugins/courses/src/platforms/medcel/api.rs+++ b/src-tauri/plugins/courses/src/platforms/medcel/api.rs@@ -74,7 +74,7 @@ fn build_client(token: &str, api_key: &str, origin: &str) -> anyhow::Result<reqwHeaderValue::from_static("application/json, text/plain, */*"),);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))@@ -104,7 +104,7 @@ pub async fn authenticate(api_key: &str,) -> anyhow::Result<MedcelSession> {let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).connect_timeout(Duration::from_secs(30)).timeout(Duration::from_secs(60))diff --git a/src-tauri/plugins/courses/src/platforms/medcel/downloader.rs b/src-tauri/plugins/courses/src/platforms/medcel/downloader.rsindex 1f274f63..90c114c0 100644--- a/src-tauri/plugins/courses/src/platforms/medcel/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/medcel/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, MedcelCourse, MedcelSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[medcel] course already complete, skipping");return Ok(());}@@ -96,7 +96,7 @@ pub async fn download_full_course(tokio::fs::create_dir_all(&lesson_dir).await?;if let Some(ref desc) = lesson.description {- omniget_core::core::course_utils::save_description(&lesson_dir, desc, "txt")+ libreget_core::core::course_utils::save_description(&lesson_dir, desc, "txt").await.ok();}@@ -245,7 +245,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -257,7 +257,7 @@ async fn download_hls_video(output_path: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -280,11 +280,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -315,6 +315,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/medcel/mod.rs b/src-tauri/plugins/courses/src/platforms/medcel/mod.rsindex d382baa4..000ca087 100644--- a/src-tauri/plugins/courses/src/platforms/medcel/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/medcel/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -65,7 +65,7 @@ impl PlatformDownloader for MedcelDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download Medcel courses"diff --git a/src-tauri/plugins/courses/src/platforms/medcof/api.rs b/src-tauri/plugins/courses/src/platforms/medcof/api.rsindex beccd661..1862c0f0 100644--- a/src-tauri/plugins/courses/src/platforms/medcof/api.rs+++ b/src-tauri/plugins/courses/src/platforms/medcof/api.rs@@ -52,7 +52,7 @@ fn build_client(token: &str) -> anyhow::Result<reqwest::Client> {);headers.insert("Accept", HeaderValue::from_static("application/json"));- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/medcof/downloader.rs b/src-tauri/plugins/courses/src/platforms/medcof/downloader.rsindex 4e56a3c6..a8099c0d 100644--- a/src-tauri/plugins/courses/src/platforms/medcof/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/medcof/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, MedcofCourse, MedcofSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[medcof] course already complete, skipping");return Ok(());}@@ -96,7 +96,7 @@ pub async fn download_full_course(if let Some(ref desc) = lesson.description {let lesson_desc_dir = format!("{}/{}. {}", mod_dir, li + 1, lesson_name);tokio::fs::create_dir_all(&lesson_desc_dir).await?;- omniget_core::core::course_utils::save_description(&lesson_desc_dir, desc, "txt")+ libreget_core::core::course_utils::save_description(&lesson_desc_dir, desc, "txt").await.ok();}@@ -227,7 +227,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -239,7 +239,7 @@ async fn download_hls_video(output_path: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -262,11 +262,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,diff --git a/src-tauri/plugins/courses/src/platforms/medcof/mod.rs b/src-tauri/plugins/courses/src/platforms/medcof/mod.rsindex b0f90829..717edad9 100644--- a/src-tauri/plugins/courses/src/platforms/medcof/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/medcof/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -63,7 +63,7 @@ impl PlatformDownloader for MedcofDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download from Medcof"))}diff --git a/src-tauri/plugins/courses/src/platforms/medway/api.rs b/src-tauri/plugins/courses/src/platforms/medway/api.rsindex 9b177214..81f98fb0 100644--- a/src-tauri/plugins/courses/src/platforms/medway/api.rs+++ b/src-tauri/plugins/courses/src/platforms/medway/api.rs@@ -54,7 +54,7 @@ fn build_client(token: &str) -> anyhow::Result<reqwest::Client> {);headers.insert("Accept", HeaderValue::from_static("application/json"));- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/medway/downloader.rs b/src-tauri/plugins/courses/src/platforms/medway/downloader.rsindex 6e47362b..edc10607 100644--- a/src-tauri/plugins/courses/src/platforms/medway/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/medway/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, MedwayCourse, MedwaySession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[medway] course already complete, skipping");return Ok(());}@@ -95,7 +95,7 @@ pub async fn download_full_course(if let Some(ref desc) = lesson.description {let lesson_desc_dir = format!("{}/{}. {}", mod_dir, li + 1, lesson_name);tokio::fs::create_dir_all(&lesson_desc_dir).await?;- omniget_core::core::course_utils::save_description(&lesson_desc_dir, desc, "html")+ libreget_core::core::course_utils::save_description(&lesson_desc_dir, desc, "html").await.ok();}@@ -255,7 +255,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -267,11 +267,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -302,6 +302,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/medway/mod.rs b/src-tauri/plugins/courses/src/platforms/medway/mod.rsindex f67dfa19..5e0af2d5 100644--- a/src-tauri/plugins/courses/src/platforms/medway/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/medway/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -63,7 +63,7 @@ impl PlatformDownloader for MedwayDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download Medway courses"diff --git a/src-tauri/plugins/courses/src/platforms/memberkit/api.rs b/src-tauri/plugins/courses/src/platforms/memberkit/api.rsindex 71426aca..e1af010b 100644--- a/src-tauri/plugins/courses/src/platforms/memberkit/api.rs+++ b/src-tauri/plugins/courses/src/platforms/memberkit/api.rs@@ -68,7 +68,7 @@ fn build_client(cookies: &str, site_url: &str) -> anyhow::Result<reqwest::Client);headers.insert("Referer", HeaderValue::from_str(&format!("{}/", site_url))?);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))@@ -90,7 +90,7 @@ pub async fn authenticate(site_url: &str,) -> anyhow::Result<MemberkitSession> {let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).cookie_store(true).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/memberkit/downloader.rs b/src-tauri/plugins/courses/src/platforms/memberkit/downloader.rsindex 5252395c..59de92e9 100644--- a/src-tauri/plugins/courses/src/platforms/memberkit/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/memberkit/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, MemberkitCourse, MemberkitSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[memberkit] course already complete, skipping");return Ok(());}@@ -124,7 +124,7 @@ pub async fn download_full_course(};if let Some(ref desc) = detail.description {- omniget_core::core::course_utils::save_description(&lesson_dir, desc, "html")+ libreget_core::core::course_utils::save_description(&lesson_dir, desc, "html").await.ok();}@@ -248,7 +248,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -260,11 +260,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -295,6 +295,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/memberkit/mod.rs b/src-tauri/plugins/courses/src/platforms/memberkit/mod.rsindex 7262c67b..c5dc4d28 100644--- a/src-tauri/plugins/courses/src/platforms/memberkit/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/memberkit/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -63,7 +63,7 @@ impl PlatformDownloader for MemberkitDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download from Memberkit"diff --git a/src-tauri/plugins/courses/src/platforms/mod.rs b/src-tauri/plugins/courses/src/platforms/mod.rsindex 2f94a304..faeb09bc 100644--- a/src-tauri/plugins/courses/src/platforms/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/mod.rs@@ -1,4 +1,4 @@-pub use omniget_core::platforms::traits;+pub use libreget_core::platforms::traits;pub mod afyainternato;pub mod alpaclass;diff --git a/src-tauri/plugins/courses/src/platforms/pluralsight/api.rs b/src-tauri/plugins/courses/src/platforms/pluralsight/api.rsindex 36ab08cf..18387f5e 100644--- a/src-tauri/plugins/courses/src/platforms/pluralsight/api.rs+++ b/src-tauri/plugins/courses/src/platforms/pluralsight/api.rs@@ -62,7 +62,7 @@ fn build_client(cookies: &str, xsrf_token: &str) -> anyhow::Result<reqwest::Clieheaders.insert("x-xsrf-token", HeaderValue::from_str(xsrf_token)?);headers.insert("Accept", HeaderValue::from_static("application/json"));- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/pluralsight/downloader.rs b/src-tauri/plugins/courses/src/platforms/pluralsight/downloader.rsindex 24f76051..ab24c956 100644--- a/src-tauri/plugins/courses/src/platforms/pluralsight/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/pluralsight/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, PluralsightCourse, PluralsightSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[pluralsight] course already complete, skipping");return Ok(());}@@ -200,7 +200,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -212,7 +212,7 @@ async fn download_hls_video(output_path: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -235,11 +235,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -270,6 +270,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/pluralsight/mod.rs b/src-tauri/plugins/courses/src/platforms/pluralsight/mod.rsindex b0f8f3e9..5b7b423d 100644--- a/src-tauri/plugins/courses/src/platforms/pluralsight/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/pluralsight/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -63,7 +63,7 @@ impl PlatformDownloader for PluralsightDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download Pluralsight courses"diff --git a/src-tauri/plugins/courses/src/platforms/rocketseat/api.rs b/src-tauri/plugins/courses/src/platforms/rocketseat/api.rsindex 75c5c917..6bf29461 100644--- a/src-tauri/plugins/courses/src/platforms/rocketseat/api.rs+++ b/src-tauri/plugins/courses/src/platforms/rocketseat/api.rs@@ -62,7 +62,7 @@ fn build_client(token: &str) -> anyhow::Result<reqwest::Client> {HeaderValue::from_static("https://app.rocketseat.com.br/"),);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/rocketseat/downloader.rs b/src-tauri/plugins/courses/src/platforms/rocketseat/downloader.rsindex ec93f6b6..074ef850 100644--- a/src-tauri/plugins/courses/src/platforms/rocketseat/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/rocketseat/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, RocketseatCourse, RocketseatSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[rocketseat] course already complete, skipping");return Ok(());}@@ -160,7 +160,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -172,11 +172,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,diff --git a/src-tauri/plugins/courses/src/platforms/rocketseat/mod.rs b/src-tauri/plugins/courses/src/platforms/rocketseat/mod.rsindex dddb77ad..cd31986c 100644--- a/src-tauri/plugins/courses/src/platforms/rocketseat/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/rocketseat/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -63,7 +63,7 @@ impl PlatformDownloader for RocketseatDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download from Rocketseat"diff --git a/src-tauri/plugins/courses/src/platforms/skool/api.rs b/src-tauri/plugins/courses/src/platforms/skool/api.rsindex 75f06d83..072638bf 100644--- a/src-tauri/plugins/courses/src/platforms/skool/api.rs+++ b/src-tauri/plugins/courses/src/platforms/skool/api.rs@@ -81,7 +81,7 @@ pub fn build_client(cookie_token: &str) -> anyhow::Result<reqwest::Client> {HeaderValue::from_static("https://www.skool.com/"),);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))@@ -113,7 +113,7 @@ pub async fn fetch_build_id(client: &reqwest::Client) -> anyhow::Result<String>pub async fn authenticate(email: &str, password: &str) -> anyhow::Result<SkoolSession> {let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).cookie_store(true).connect_timeout(Duration::from_secs(30))diff --git a/src-tauri/plugins/courses/src/platforms/skool/downloader.rs b/src-tauri/plugins/courses/src/platforms/skool/downloader.rsindex d635deea..903199b6 100644--- a/src-tauri/plugins/courses/src/platforms/skool/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/skool/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, SkoolGroup, SkoolSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {return Ok(());}@@ -133,7 +133,7 @@ pub async fn download_full_course(};if let Some(ref desc) = detail.description {- omniget_core::core::course_utils::save_description(&lesson_dir, desc, "html")+ libreget_core::core::course_utils::save_description(&lesson_dir, desc, "html").await.ok();}@@ -250,7 +250,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -262,11 +262,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -297,6 +297,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/skool/mod.rs b/src-tauri/plugins/courses/src/platforms/skool/mod.rsindex ba53e77c..87f445a1 100644--- a/src-tauri/plugins/courses/src/platforms/skool/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/skool/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -63,7 +63,7 @@ impl PlatformDownloader for SkoolDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download Skool courses"diff --git a/src-tauri/plugins/courses/src/platforms/teachable/api.rs b/src-tauri/plugins/courses/src/platforms/teachable/api.rsindex eaafed34..c22acbae 100644--- a/src-tauri/plugins/courses/src/platforms/teachable/api.rs+++ b/src-tauri/plugins/courses/src/platforms/teachable/api.rs@@ -80,7 +80,7 @@ fn build_client(token: &str) -> anyhow::Result<reqwest::Client> {headers.insert("X-DEVICE-OS", HeaderValue::from_static("Android 35"));headers.insert("Accept", HeaderValue::from_static("application/json"));- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))@@ -98,7 +98,7 @@ fn session_file_path() -> anyhow::Result<PathBuf> {pub async fn request_otp(email: &str) -> anyhow::Result<()> {let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).connect_timeout(Duration::from_secs(30)).timeout(Duration::from_secs(60))@@ -130,7 +130,7 @@ pub async fn request_otp(email: &str) -> anyhow::Result<()> {pub async fn verify_otp(email: &str, otp_code: &str) -> anyhow::Result<TeachableSession> {let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).connect_timeout(Duration::from_secs(30)).timeout(Duration::from_secs(60))diff --git a/src-tauri/plugins/courses/src/platforms/teachable/downloader.rs b/src-tauri/plugins/courses/src/platforms/teachable/downloader.rsindex b1728615..09d72280 100644--- a/src-tauri/plugins/courses/src/platforms/teachable/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/teachable/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, TeachableCourse, TeachableSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[teachable] course already complete, skipping");return Ok(());}@@ -285,7 +285,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -298,7 +298,7 @@ async fn download_hls_video(referer: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -322,11 +322,11 @@ async fn download_with_ytdlp(referer: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -357,6 +357,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/teachable/mod.rs b/src-tauri/plugins/courses/src/platforms/teachable/mod.rsindex 5531b59f..22ea853a 100644--- a/src-tauri/plugins/courses/src/platforms/teachable/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/teachable/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -65,7 +65,7 @@ impl PlatformDownloader for TeachableDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download Teachable courses"diff --git a/src-tauri/plugins/courses/src/platforms/themembers/api.rs b/src-tauri/plugins/courses/src/platforms/themembers/api.rsindex dc061e5f..c90f1e46 100644--- a/src-tauri/plugins/courses/src/platforms/themembers/api.rs+++ b/src-tauri/plugins/courses/src/platforms/themembers/api.rs@@ -90,7 +90,7 @@ fn build_client(HeaderValue::from_str(&format!("https://{}/", domain))?,);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))@@ -108,7 +108,7 @@ fn session_file_path() -> anyhow::Result<PathBuf> {pub async fn resolve_tenant(domain: &str) -> anyhow::Result<(String, String)> {let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).connect_timeout(Duration::from_secs(30)).timeout(Duration::from_secs(60))@@ -165,7 +165,7 @@ pub async fn authenticate(let (tenant_id, org_id) = resolve_tenant(domain).await?;let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).connect_timeout(Duration::from_secs(30)).timeout(Duration::from_secs(60))@@ -492,7 +492,7 @@ async fn resolve_the_player_ai_url(video_url: &str) -> anyhow::Result<String> {.unwrap_or(video_url);let temp_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).connect_timeout(Duration::from_secs(30)).timeout(Duration::from_secs(60))diff --git a/src-tauri/plugins/courses/src/platforms/themembers/downloader.rs b/src-tauri/plugins/courses/src/platforms/themembers/downloader.rsindex 0c03cc7c..b1636a23 100644--- a/src-tauri/plugins/courses/src/platforms/themembers/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/themembers/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, TheMembersCourse, TheMembersSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {return Ok(());}@@ -123,13 +123,13 @@ pub async fn download_full_course(};if let Some(ref desc) = detail.description {- omniget_core::core::course_utils::save_description(&lesson_dir, desc, "html")+ libreget_core::core::course_utils::save_description(&lesson_dir, desc, "html").await.ok();}if let Some(ref pdf_url) = detail.url_pdf {- omniget_core::core::course_utils::download_attachment(+ libreget_core::core::course_utils::download_attachment(&session.client,pdf_url,&lesson_dir,@@ -292,7 +292,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -305,7 +305,7 @@ async fn download_hls_video(referer: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -329,11 +329,11 @@ async fn download_with_ytdlp(referer: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -364,6 +364,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/themembers/mod.rs b/src-tauri/plugins/courses/src/platforms/themembers/mod.rsindex 223b5f3a..edb3331c 100644--- a/src-tauri/plugins/courses/src/platforms/themembers/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/themembers/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType};+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType};pub struct TheMembersDownloader;@@ -55,7 +55,7 @@ impl PlatformDownloader for TheMembersDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download from TheMembers"diff --git a/src-tauri/plugins/courses/src/platforms/thinkific/api.rs b/src-tauri/plugins/courses/src/platforms/thinkific/api.rsindex 08804d1d..60ba80a5 100644--- a/src-tauri/plugins/courses/src/platforms/thinkific/api.rs+++ b/src-tauri/plugins/courses/src/platforms/thinkific/api.rs@@ -80,7 +80,7 @@ fn build_client(cookies: &str, site_url: &str) -> anyhow::Result<reqwest::Clientheaders.insert("Accept", HeaderValue::from_static("application/json"));headers.insert("Referer", HeaderValue::from_str(&format!("{}/", site_url))?);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/thinkific/downloader.rs b/src-tauri/plugins/courses/src/platforms/thinkific/downloader.rsindex c851d82c..ee6bfbca 100644--- a/src-tauri/plugins/courses/src/platforms/thinkific/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/thinkific/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, ThinkificCourse, ThinkificSession};@@ -51,7 +51,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {tracing::info!("[thinkific] course already complete, skipping");return Ok(());}@@ -242,7 +242,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -273,13 +273,13 @@ async fn download_with_ytdlp(site_url: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);let cookie_header = format!("Cookie:{}", cookies);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -310,6 +310,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/thinkific/mod.rs b/src-tauri/plugins/courses/src/platforms/thinkific/mod.rsindex 24fb5a39..b602cf71 100644--- a/src-tauri/plugins/courses/src/platforms/thinkific/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/thinkific/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};@@ -63,7 +63,7 @@ impl PlatformDownloader for ThinkificDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download Thinkific courses"diff --git a/src-tauri/plugins/courses/src/platforms/udemy/auth.rs b/src-tauri/plugins/courses/src/platforms/udemy/auth.rsindex c68dee28..8f96cb5a 100644--- a/src-tauri/plugins/courses/src/platforms/udemy/auth.rs+++ b/src-tauri/plugins/courses/src/platforms/udemy/auth.rs@@ -104,7 +104,7 @@ pub fn build_client_from_saved(saved: &SavedSession) -> anyhow::Result<reqwest::}default_headers.insert("accept-language", HeaderValue::from_static("en_US"));- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(UDEMY_API_USER_AGENT).default_headers(default_headers).redirect(reqwest::redirect::Policy::limited(10))@@ -155,7 +155,7 @@ fn build_enterprise_client(saved: &SavedSession) -> anyhow::Result<reqwest::Clie);default_headers.insert("accept-language", HeaderValue::from_static("en_US"));- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(UDEMY_API_USER_AGENT).default_headers(default_headers).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/udemy/downloader.rs b/src-tauri/plugins/courses/src/platforms/udemy/downloader.rsindex 15a30991..bebbde45 100644--- a/src-tauri/plugins/courses/src/platforms/udemy/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/udemy/downloader.rs@@ -7,7 +7,7 @@ use futures::StreamExt;use tokio::sync::{mpsc, Mutex};use tokio_util::sync::CancellationToken;-use omniget_core::core::media_processor::MediaProcessor;+use libreget_core::core::media_processor::MediaProcessor;use super::api::{self, UdemyCourse};use super::auth::UdemySession;@@ -53,7 +53,7 @@ impl UdemyDownloader {max_retries: u32,) -> Self {let hls_client =- omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).connect_timeout(Duration::from_secs(30)).timeout(Duration::from_secs(300))diff --git a/src-tauri/plugins/courses/src/platforms/voompplay/api.rs b/src-tauri/plugins/courses/src/platforms/voompplay/api.rsindex f67d1997..1020bace 100644--- a/src-tauri/plugins/courses/src/platforms/voompplay/api.rs+++ b/src-tauri/plugins/courses/src/platforms/voompplay/api.rs@@ -67,7 +67,7 @@ fn build_client(token: &str) -> anyhow::Result<reqwest::Client> {HeaderValue::from_static("https://voompplay.com.br/"),);- let client = omniget_core::core::http_client::apply_global_proxy(reqwest::Client::builder())+ let client = libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder()).user_agent(USER_AGENT).default_headers(headers).redirect(reqwest::redirect::Policy::limited(10))diff --git a/src-tauri/plugins/courses/src/platforms/voompplay/downloader.rs b/src-tauri/plugins/courses/src/platforms/voompplay/downloader.rsindex df7eecde..6c8d3581 100644--- a/src-tauri/plugins/courses/src/platforms/voompplay/downloader.rs+++ b/src-tauri/plugins/courses/src/platforms/voompplay/downloader.rs@@ -7,7 +7,7 @@ use tauri::Emitter;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;-use omniget_core::core::filename;+use libreget_core::core::filename;use super::api::{self, VoompCourse, VoompSession};@@ -56,7 +56,7 @@ pub async fn download_full_course();tokio::fs::create_dir_all(&course_dir).await?;- if omniget_core::core::course_utils::is_course_complete(&course_dir) {+ if libreget_core::core::course_utils::is_course_complete(&course_dir) {return Ok(());}@@ -100,7 +100,7 @@ pub async fn download_full_course(tokio::fs::create_dir_all(&lesson_dir).await?;if let Some(ref content) = lesson.content {- omniget_core::core::course_utils::save_description(&lesson_dir, content, "html")+ libreget_core::core::course_utils::save_description(&lesson_dir, content, "html").await.ok();}@@ -275,7 +275,7 @@ pub async fn download_full_course(return Err(anyhow!("Download cancelled by user"));}- omniget_core::core::course_utils::mark_course_complete(&course_dir)+ libreget_core::core::course_utils::mark_course_complete(&course_dir).await.ok();@@ -287,7 +287,7 @@ async fn download_hls_video(output_path: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- use omniget_core::core::media_processor::MediaProcessor;+ use libreget_core::core::media_processor::MediaProcessor;let _result = MediaProcessor::download_hls(m3u8_url,@@ -310,11 +310,11 @@ async fn download_with_ytdlp(output_dir: &str,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {- let ytdlp_path = omniget_core::core::ytdlp::ensure_ytdlp().await?;+ let ytdlp_path = libreget_core::core::ytdlp::ensure_ytdlp().await?;let out_dir = Path::new(output_dir);let (tx, _rx) = mpsc::channel(8);- let result = omniget_core::core::ytdlp::download_video(+ let result = libreget_core::core::ytdlp::download_video(&ytdlp_path,url,out_dir,@@ -345,6 +345,6 @@ async fn download_file_direct(let out = Path::new(output_path);let (tx, _rx) = mpsc::channel(8);- omniget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token))+ libreget_core::core::direct_downloader::download_direct(client, url, out, tx, Some(cancel_token)).await}diff --git a/src-tauri/plugins/courses/src/platforms/voompplay/mod.rs b/src-tauri/plugins/courses/src/platforms/voompplay/mod.rsindex 0d65ccd5..40ad14c7 100644--- a/src-tauri/plugins/courses/src/platforms/voompplay/mod.rs+++ b/src-tauri/plugins/courses/src/platforms/voompplay/mod.rs@@ -6,7 +6,7 @@ use async_trait::async_trait;use tokio::sync::mpsc;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType};+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType};pub struct VoompPlayDownloader;@@ -55,7 +55,7 @@ impl PlatformDownloader for VoompPlayDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow!("Use the courses interface to download from Voomp Play"diff --git a/src-tauri/plugins/courses/src/settings_helper.rs b/src-tauri/plugins/courses/src/settings_helper.rsindex ef8e060d..7c5484bb 100644--- a/src-tauri/plugins/courses/src/settings_helper.rs+++ b/src-tauri/plugins/courses/src/settings_helper.rs@@ -1,7 +1,7 @@-use omniget_core::models::settings::AppSettings;+use libreget_core::models::settings::AppSettings;pub fn load_settings() -> AppSettings {- if let Some(data_dir) = omniget_core::core::paths::app_data_dir() {+ if let Some(data_dir) = libreget_core::core::paths::app_data_dir() {let path = data_dir.join("settings.json");if let Ok(content) = std::fs::read_to_string(path) {if let Ok(val) = serde_json::from_str::<serde_json::Value>(&content) {diff --git a/src-tauri/plugins/telegram/Cargo.toml b/src-tauri/plugins/telegram/Cargo.tomlindex 8e2ed11e..ff65e98d 100644--- a/src-tauri/plugins/telegram/Cargo.toml+++ b/src-tauri/plugins/telegram/Cargo.toml@@ -1,5 +1,5 @@[package]-name = "omniget-plugin-telegram"+name = "libreget-plugin-telegram"version = "1.2.1"edition = "2021"@@ -26,5 +26,5 @@ url = "2"filetime = "0.2.27"os_info = "3"sys-locale = "0.3"-omniget-core = { path = "../../omniget-core", features = ["desktop"] }-omniget-plugin-sdk = { path = "../../omniget-plugin-sdk" }+libreget-core = { path = "../../libreget-core", features = ["desktop"] }+libreget-plugin-sdk = { path = "../../libreget-plugin-sdk" }diff --git a/src-tauri/plugins/telegram/src/commands/telegram.rs b/src-tauri/plugins/telegram/src/commands/telegram.rsindex 99a91a51..639ec5c2 100644--- a/src-tauri/plugins/telegram/src/commands/telegram.rs+++ b/src-tauri/plugins/telegram/src/commands/telegram.rs@@ -5,7 +5,7 @@ use tokio::sync::{mpsc, Semaphore};use tokio_util::sync::CancellationToken;use base64::Engine;-use omniget_plugin_sdk::PluginHost;+use libreget_plugin_sdk::PluginHost;use crate::platforms::telegram::api::{self, TelegramChat, TelegramMediaItem};use crate::platforms::telegram::auth::{self, QrPollStatus, VerifyError};@@ -292,7 +292,7 @@ pub async fn telegram_download_media(},);- let (tx, mut rx) = mpsc::channel::<omniget_core::models::progress::ProgressUpdate>(32);+ let (tx, mut rx) = mpsc::channel::<libreget_core::models::progress::ProgressUpdate>(32);let host_progress = host.clone();let file_name_progress = file_name_clone.clone();@@ -550,7 +550,7 @@ pub async fn telegram_download_batch();let (tx, mut rx) =- mpsc::channel::<omniget_core::models::progress::ProgressUpdate>(32);+ mpsc::channel::<libreget_core::models::progress::ProgressUpdate>(32);let host_progress = host.clone();let progress_forwarder = tokio::spawn(async move {diff --git a/src-tauri/plugins/telegram/src/lib.rs b/src-tauri/plugins/telegram/src/lib.rsindex a7c727bf..f16649d0 100644--- a/src-tauri/plugins/telegram/src/lib.rs+++ b/src-tauri/plugins/telegram/src/lib.rs@@ -3,7 +3,7 @@ pub mod platforms;pub mod settings_helper;pub mod state;-use omniget_plugin_sdk::{OmnigetPlugin, PluginHost};+use libreget_plugin_sdk::{LibregetPlugin, PluginHost};use state::TelegramPluginState;use std::sync::Arc;@@ -27,11 +27,11 @@ impl TelegramPlugin {}}-pub fn manifest() -> omniget_plugin_sdk::PluginManifest {+pub fn manifest() -> libreget_plugin_sdk::PluginManifest {serde_json::from_str(include_str!("../plugin.json")).expect("valid telegram manifest")}-impl OmnigetPlugin for TelegramPlugin {+impl LibregetPlugin for TelegramPlugin {fn id(&self) -> &str {"telegram"}diff --git a/src-tauri/plugins/telegram/src/platforms/mod.rs b/src-tauri/plugins/telegram/src/platforms/mod.rsindex 57ac8013..bbf23d8b 100644--- a/src-tauri/plugins/telegram/src/platforms/mod.rs+++ b/src-tauri/plugins/telegram/src/platforms/mod.rs@@ -1,3 +1,3 @@-pub use omniget_core::platforms::traits;+pub use libreget_core::platforms::traits;pub mod telegram;diff --git a/src-tauri/plugins/telegram/src/platforms/telegram/api.rs b/src-tauri/plugins/telegram/src/platforms/telegram/api.rsindex 03b41e71..dffcea4f 100644--- a/src-tauri/plugins/telegram/src/platforms/telegram/api.rs+++ b/src-tauri/plugins/telegram/src/platforms/telegram/api.rs@@ -732,7 +732,7 @@ pub async fn download_media(chat_type: &str,message_id: i32,output_path: &Path,- progress_tx: mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ progress_tx: mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {let _t = std::time::Instant::now();@@ -866,7 +866,7 @@ pub async fn download_media_with_retry(chat_type: &str,message_id: i32,output_path: &Path,- progress_tx: mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ progress_tx: mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {let _t = std::time::Instant::now();diff --git a/src-tauri/plugins/telegram/src/platforms/telegram/downloader.rs b/src-tauri/plugins/telegram/src/platforms/telegram/downloader.rsindex cca2fdf8..e9b9ff10 100644--- a/src-tauri/plugins/telegram/src/platforms/telegram/downloader.rs+++ b/src-tauri/plugins/telegram/src/platforms/telegram/downloader.rs@@ -3,10 +3,10 @@ use grammers_client::types::Peer;use super::auth::TelegramSessionHandle;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};-use omniget_core::models::settings::default_filename_template;+use libreget_core::models::settings::default_filename_template;pub struct TelegramDownloader {session: TelegramSessionHandle,@@ -170,7 +170,7 @@ impl PlatformDownloader for TelegramDownloader {&self,info: &MediaInfo,opts: &DownloadOptions,- progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {let _t = std::time::Instant::now();let quality = info@@ -272,7 +272,7 @@ impl PlatformDownloader for TelegramDownloader {Ok(size) => {tokio::fs::rename(&tmp_path, &output_path).await?;let _ = progress- .send(omniget_core::models::progress::ProgressUpdate::percent(+ .send(libreget_core::models::progress::ProgressUpdate::percent(100.0,)).await;diff --git a/src-tauri/plugins/telegram/src/platforms/telegram/parallel_download.rs b/src-tauri/plugins/telegram/src/platforms/telegram/parallel_download.rsindex 176ae0eb..4766eb73 100644--- a/src-tauri/plugins/telegram/src/platforms/telegram/parallel_download.rs+++ b/src-tauri/plugins/telegram/src/platforms/telegram/parallel_download.rs@@ -214,7 +214,7 @@ pub async fn download_file(client: &Client,media: &MediaLocation,output_path: &Path,- progress_tx: mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ progress_tx: mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,cancel_token: &CancellationToken,) -> anyhow::Result<u64> {tracing::info!(@@ -260,7 +260,7 @@ pub async fn download_file(if media.size > 0 {let percent = (downloaded as f64 / media.size as f64) * 100.0;let _ = progress_tx- .send(omniget_core::models::progress::ProgressUpdate::percent(+ .send(libreget_core::models::progress::ProgressUpdate::percent(percent.min(100.0),)).await;diff --git a/src-tauri/plugins/telegram/src/settings_helper.rs b/src-tauri/plugins/telegram/src/settings_helper.rsindex 2b48ba5c..b6a2f0a8 100644--- a/src-tauri/plugins/telegram/src/settings_helper.rs+++ b/src-tauri/plugins/telegram/src/settings_helper.rs@@ -1,9 +1,9 @@-use omniget_core::models::settings::AppSettings;+use libreget_core::models::settings::AppSettings;pub fn load_settings() -> AppSettings {if let Some(data_dir) = dirs::data_dir() {let path = data_dir- .join("com.openselena.omniget")+ .join("com.openselena.libreget").join("settings.json");if let Ok(content) = std::fs::read_to_string(path) {if let Ok(val) = serde_json::from_str::<serde_json::Value>(&content) {diff --git a/src-tauri/src/commands/ai.rs b/src-tauri/src/commands/ai.rsindex aba4936b..1e81db0d 100644--- a/src-tauri/src/commands/ai.rs+++ b/src-tauri/src/commands/ai.rs@@ -1,4 +1,4 @@-use omniget_core::core::ai::{self, AiConfigView, AiHistoryEntry, AiProvider, KeyAction};+use libreget_core::core::ai::{self, AiConfigView, AiHistoryEntry, AiProvider, KeyAction};use serde::Serialize;const MAX_TRANSCRIPT_CHARS: usize = 12000;@@ -63,7 +63,7 @@ async fn transcribe_via_audio(tmp: &std::path::Path,) -> Result<String, String> {let audio_tmpl = tmp.join("audio.%(ext)s");- let _ = omniget_core::core::ytdlp::ytdlp_command(ytdlp)+ let _ = libreget_core::core::ytdlp::ytdlp_command(ytdlp).arg("-f").arg("bestaudio/best").arg("--no-warnings")@@ -91,11 +91,11 @@ async fn transcribe_via_audio(}let (_, src_path) = src.ok_or_else(|| "no audio".to_string())?;- let ffmpeg = omniget_core::core::dependencies::find_tool("ffmpeg")+ let ffmpeg = libreget_core::core::dependencies::find_tool("ffmpeg").await.ok_or_else(|| "ffmpeg unavailable".to_string())?;let small = tmp.join("a16.mp3");- let status = omniget_core::core::process::command(&ffmpeg)+ let status = libreget_core::core::process::command(&ffmpeg).arg("-y").arg("-i").arg(src_path.to_string_lossy().to_string())@@ -113,7 +113,7 @@ async fn transcribe_via_audio(return Err("ffmpeg transcode failed".to_string());}- omniget_core::core::ai::transcribe(&small).await+ libreget_core::core::ai::transcribe(&small).await}#[cfg(not(target_os = "android"))]@@ -126,14 +126,14 @@ async fn fetch_transcript(url: &str) -> Result<(String, String), String> {.duration_since(std::time::UNIX_EPOCH).map(|d| d.as_millis()).unwrap_or(0);- let tmp = std::env::temp_dir().join(format!("omniget-ai-{stamp}"));+ let tmp = std::env::temp_dir().join(format!("libreget-ai-{stamp}"));tokio::fs::create_dir_all(&tmp).await.map_err(|e| e.to_string())?;let out_template = tmp.join("t.%(ext)s");let result: Result<(String, String), String> = (|| async {- let output = omniget_core::core::ytdlp::ytdlp_command(&ytdlp)+ let output = libreget_core::core::ytdlp::ytdlp_command(&ytdlp).arg("--skip-download").arg("--write-subs").arg("--write-auto-subs")@@ -178,7 +178,7 @@ async fn fetch_transcript(url: &str) -> Result<(String, String), String> {let content = tokio::fs::read_to_string(&sub_path).await.map_err(|e| e.to_string())?;- let transcript = omniget_core::core::subtitle_merge::extract_transcript(&content);+ let transcript = libreget_core::core::subtitle_merge::extract_transcript(&content);if !transcript.trim().is_empty() {return Ok((title, transcript));}@@ -244,7 +244,7 @@ pub async fn whisper_generate(url: String) -> Result<String, String> {.duration_since(std::time::UNIX_EPOCH).map(|d| d.as_millis()).unwrap_or(0);- let tmp = std::env::temp_dir().join(format!("omniget-whisper-{stamp}"));+ let tmp = std::env::temp_dir().join(format!("libreget-whisper-{stamp}"));tokio::fs::create_dir_all(&tmp).await.map_err(|e| e.to_string())?;diff --git a/src-tauri/src/commands/app_lifecycle.rs b/src-tauri/src/commands/app_lifecycle.rsindex 129a741a..56e7c285 100644--- a/src-tauri/src/commands/app_lifecycle.rs+++ b/src-tauri/src/commands/app_lifecycle.rs@@ -44,7 +44,7 @@ pub struct PortableInfo {/// `portable.txt`, so there is a single source of truth for the mode.#[tauri::command]pub fn get_portable_info() -> PortableInfo {- let is_portable = std::env::var("OMNIGET_PORTABLE").ok().as_deref() == Some("1");+ let is_portable = std::env::var("LIBREGET_PORTABLE").ok().as_deref() == Some("1");PortableInfo {is_portable,diff --git a/src-tauri/src/commands/auth_webview.rs b/src-tauri/src/commands/auth_webview.rsindex 99980b15..55d9d608 100644--- a/src-tauri/src/commands/auth_webview.rs+++ b/src-tauri/src/commands/auth_webview.rs@@ -462,9 +462,9 @@ async fn extract_cookies_js(window: &tauri::WebviewWindow, default_domain: &str)}}} catch(e) {}- document.title = '__OMNIGET_COOKIES__' + JSON.stringify(result);+ document.title = '__LIBREGET_COOKIES__' + JSON.stringify(result);} catch(err) {- document.title = '__OMNIGET_COOKIES__{"cookies":"","storage":{}}';+ document.title = '__LIBREGET_COOKIES__{"cookies":"","storage":{}}';}})()"#;@@ -488,7 +488,7 @@ async fn extract_cookies_js(window: &tauri::WebviewWindow, default_domain: &str)tokio::time::sleep(std::time::Duration::from_millis(delay_ms)).await;if let Ok(title) = window.title() {- if let Some(data_str) = title.strip_prefix("__OMNIGET_COOKIES__") {+ if let Some(data_str) = title.strip_prefix("__LIBREGET_COOKIES__") {return parse_cookie_data(data_str, default_domain);}}diff --git a/src-tauri/src/commands/autostart.rs b/src-tauri/src/commands/autostart.rsindex 6cfd9efc..9f06b978 100644--- a/src-tauri/src/commands/autostart.rs+++ b/src-tauri/src/commands/autostart.rs@@ -1,7 +1,7 @@use tauri_plugin_autostart::ManagerExt;pub fn apply_autostart(app: &tauri::AppHandle, enabled: bool) -> Result<(), String> {- if std::env::var("OMNIGET_PORTABLE").is_ok() {+ if std::env::var("LIBREGET_PORTABLE").is_ok() {return Ok(());}let manager = app.autolaunch();diff --git a/src-tauri/src/commands/bilibili_auth.rs b/src-tauri/src/commands/bilibili_auth.rsindex 266686c6..7457d596 100644--- a/src-tauri/src/commands/bilibili_auth.rs+++ b/src-tauri/src/commands/bilibili_auth.rs@@ -1,14 +1,14 @@use serde::{Deserialize, Serialize};-use omniget_core::platforms::bilibili::api::ApiClient;-use omniget_core::platforms::bilibili::auth::{self, qr, sms};-use omniget_core::platforms::bilibili::parser;-use omniget_core::platforms::bilibili::preview;-use omniget_core::platforms::bilibili::url_kind::{self, UrlKind};+use libreget_core::platforms::bilibili::api::ApiClient;+use libreget_core::platforms::bilibili::auth::{self, qr, sms};+use libreget_core::platforms::bilibili::parser;+use libreget_core::platforms::bilibili::preview;+use libreget_core::platforms::bilibili::url_kind::{self, UrlKind};fn resolve_account_slug(slug: Option<String>) -> Option<String> {slug.filter(|s| !s.is_empty())- .or_else(omniget_core::platforms::bilibili::active_account_slug)+ .or_else(libreget_core::platforms::bilibili::active_account_slug)}fn build_anonymous_client(user_agent: Option<String>) -> Result<ApiClient, String> {@@ -16,7 +16,7 @@ fn build_anonymous_client(user_agent: Option<String>) -> Result<ApiClient, Strinif let Some(ua) = user_agent.filter(|s| !s.is_empty()) {client = client.with_user_agent(ua);}- let _ = omniget_core::platforms::bilibili::cookie::ensure_fresh();+ let _ = libreget_core::platforms::bilibili::cookie::ensure_fresh();client = client.with_anonymous_cookies();Ok(client)}@@ -90,7 +90,7 @@ pub async fn bilibili_webview_login(#[tauri::command]pub async fn bilibili_qr_generate(user_agent: Option<String>) -> Result<qr::QrSession, String> {- let _ = omniget_core::platforms::bilibili::cookie::ensure_fresh().await;+ let _ = libreget_core::platforms::bilibili::cookie::ensure_fresh().await;let client = build_anonymous_client(user_agent)?;qr::generate(&client).await@@ -183,7 +183,7 @@ pub async fn bilibili_preview_info(url: String,slug: Option<String>,) -> Result<BilibiliPreviewSummary, String> {- let _ = omniget_core::platforms::bilibili::cookie::ensure_fresh().await;+ let _ = libreget_core::platforms::bilibili::cookie::ensure_fresh().await;let mut client = ApiClient::new().map_err(|e| e.i18n_key().to_string())?;client = match resolve_account_slug(slug) {Some(s) => client.with_account(s),@@ -260,7 +260,7 @@ pub struct BilibiliImportResult {}async fn run_import(slug: String, kind: UrlKind) -> Result<BilibiliImportResult, String> {- let _ = omniget_core::platforms::bilibili::cookie::ensure_fresh().await;+ let _ = libreget_core::platforms::bilibili::cookie::ensure_fresh().await;let client = ApiClient::new().map_err(|e| e.i18n_key().to_string())?.with_account(&slug);@@ -275,11 +275,11 @@ async fn run_import(slug: String, kind: UrlKind) -> Result<BilibiliImportResult,};let parsed = match kind_ref {UrlKind::WatchLater => {- omniget_core::platforms::bilibili::parser::watch_later::parse(&client, current_page)+ libreget_core::platforms::bilibili::parser::watch_later::parse(&client, current_page).await}UrlKind::History => {- omniget_core::platforms::bilibili::parser::history::parse(&client, current_page)+ libreget_core::platforms::bilibili::parser::history::parse(&client, current_page).await}_ => return Err("errors.bilibili.content_unavailable".to_string()),diff --git a/src-tauri/src/commands/browser_extension.rs b/src-tauri/src/commands/browser_extension.rsindex 9281a408..a01288c3 100644--- a/src-tauri/src/commands/browser_extension.rs+++ b/src-tauri/src/commands/browser_extension.rs@@ -3,7 +3,7 @@ use std::path::{Path, PathBuf};use serde::Serialize;use tauri::{AppHandle, Manager};-const FIREFOX_STORE_URL: &str = "https://addons.mozilla.org/firefox/addon/omniget/";+const FIREFOX_STORE_URL: &str = "https://addons.mozilla.org/firefox/addon/libreget/";#[derive(Debug, Clone, Serialize)]pub struct BrowserExtensionStatus {diff --git a/src-tauri/src/commands/clip.rs b/src-tauri/src/commands/clip.rsindex a2b4e9fe..1635255d 100644--- a/src-tauri/src/commands/clip.rs+++ b/src-tauri/src/commands/clip.rs@@ -4,8 +4,8 @@ use std::time::{SystemTime, UNIX_EPOCH};use serde::{Deserialize, Serialize};use tauri::AppHandle;-use omniget_core::core::ffmpeg;-use omniget_core::core::process;+use libreget_core::core::ffmpeg;+use libreget_core::core::process;#[derive(Debug, Clone, Serialize, Deserialize)]pub struct ClipRequest {diff --git a/src-tauri/src/commands/dedupe.rs b/src-tauri/src/commands/dedupe.rsindex 20f96016..9304d6d9 100644--- a/src-tauri/src/commands/dedupe.rs+++ b/src-tauri/src/commands/dedupe.rs@@ -190,7 +190,7 @@ mod tests {use super::*;fn tempdir(tag: &str) -> PathBuf {- let d = std::env::temp_dir().join(format!("omniget-dedupe-{tag}-{}", std::process::id()));+ let d = std::env::temp_dir().join(format!("libreget-dedupe-{tag}-{}", std::process::id()));let _ = std::fs::remove_dir_all(&d);std::fs::create_dir_all(&d).expect("cria");ddiff --git a/src-tauri/src/commands/dependencies.rs b/src-tauri/src/commands/dependencies.rsindex 54663f55..b47ba0d4 100644--- a/src-tauri/src/commands/dependencies.rs+++ b/src-tauri/src/commands/dependencies.rs@@ -9,7 +9,7 @@ pub struct DependencyStatus {pub name: String,pub installed: bool,pub version: Option<String>,- /// Where the binary was found: "managed" (downloaded by OmniGet),+ /// Where the binary was found: "managed" (downloaded by LibreGet),/// "system" (found on the user's PATH), "flatpak", or "missing".pub source: String,/// Resolved absolute path to the binary, if found.@@ -177,7 +177,7 @@ pub async fn install_dependency(/// render, so that turned a UI refresh into a process storm (#281).async fn managed_binary_path(name: &str) -> Option<PathBuf> {match name {- "yt-dlp" => omniget_core::core::ytdlp::managed_ytdlp_path(),+ "yt-dlp" => libreget_core::core::ytdlp::managed_ytdlp_path(),_ => None,}}@@ -300,7 +300,7 @@ pub async fn set_dependency_path(name: String, source_path: String) -> Result<St// Issue #222: referenciar no lugar, nao copiar. Uma copia dentro do// diretorio do app envelhece sozinha — o usuario atualiza o binario dele e// o OmniGet segue usando a versao velha sem avisar.- omniget_core::core::binary_overrides::set(&name, &src)?;+ libreget_core::core::binary_overrides::set(&name, &src)?;if name == "yt-dlp" {crate::core::ytdlp::reset_ytdlp_cache();@@ -320,13 +320,13 @@ pub async fn set_dependency_path(name: String, source_path: String) -> Result<St)}-/// Volta a usar o binario gerenciado pelo OmniGet.+/// Volta a usar o binario gerenciado pelo LibreGet.////// Existe porque escolher um caminho tem que ser reversivel com o mesmo esforco/// de escolher — sem isso, o usuario que apontou o arquivo errado fica preso.#[tauri::command]pub async fn clear_dependency_path(name: String) -> Result<(), String> {- omniget_core::core::binary_overrides::clear(&name)?;+ libreget_core::core::binary_overrides::clear(&name)?;if name == "yt-dlp" {crate::core::ytdlp::reset_ytdlp_cache();}@@ -340,5 +340,5 @@ pub async fn clear_dependency_path(name: String) -> Result<(), String> {/// Caminho customizado em uso, se houver.#[tauri::command]pub fn dependency_custom_path(name: String) -> Option<String> {- omniget_core::core::binary_overrides::get(&name).map(|p| p.to_string_lossy().to_string())+ libreget_core::core::binary_overrides::get(&name).map(|p| p.to_string_lossy().to_string())}diff --git a/src-tauri/src/commands/diagnostics.rs b/src-tauri/src/commands/diagnostics.rsindex 942db843..9f49defe 100644--- a/src-tauri/src/commands/diagnostics.rs+++ b/src-tauri/src/commands/diagnostics.rs@@ -1,6 +1,6 @@#[tauri::command]-pub async fn get_hwaccel_info() -> omniget_core::core::hwaccel::HwAccelInfo {- omniget_core::core::hwaccel::detect_hwaccel().await+pub async fn get_hwaccel_info() -> libreget_core::core::hwaccel::HwAccelInfo {+ libreget_core::core::hwaccel::detect_hwaccel().await}#[tauri::command]diff --git a/src-tauri/src/commands/downloads.rs b/src-tauri/src/commands/downloads.rsindex 5dd59bc0..ab75865e 100644--- a/src-tauri/src/commands/downloads.rs+++ b/src-tauri/src/commands/downloads.rs@@ -84,7 +84,7 @@ pub async fn detect_platform(url: String) -> Result<PlatformInfo, String> {.map(|u| u.scheme() == "http" || u.scheme() == "https").unwrap_or(false);if is_valid_url- && omniget_core::platforms::direct_file::looks_like_direct_file(&url).await+ && libreget_core::platforms::direct_file::looks_like_direct_file(&url).await{tracing::debug!("[perf] detect_platform took {:?}", _timer_start.elapsed());return Ok(PlatformInfo {@@ -233,7 +233,7 @@ pub async fn torrent_contents(url: String) -> Result<Vec<TorrentFileEntry>, Stri}};- let tmp_dir = std::env::temp_dir().join("omniget-torrent-list");+ let tmp_dir = std::env::temp_dir().join("libreget-torrent-list");let session = librqbit::Session::new(tmp_dir).await.map_err(|e| format!("Failed to init torrent session: {}", e))?;@@ -582,9 +582,9 @@ pub async fn subtitles_merge(let secondary = fetch_text(&client, &secondary_url).await?;let is_vtt = format.eq_ignore_ascii_case("vtt");let merged = if is_vtt {- omniget_core::core::subtitle_merge::merge_bilingual_vtt(&primary, &secondary)+ libreget_core::core::subtitle_merge::merge_bilingual_vtt(&primary, &secondary)} else {- omniget_core::core::subtitle_merge::merge_bilingual_srt(&primary, &secondary)+ libreget_core::core::subtitle_merge::merge_bilingual_srt(&primary, &secondary)};let dir = std::path::Path::new(&output_dir);tokio::fs::create_dir_all(dir)@@ -760,7 +760,7 @@ pub async fn tools_save_text(#[derive(Clone, Serialize)]pub struct LiveChatResult {pub count: usize,- pub messages: Vec<omniget_core::core::livechat::LiveChatMessage>,+ pub messages: Vec<libreget_core::core::livechat::LiveChatMessage>,}#[cfg(not(target_os = "android"))]@@ -774,14 +774,14 @@ pub async fn livechat_fetch(url: String) -> Result<LiveChatResult, String> {.duration_since(std::time::UNIX_EPOCH).map(|d| d.as_millis()).unwrap_or(0);- let tmp = std::env::temp_dir().join(format!("omniget-livechat-{stamp}"));+ let tmp = std::env::temp_dir().join(format!("libreget-livechat-{stamp}"));tokio::fs::create_dir_all(&tmp).await.map_err(|e| e.to_string())?;let out_template = tmp.join("chat.%(ext)s");let result = (|| async {- let output = omniget_core::core::ytdlp::ytdlp_command(&ytdlp_path)+ let output = libreget_core::core::ytdlp::ytdlp_command(&ytdlp_path).arg("--skip-download").arg("--write-subs").arg("--sub-langs")@@ -821,7 +821,7 @@ pub async fn livechat_fetch(url: String) -> Result<LiveChatResult, String> {let body = tokio::fs::read_to_string(&chat_file).await.map_err(|e| e.to_string())?;- let messages = omniget_core::core::livechat::parse_live_chat(&body);+ let messages = libreget_core::core::livechat::parse_live_chat(&body);Ok(LiveChatResult {count: messages.len(),messages,@@ -1364,8 +1364,8 @@ pub async fn remove_download(/// Último comando yt-dlp rodado para este download (argv redigido). `None`/// quando o item nunca chegou a rodar o yt-dlp (arquivo direto, torrent…).#[tauri::command]-pub fn get_download_command(download_id: u64) -> Option<omniget_core::core::ytdlp::CommandRecord> {- omniget_core::core::ytdlp::get_command(download_id)+pub fn get_download_command(download_id: u64) -> Option<libreget_core::core::ytdlp::CommandRecord> {+ libreget_core::core::ytdlp::get_command(download_id)}/// "Editar e tentar de novo": recebe o comando como texto, tokeniza como um@@ -1377,7 +1377,7 @@ pub async fn retry_download_with_command(download_id: u64,command: String,) -> Result<String, String> {- let argv = omniget_core::core::shell_words::split(&command)+ let argv = libreget_core::core::shell_words::split(&command).map_err(|e| format!("Invalid command: {}", e))?;if argv.is_empty() {return Err("Command is empty".to_string());diff --git a/src-tauri/src/commands/nami/cookies.rs b/src-tauri/src/commands/nami/cookies.rsindex f7299a5b..f907244b 100644--- a/src-tauri/src/commands/nami/cookies.rs+++ b/src-tauri/src/commands/nami/cookies.rs@@ -761,11 +761,11 @@ pub fn extract_gecko_cookies_to_netscape(.unwrap_or(0);let rand_suffix: u32 = rand::random();let temp_db = std::env::temp_dir().join(format!(- "omniget_gecko_{}_{:x}.sqlite",+ "libreget_gecko_{}_{:x}.sqlite",timestamp, rand_suffix));let temp_wal = std::env::temp_dir().join(format!(- "omniget_gecko_{}_{:x}.sqlite-wal",+ "libreget_gecko_{}_{:x}.sqlite-wal",timestamp, rand_suffix));let src_wal = profile_dir.join("cookies.sqlite-wal");diff --git a/src-tauri/src/commands/nami/fetcher.rs b/src-tauri/src/commands/nami/fetcher.rsindex e0391adb..098c4572 100644--- a/src-tauri/src/commands/nami/fetcher.rs+++ b/src-tauri/src/commands/nami/fetcher.rs@@ -128,7 +128,7 @@ pub async fn download_binary(url: &str, target_path: &Path) -> Result<PathBuf, S}let client = reqwest::Client::builder()- .user_agent("omniget-nami/1.0")+ .user_agent("libreget-nami/1.0").build().map_err(|e| format!("Client builder error: {}", e))?;diff --git a/src-tauri/src/commands/nami/mod.rs b/src-tauri/src/commands/nami/mod.rsindex 9b919b52..cba59571 100644--- a/src-tauri/src/commands/nami/mod.rs+++ b/src-tauri/src/commands/nami/mod.rs@@ -46,9 +46,9 @@ pub struct DependencyStatus {static NAMI_STORAGE_LOCK: LazyLock<Mutex<()>> = LazyLock::new(|| Mutex::new(()));-pub fn omniget_nami_dir() -> Result<PathBuf, String> {+pub fn libreget_nami_dir() -> Result<PathBuf, String> {let base =- omniget_core::core::paths::app_data_dir().ok_or("Could not find app data directory")?;+ libreget_core::core::paths::app_data_dir().ok_or("Could not find app data directory")?;let dir = base.join("nami");fs::create_dir_all(&dir).map_err(|e| format!("Failed to create config dir: {}", e))?;@@ -135,7 +135,7 @@ fn normalize_profile_url(platform: &str, raw_input: &str) -> String {#[command]pub async fn nami_check_python_dependencies() -> Result<DependencyStatus, String> {- let app_dir = omniget_nami_dir().unwrap_or_else(|_| PathBuf::from("."));+ let app_dir = libreget_nami_dir().unwrap_or_else(|_| PathBuf::from("."));let status = fetcher::check_engines_status(&app_dir);let ok = status.ready;@@ -156,7 +156,7 @@ pub async fn nami_check_python_dependencies() -> Result<DependencyStatus, String#[command]pub async fn nami_ensure_binaries() -> Result<DependencyStatus, String> {- let app_dir = omniget_nami_dir()?;+ let app_dir = libreget_nami_dir()?;let _ = fetcher::ensure_latest_gallery_dl(&app_dir).await;let _ = fetcher::ensure_latest_yt_dlp(&app_dir).await;@@ -173,7 +173,7 @@ pub async fn nami_run_gallery_dl_download(download_id: String,skip_replies: Option<bool>,) -> Result<DownloadResult, String> {- let app_dir = omniget_nami_dir()?;+ let app_dir = libreget_nami_dir()?;dispatcher::execute_download_workflow(app,url,@@ -207,7 +207,7 @@ pub fn nami_save_app_settings(browser_cookies,};- let config_dir = omniget_nami_dir()?;+ let config_dir = libreget_nami_dir()?;let settings_file = config_dir.join("app_settings.json");let content = serde_json::to_string_pretty(&settings).map_err(|e| format!("Failed to serialize settings: {}", e))?;@@ -220,7 +220,7 @@ pub fn nami_save_app_settings(pub fn nami_load_app_settings() -> Result<AppSettings, String> {let _storage_guard = NAMI_STORAGE_LOCK.lock().unwrap_or_else(|p| p.into_inner());- let settings_file = omniget_nami_dir()?.join("app_settings.json");+ let settings_file = libreget_nami_dir()?.join("app_settings.json");if !settings_file.exists() {return Ok(AppSettings {output_directory: None,@@ -288,7 +288,7 @@ pub fn nami_extract_browser_cookies()})?;- let config_dir = omniget_nami_dir()?;+ let config_dir = libreget_nami_dir()?;let cookies_dir = config_dir.join("cookies");fs::create_dir_all(&cookies_dir).map_err(|e| e.to_string())?;@@ -323,7 +323,7 @@ pub fn nami_load_profiles(platform: String) -> Result<Vec<Profile>, String> {validate_profile_platform(&platform)?;let _storage_guard = NAMI_STORAGE_LOCK.lock().unwrap_or_else(|p| p.into_inner());- let profiles_file = omniget_nami_dir()?.join("profiles.json");+ let profiles_file = libreget_nami_dir()?.join("profiles.json");if !profiles_file.exists() {return Ok(vec![]);}@@ -357,7 +357,7 @@ pub fn nami_save_profile(platform: String, url: String) -> Result<String, String}let url = normalize_profile_url(&platform, &raw_input);- let config_dir = omniget_nami_dir()?;+ let config_dir = libreget_nami_dir()?;let profiles_file = config_dir.join("profiles.json");let mut all_profiles: serde_json::Value = if profiles_file.exists() {@@ -426,7 +426,7 @@ pub fn nami_delete_profile(platform: String, profile_url: String) -> Result<Strivalidate_profile_platform(&platform)?;let _storage_guard = NAMI_STORAGE_LOCK.lock().unwrap_or_else(|p| p.into_inner());- let profiles_file = omniget_nami_dir()?.join("profiles.json");+ let profiles_file = libreget_nami_dir()?.join("profiles.json");if !profiles_file.exists() {return Err("Profiles file not found".to_string());}@@ -492,7 +492,7 @@ pub fn update_profile_last_pulled(timestamp: i64,) -> Result<(), String> {let _storage_guard = NAMI_STORAGE_LOCK.lock().unwrap_or_else(|p| p.into_inner());- let profiles_file = omniget_nami_dir()?.join("profiles.json");+ let profiles_file = libreget_nami_dir()?.join("profiles.json");if !profiles_file.exists() {return Ok(());}diff --git a/src-tauri/src/commands/nami/pull.rs b/src-tauri/src/commands/nami/pull.rsindex f23e88ee..5eb56ac3 100644--- a/src-tauri/src/commands/nami/pull.rs+++ b/src-tauri/src/commands/nami/pull.rs@@ -3,7 +3,7 @@use super::dispatcher::{self, DownloadResult};use super::{- nami_load_app_settings, nami_load_profiles, omniget_nami_dir, update_profile_last_pulled,+ nami_load_app_settings, nami_load_profiles, libreget_nami_dir, update_profile_last_pulled,Profile,};use chrono::Utc;@@ -66,7 +66,7 @@ pub async fn pull_single_creator()});- let app_dir = omniget_nami_dir()?;+ let app_dir = libreget_nami_dir()?;let username = dispatcher::extract_username_generic(&profile_url);let dl_result = dispatcher::execute_download_workflow(diff --git a/src-tauri/src/commands/p2p.rs b/src-tauri/src/commands/p2p.rsindex 4e3ebc52..9935fe78 100644--- a/src-tauri/src/commands/p2p.rs+++ b/src-tauri/src/commands/p2p.rs@@ -3,7 +3,7 @@ use tauri::Emitter;use tokio_util::sync::CancellationToken;use crate::{AppState, P2pSendHandle};-use omniget_core::platforms::p2p;+use libreget_core::platforms::p2p;#[derive(Clone, Serialize)]pub struct P2pSendStarted {diff --git a/src-tauri/src/commands/plugins.rs b/src-tauri/src/commands/plugins.rsindex 4e64ed1d..e5f99b65 100644--- a/src-tauri/src/commands/plugins.rs+++ b/src-tauri/src/commands/plugins.rs@@ -1,6 +1,6 @@use std::sync::Arc;-use omniget_plugin_sdk::{PluginHost, PluginManifest, RegistryEntry};+use libreget_plugin_sdk::{PluginHost, PluginManifest, RegistryEntry};use serde::{Deserialize, Serialize};use tauri::Emitter;@@ -72,8 +72,8 @@ pub fn list_plugins(label: n.label.clone(),icon_svg: n.icon_svg.clone(),group: match n.group {- omniget_plugin_sdk::NavGroup::Primary => "primary".into(),- omniget_plugin_sdk::NavGroup::Secondary => "secondary".into(),+ libreget_plugin_sdk::NavGroup::Primary => "primary".into(),+ libreget_plugin_sdk::NavGroup::Secondary => "secondary".into(),},order: n.order,})@@ -83,7 +83,7 @@ pub fn list_plugins(None => {let load_error = manager.load_error(&entry.id).cloned();let manifest_path = manager.plugins_dir().join(&entry.id).join("plugin.json");- let manifest: Option<omniget_plugin_sdk::PluginManifest> =+ let manifest: Option<libreget_plugin_sdk::PluginManifest> =std::fs::read_to_string(&manifest_path).ok().and_then(|s| serde_json::from_str(&s).ok());@@ -105,8 +105,8 @@ pub fn list_plugins(label: n.label.clone(),icon_svg: n.icon_svg.clone(),group: match n.group {- omniget_plugin_sdk::NavGroup::Primary => "primary".into(),- omniget_plugin_sdk::NavGroup::Secondary => {+ libreget_plugin_sdk::NavGroup::Primary => "primary".into(),+ libreget_plugin_sdk::NavGroup::Secondary => {"secondary".into()}},@@ -238,7 +238,7 @@ pub async fn plugin_command(|| (lower.contains("command") && lower.contains("not found"));if unknown_command && !lower.contains("not loaded") && !is_builtin {format!(- "ERR_PLUGIN_OUTDATED: The installed '{}' plugin is outdated and doesn't support '{}'. Update it in the Marketplace, then restart OmniGet. ({})",+ "ERR_PLUGIN_OUTDATED: The installed '{}' plugin is outdated and doesn't support '{}'. Update it in the Marketplace, then restart LibreGet. ({})",plugin_id, command, e)} else {@@ -273,7 +273,7 @@ pub async fn fetch_marketplace_registry() -> Result<Vec<MarketplaceEntry>, String> {let client = crate::core::http_client::apply_global_proxy(reqwest::Client::builder()- .user_agent("OmniGet")+ .user_agent("LibreGet").timeout(std::time::Duration::from_secs(15)),).build()@@ -400,7 +400,7 @@ pub async fn install_plugin_zip_from_repo(let client = crate::core::http_client::apply_global_proxy(reqwest::Client::builder()- .user_agent("OmniGet")+ .user_agent("LibreGet").timeout(std::time::Duration::from_secs(60)).connect_timeout(std::time::Duration::from_secs(15)),)@@ -468,7 +468,7 @@ pub async fn install_plugin_zip_from_repo(let mut manager = state.write().await;manager- .register_installed(omniget_plugin_sdk::InstalledPlugin {+ .register_installed(libreget_plugin_sdk::InstalledPlugin {id: plugin_id.clone(),version: version.clone(),installed_at: chrono::Utc::now().to_rfc3339(),@@ -506,7 +506,7 @@ pub async fn install_plugin_from_registry(async fn fetch_registry_entries() -> Result<Vec<RegistryEntry>, String> {let client = crate::core::http_client::apply_global_proxy(reqwest::Client::builder()- .user_agent("OmniGet")+ .user_agent("LibreGet").timeout(std::time::Duration::from_secs(15)),).build()@@ -574,7 +574,7 @@ pub async fn auto_update_plugins(state: Arc<tokio::sync::RwLock<PluginManager>>)let client = match crate::core::http_client::apply_global_proxy(reqwest::Client::builder()- .user_agent("OmniGet")+ .user_agent("LibreGet").timeout(std::time::Duration::from_secs(15)),).build()@@ -631,7 +631,7 @@ pub async fn check_plugin_updates(let client = crate::core::http_client::apply_global_proxy(reqwest::Client::builder()- .user_agent("OmniGet")+ .user_agent("LibreGet").timeout(std::time::Duration::from_secs(15)),).build()diff --git a/src-tauri/src/commands/reencode.rs b/src-tauri/src/commands/reencode.rsindex 3865b7e8..b66c5570 100644--- a/src-tauri/src/commands/reencode.rs+++ b/src-tauri/src/commands/reencode.rs@@ -2,9 +2,9 @@ use std::path::{Path, PathBuf};use serde::{Deserialize, Serialize};-use omniget_core::core::ffmpeg;-use omniget_core::core::hwaccel;-use omniget_core::core::process;+use libreget_core::core::ffmpeg;+use libreget_core::core::hwaccel;+use libreget_core::core::process;#[derive(Debug, Clone, Serialize, Deserialize)]#[serde(rename_all = "lowercase")]diff --git a/src-tauri/src/commands/search.rs b/src-tauri/src/commands/search.rsindex 52f66b8f..2e1b893a 100644--- a/src-tauri/src/commands/search.rs+++ b/src-tauri/src/commands/search.rs@@ -1,6 +1,6 @@use serde::Serialize;-use omniget_core::core::tools::yt_search::{self, SearchHit, SearchOptions};+use libreget_core::core::tools::yt_search::{self, SearchHit, SearchOptions};/// Teto da tela de busca; a CLI pede mais direto ao core.const UI_MAX_RESULTS: u32 = 20;diff --git a/src-tauri/src/commands/smart_speed.rs b/src-tauri/src/commands/smart_speed.rsindex 677f2782..09d8d635 100644--- a/src-tauri/src/commands/smart_speed.rs+++ b/src-tauri/src/commands/smart_speed.rs@@ -109,7 +109,7 @@ pub async fn compute_silence_map(let stderr = tokio::task::spawn_blocking(move || {let mut cmd = crate::core::process::std_command(&ffmpeg);cmd.arg("-i").arg(&alvo);- for a in omniget_core::core::ffmpeg_ops::silence_probe_args() {+ for a in libreget_core::core::ffmpeg_ops::silence_probe_args() {cmd.arg(a);}cmd.arg("-")diff --git a/src-tauri/src/commands/spicetify.rs b/src-tauri/src/commands/spicetify.rsindex c054a227..51a3da32 100644--- a/src-tauri/src/commands/spicetify.rs+++ b/src-tauri/src/commands/spicetify.rs@@ -1,6 +1,6 @@//! Comandos da ferramenta "Spotify → Spicetify" da seção Tools.-use omniget_core::core::spicetify::{self, CmdOutput, SpicetifyStatus};+use libreget_core::core::spicetify::{self, CmdOutput, SpicetifyStatus};fn err(e: anyhow::Error) -> String {e.to_string()diff --git a/src-tauri/src/commands/subtitle_ws.rs b/src-tauri/src/commands/subtitle_ws.rsindex 005e8131..b94d76b9 100644--- a/src-tauri/src/commands/subtitle_ws.rs+++ b/src-tauri/src/commands/subtitle_ws.rs@@ -1,4 +1,4 @@-use omniget_core::core::subtitle_merge::{self, Cue};+use libreget_core::core::subtitle_merge::{self, Cue};#[cfg(not(target_os = "android"))]#[tauri::command]@@ -29,7 +29,7 @@ pub async fn subtitle_save(path: String, cues: Vec<Cue>, format: String) -> Resu#[cfg(not(target_os = "android"))]#[tauri::command]pub async fn subtitle_translate(cues: Vec<Cue>, target_lang: String) -> Result<Vec<Cue>, String> {- if !omniget_core::core::ai::get().is_configured() {+ if !libreget_core::core::ai::get().is_configured() {return Err("ai_not_configured".to_string());}if cues.is_empty() {@@ -49,7 +49,7 @@ line count. Preserve the \u{2424} markers as line breaks. Output ONLY the \translated numbered lines, nothing else.",target_lang);- let out = omniget_core::core::ai::chat(&system, &joined).await?;+ let out = libreget_core::core::ai::chat(&system, &joined).await?;let mut map: std::collections::HashMap<usize, String> = std::collections::HashMap::new();for line in out.lines() {@@ -78,7 +78,7 @@ translated numbered lines, nothing else.",#[cfg(not(target_os = "android"))]#[tauri::command]pub async fn subtitle_grammar_fix(cues: Vec<Cue>, style: String) -> Result<Vec<Cue>, String> {- if !omniget_core::core::ai::get().is_configured() {+ if !libreget_core::core::ai::get().is_configured() {return Err("ai_not_configured".to_string());}if cues.is_empty() {@@ -102,7 +102,7 @@ Preserve the \u{2424} markers as line breaks. Output ONLY the corrected \numbered lines, nothing else.",tone);- let out = omniget_core::core::ai::chat(&system, &joined).await?;+ let out = libreget_core::core::ai::chat(&system, &joined).await?;let mut map: std::collections::HashMap<usize, String> = std::collections::HashMap::new();for line in out.lines() {diff --git a/src-tauri/src/commands/tools/ai.rs b/src-tauri/src/commands/tools/ai.rsindex e35a272b..3a9c2e1f 100644--- a/src-tauri/src/commands/tools/ai.rs+++ b/src-tauri/src/commands/tools/ai.rs@@ -1,4 +1,4 @@-use omniget_core::core::tools::{ai_keys, ollama, pricing, usage};+use libreget_core::core::tools::{ai_keys, ollama, pricing, usage};use serde::Serialize;use super::{err, progress};@@ -166,7 +166,7 @@ pub async fn tool_mcp_selftest(app: tauri::AppHandle) -> Result<String, String>.timeout(std::time::Duration::from_secs(10)).build().map_err(err)?;- let init = serde_json::json!({ "jsonrpc": "2.0", "id": 1, "method": "initialize", "params": { "protocolVersion": crate::mcp::PROTOCOL, "capabilities": {}, "clientInfo": { "name": "omniget-selftest", "version": "1" } } });+ let init = serde_json::json!({ "jsonrpc": "2.0", "id": 1, "method": "initialize", "params": { "protocolVersion": crate::mcp::PROTOCOL, "capabilities": {}, "clientInfo": { "name": "libreget-selftest", "version": "1" } } });let r: serde_json::Value = client.post(&url).bearer_auth(&settings.bridge.token)@@ -203,7 +203,7 @@ pub async fn tool_mcp_selftest(app: tauri::AppHandle) -> Result<String, String>// ── Contagem de tokens e custo por modelo (estende ai-prices) ──-use omniget_core::core::tools::{ai_tokens, arxiv};+use libreget_core::core::tools::{ai_tokens, arxiv};/// As famílias de tokenizador que a heurística conhece, com o fator de cada uma.#[tauri::command]diff --git a/src-tauri/src/commands/tools/audio.rs b/src-tauri/src/commands/tools/audio.rsindex a861e6f6..54058eef 100644--- a/src-tauri/src/commands/tools/audio.rs+++ b/src-tauri/src/commands/tools/audio.rs@@ -1,7 +1,7 @@//! Tools de áudio: normalizar loudness (EBU R128), tirar ruído e etiquetar//! metadados de música (ID3 / Vorbis / MP4).-use omniget_core::core::tools::{audio_clean, audio_tag};+use libreget_core::core::tools::{audio_clean, audio_tag};use super::{err, progress};diff --git a/src-tauri/src/commands/tools/blogs.rs b/src-tauri/src/commands/tools/blogs.rsindex 0629284f..824fc655 100644--- a/src-tauri/src/commands/tools/blogs.rs+++ b/src-tauri/src/commands/tools/blogs.rs@@ -6,7 +6,7 @@//! entregar os rascunhos. Sem cookie, as duas ainda funcionam no que é//! público (arquivo de uma publicação, feed do perfil).-use omniget_core::core::tools::blogs::{medium, substack};+use libreget_core::core::tools::blogs::{medium, substack};use super::{err, progress};diff --git a/src-tauri/src/commands/tools/ctf.rs b/src-tauri/src/commands/tools/ctf.rsindex ccdd4886..f8c3bc6c 100644--- a/src-tauri/src/commands/tools/ctf.rs+++ b/src-tauri/src/commands/tools/ctf.rs@@ -1,7 +1,7 @@//! Utilitários de CTF e análise de arquivo: hash, tipo de arquivo, cifras//! clássicas, XOR, codificações e análise de frequência. Tudo local.-use omniget_core::core::tools::ctf;+use libreget_core::core::tools::ctf;use super::err;diff --git a/src-tauri/src/commands/tools/desktop.rs b/src-tauri/src/commands/tools/desktop.rsindex 30a63549..f46b9805 100644--- a/src-tauri/src/commands/tools/desktop.rs+++ b/src-tauri/src/commands/tools/desktop.rs@@ -4,7 +4,7 @@use std::collections::HashMap;-use omniget_core::core::tools::{autoclick, dictation, screen_record, voicestudio};+use libreget_core::core::tools::{autoclick, dictation, screen_record, voicestudio};use serde::{Deserialize, Serialize};use tauri::Emitter;use tauri_plugin_clipboard_manager::ClipboardExt;@@ -15,7 +15,7 @@ use super::{err, progress};// ── Atalhos globais das tools ──────────────────────────────────────────fn hotkeys_file() -> Option<std::path::PathBuf> {- omniget_core::core::tools::tools_dir().map(|d| d.join("hotkeys.json"))+ libreget_core::core::tools::tools_dir().map(|d| d.join("hotkeys.json"))}pub fn tool_hotkeys() -> HashMap<String, String> {diff --git a/src-tauri/src/commands/tools/documents.rs b/src-tauri/src/commands/tools/documents.rsindex 5ab31020..5d680b02 100644--- a/src-tauri/src/commands/tools/documents.rs+++ b/src-tauri/src/commands/tools/documents.rs@@ -1,4 +1,4 @@-use omniget_core::core::tools::{calameo, gallery, gdocs, slides};+use libreget_core::core::tools::{calameo, gallery, gdocs, slides};use super::{err, progress};diff --git a/src-tauri/src/commands/tools/downloads.rs b/src-tauri/src/commands/tools/downloads.rsindex e03c16c0..fb084899 100644--- a/src-tauri/src/commands/tools/downloads.rs+++ b/src-tauri/src/commands/tools/downloads.rs@@ -1,4 +1,4 @@-use omniget_core::core::tools::{aria2, manifest_dl};+use libreget_core::core::tools::{aria2, manifest_dl};use super::{err, progress};diff --git a/src-tauri/src/commands/tools/files.rs b/src-tauri/src/commands/tools/files.rsindex 73d3e823..31b2b023 100644--- a/src-tauri/src/commands/tools/files.rs+++ b/src-tauri/src/commands/tools/files.rs@@ -1,6 +1,6 @@use std::sync::{Mutex, OnceLock};-use omniget_core::core::tools::{dupes, file_search, rename, shred};+use libreget_core::core::tools::{dupes, file_search, rename, shred};use serde::Serialize;use super::{err, progress};@@ -78,7 +78,7 @@ pub fn tool_awake_set(active: bool) -> Result<bool, String> {.display(true).idle(true).sleep(true)- .app_name("OmniGet")+ .app_name("LibreGet").reason("Tools: keep awake").create().map_err(|e| e.to_string())?;diff --git a/src-tauri/src/commands/tools/games.rs b/src-tauri/src/commands/tools/games.rsindex bfacb08c..51ec35c7 100644--- a/src-tauri/src/commands/tools/games.rs+++ b/src-tauri/src/commands/tools/games.rs@@ -1,7 +1,7 @@//! Grupo Games: importar o álbum do Switch, organizar clipes do PC e-//! consultar o ProtonDB. A lógica mora em `omniget_core::core::tools::games`.+//! consultar o ProtonDB. A lógica mora em `libreget_core::core::tools::games`.-use omniget_core::core::tools::games::{clip_organizer, protondb, switch_album};+use libreget_core::core::tools::games::{clip_organizer, protondb, switch_album};use super::{err, progress};diff --git a/src-tauri/src/commands/tools/images.rs b/src-tauri/src/commands/tools/images.rsindex 8666c30f..468cbab5 100644--- a/src-tauri/src/commands/tools/images.rs+++ b/src-tauri/src/commands/tools/images.rs@@ -1,4 +1,4 @@-use omniget_core::core::tools::{+use libreget_core::core::tools::{exif, icon_pack, image_compress, image_dupes, image_resize, image_sprite, image_stitch, img_bg,onnx, upscale,};@@ -32,8 +32,8 @@ pub async fn tool_resize(}#[tauri::command]-pub async fn tool_ocr_status() -> omniget_core::core::tools::ocr::OcrStatus {- omniget_core::core::tools::ocr::status().await+pub async fn tool_ocr_status() -> libreget_core::core::tools::ocr::OcrStatus {+ libreget_core::core::tools::ocr::status().await}#[tauri::command]@@ -41,8 +41,8 @@ pub async fn tool_ocr_run(app: tauri::AppHandle,inputs: Vec<String>,langs: String,-) -> Result<Vec<omniget_core::core::tools::ocr::OcrResult>, String> {- omniget_core::core::tools::ocr::run(&inputs, &langs, progress(&app))+) -> Result<Vec<libreget_core::core::tools::ocr::OcrResult>, String> {+ libreget_core::core::tools::ocr::run(&inputs, &langs, progress(&app)).await.map_err(err)}@@ -148,7 +148,7 @@ pub async fn tool_onnx_runtime_install(variant: Option<String>,) -> Result<String, String> {let p = progress(&app);- omniget_core::core::onnxrt::install_runtime(variant, &p)+ libreget_core::core::onnxrt::install_runtime(variant, &p).await.map(|path| path.to_string_lossy().to_string()).map_err(err)@@ -159,7 +159,7 @@ pub async fn tool_onnx_runtime_install(#[tauri::command]pub async fn tool_onnx_runtime_install_local(path: String) -> Result<String, String> {tokio::task::spawn_blocking(move || {- omniget_core::core::onnxrt::install_from_path(std::path::Path::new(&path))+ libreget_core::core::onnxrt::install_from_path(std::path::Path::new(&path))}).await.map_err(err)?@@ -169,7 +169,7 @@ pub async fn tool_onnx_runtime_install_local(path: String) -> Result<String, Str#[tauri::command]pub async fn tool_onnx_runtime_remove() -> Result<(), String> {- tokio::task::spawn_blocking(omniget_core::core::onnxrt::remove_managed)+ tokio::task::spawn_blocking(libreget_core::core::onnxrt::remove_managed).await.map_err(err)?.map_err(err)diff --git a/src-tauri/src/commands/tools/instagram.rs b/src-tauri/src/commands/tools/instagram.rsindex fc6ef787..9bcf62e7 100644--- a/src-tauri/src/commands/tools/instagram.rs+++ b/src-tauri/src/commands/tools/instagram.rs@@ -6,7 +6,7 @@use std::sync::atomic::AtomicBool;use std::sync::{Arc, OnceLock};-use omniget_core::core::tools::instagram::{+use libreget_core::core::tools::instagram::{self as ig, analytics, follow, media, profile, publish, social, IgClient, Session,};use serde::Serialize;@@ -115,7 +115,7 @@ async fn resolve_items(client: &IgClient,url: &str,flag: &AtomicBool,- p: &omniget_core::core::tools::ProgressFn,+ p: &libreget_core::core::tools::ProgressFn,job: &str,) -> Result<Vec<media::MediaItem>, String> {match ig::parse_target(url) {@@ -223,7 +223,7 @@ pub async fn tool_ig_download_bulk(if url.is_empty() {continue;}- omniget_core::core::tools::report(+ libreget_core::core::tools::report(&p,&format!("ig:{}", job),"resolve",@@ -301,7 +301,7 @@ pub async fn tool_ig_profile_media(if ig::cancelled(&j.flag) {break;}- omniget_core::core::tools::report(+ libreget_core::core::tools::report(&p,&format!("ig:{}", job),"highlights",diff --git a/src-tauri/src/commands/tools/linkedin.rs b/src-tauri/src/commands/tools/linkedin.rsindex ccd0dd48..1233eb2e 100644--- a/src-tauri/src/commands/tools/linkedin.rs+++ b/src-tauri/src/commands/tools/linkedin.rs@@ -1,7 +1,7 @@//! Categoria LinkedIn: quatro leitores do export oficial de dados. Tudo roda//! em cima de arquivo local, sem nenhuma chamada de rede.-use omniget_core::core::tools::linkedin::{checklist, connections, messages, overview};+use libreget_core::core::tools::linkedin::{checklist, connections, messages, overview};use super::{err, progress};diff --git a/src-tauri/src/commands/tools/lists.rs b/src-tauri/src/commands/tools/lists.rsindex fde17faf..7da86fc6 100644--- a/src-tauri/src/commands/tools/lists.rs+++ b/src-tauri/src/commands/tools/lists.rs@@ -5,7 +5,7 @@//! extensão capturou, cada um no seu bucket de cookie. O Trakt tem API//! oficial e usa o device flow, com credenciais que o próprio usuário cria.-use omniget_core::core::tools::lists::{goodreads, letterboxd, merge, trakt};+use libreget_core::core::tools::lists::{goodreads, letterboxd, merge, trakt};use super::{err, progress};diff --git a/src-tauri/src/commands/tools/mod.rs b/src-tauri/src/commands/tools/mod.rsindex 6a36032e..f67ae36a 100644--- a/src-tauri/src/commands/tools/mod.rs+++ b/src-tauri/src/commands/tools/mod.rs@@ -1,6 +1,6 @@//! Comandos Tauri da seção Tools. Cada submódulo é um grupo da UI//! (fala, IA, YouTube, documentos, imagens, arquivos, downloads, sistema,-//! celular); a lógica mora em `omniget_core::core::tools`. Progresso sai+//! celular); a lógica mora em `libreget_core::core::tools`. Progresso sai//! pelo evento `tool-progress` com o payload `ToolProgress`.pub mod ai;@@ -35,7 +35,7 @@ pub mod youtube;use std::sync::Arc;-use omniget_core::core::tools::ProgressFn;+use libreget_core::core::tools::ProgressFn;use tauri::Emitter;pub(crate) fn progress(app: &tauri::AppHandle) -> ProgressFn {diff --git a/src-tauri/src/commands/tools/music.rs b/src-tauri/src/commands/tools/music.rsindex 41c6bfa3..06780718 100644--- a/src-tauri/src/commands/tools/music.rs+++ b/src-tauri/src/commands/tools/music.rs@@ -1,7 +1,7 @@//! Comandos da categoria Música: playlist -> m3u8/pls, letra sincronizada//! e análise do histórico do Spotify.-use omniget_core::core::tools::music::{history, lyrics, playlist};+use libreget_core::core::tools::music::{history, lyrics, playlist};use super::{err, progress};diff --git a/src-tauri/src/commands/tools/pdf.rs b/src-tauri/src/commands/tools/pdf.rsindex cbd9aea8..294ba7bd 100644--- a/src-tauri/src/commands/tools/pdf.rs+++ b/src-tauri/src/commands/tools/pdf.rs@@ -1,8 +1,8 @@//! PDF (juntar, dividir, comprimir, converter, OCR, sanitizar). A lógica mora-//! em `omniget_core::core::tools::pdf`; aqui só se despacha para uma thread+//! em `libreget_core::core::tools::pdf`; aqui só se despacha para uma thread//! de bloqueio porque o PDFium é síncrono e não é thread-safe.-use omniget_core::core::tools::{pdf, pdf_markdown, pdf_repair, pdf_write};+use libreget_core::core::tools::{pdf, pdf_markdown, pdf_repair, pdf_write};use super::{err, progress};@@ -249,7 +249,7 @@ pub async fn tool_pdf_markdown(// ── Tarja, tabela e formulário ─────────────────────────────────────────-use omniget_core::core::tools::{pdf_form, pdf_redact, pdf_table};+use libreget_core::core::tools::{pdf_form, pdf_redact, pdf_table};#[tauri::command]pub async fn tool_pdf_redact(diff --git a/src-tauri/src/commands/tools/phone.rs b/src-tauri/src/commands/tools/phone.rsindex 159fda73..fb1e3fb4 100644--- a/src-tauri/src/commands/tools/phone.rs+++ b/src-tauri/src/commands/tools/phone.rs@@ -1,4 +1,4 @@-use omniget_core::core::tools::kdeconnect;+use libreget_core::core::tools::kdeconnect;use super::err;diff --git a/src-tauri/src/commands/tools/pinterest.rs b/src-tauri/src/commands/tools/pinterest.rsindex 794289fa..ddbbd948 100644--- a/src-tauri/src/commands/tools/pinterest.rs+++ b/src-tauri/src/commands/tools/pinterest.rs@@ -7,13 +7,13 @@ use std::path::{Path, PathBuf};use std::sync::Arc;use futures::StreamExt;-use omniget_core::core::tools::pinterest::analysis::{self, DupeGroup, Swatch};-use omniget_core::core::tools::pinterest::api::Feed;-use omniget_core::core::tools::pinterest::media::{self, DownloadOptions};-use omniget_core::core::tools::pinterest::{+use libreget_core::core::tools::pinterest::analysis::{self, DupeGroup, Swatch};+use libreget_core::core::tools::pinterest::api::Feed;+use libreget_core::core::tools::pinterest::media::{self, DownloadOptions};+use libreget_core::core::tools::pinterest::{export, parse_target, Board, Pin, PinClient, Section, Target, User,};-use omniget_core::core::tools::{report, ProgressFn};+use libreget_core::core::tools::{report, ProgressFn};use serde::{Deserialize, Serialize};use super::{err, progress};@@ -359,7 +359,7 @@ async fn download_many(}let dir = match (&pin.section, opts.section_folders) {(Some(s), true) if !s.is_empty() => {- root.join(omniget_core::core::tools::sanitize_name(s))+ root.join(libreget_core::core::tools::sanitize_name(s))}_ => root.clone(),};@@ -557,7 +557,7 @@ async fn write_outputs(if gallery {let p = dest.join("index.html");let sub = format!(- "{} pins · OmniGet · {}",+ "{} pins · LibreGet · {}",pins.len(),chrono::Local::now().format("%Y-%m-%d %H:%M"));@@ -632,7 +632,7 @@ pub async fn tool_pin_backup(.into_iter().filter(|x| keep(x, &opts.filters)).map(|mut x| {- x.board = Some(omniget_core::core::tools::pinterest::api::BoardRef {+ x.board = Some(libreget_core::core::tools::pinterest::api::BoardRef {id: Some(b.id.clone()),name: Some(b.name.clone()),url: Some(b.url.clone()),@@ -642,7 +642,7 @@ pub async fn tool_pin_backup(.collect();agg.hidden += before - pins.len();agg.total += pins.len();- let bdir = root.join(omniget_core::core::tools::sanitize_name(&b.name));+ let bdir = root.join(libreget_core::core::tools::sanitize_name(&b.name));std::fs::create_dir_all(&bdir).map_err(err)?;let (files, out) =download_many(c.clone(), pins.clone(), &opts.download, &bdir, pid, &p).await;@@ -1046,7 +1046,7 @@ pub async fn tool_pin_export(}let dest = PathBuf::from(&opts.dest);std::fs::create_dir_all(&dest).map_err(err)?;- let stem = omniget_core::core::tools::sanitize_name(&title);+ let stem = libreget_core::core::tools::sanitize_name(&title);let path = match opts.format.as_str() {"csv" => {let path = dest.join(format!("{}.csv", stem));@@ -1063,7 +1063,7 @@ pub async fn tool_pin_export(path}"pdf" => {- let work = omniget_core::core::tools::temp_dir()+ let work = libreget_core::core::tools::temp_dir().join(format!("pinterest-pdf-{}", uuid::Uuid::new_v4()));std::fs::create_dir_all(&work).map_err(err)?;let mut images: Vec<Vec<u8>> = Vec::new();@@ -1082,7 +1082,7 @@ pub async fn tool_pin_export(let Ok((bytes, _)) = media::fetch_image(&c, &m.url).await else {continue;};- let jpeg = omniget_core::core::tools::pinterest::export::to_jpeg(bytes, &work, i)+ let jpeg = libreget_core::core::tools::pinterest::export::to_jpeg(bytes, &work, i).await.map_err(err)?;images.push(jpeg);@@ -1091,7 +1091,7 @@ pub async fn tool_pin_export(if images.is_empty() {return Err("nenhuma imagem baixada para o PDF".into());}- let pdf = omniget_core::core::tools::jpeg_pdf::build_pdf(&images).map_err(err)?;+ let pdf = libreget_core::core::tools::jpeg_pdf::build_pdf(&images).map_err(err)?;let path = dest.join(format!("{}.pdf", stem));tokio::fs::write(&path, pdf).await.map_err(err)?;path@@ -1115,7 +1115,7 @@ pub async fn tool_pin_export(files = f;}let sub = format!(- "{} pins · OmniGet · {}",+ "{} pins · LibreGet · {}",pins.len(),chrono::Local::now().format("%Y-%m-%d %H:%M"));@@ -1253,7 +1253,7 @@ pub struct SourceOut {}async fn check_link(url: &str) -> LinkCheck {- let Ok(client) = omniget_core::core::tools::client() else {+ let Ok(client) = libreget_core::core::tools::client() else {return LinkCheck {url: url.into(),status: None,@@ -1289,7 +1289,7 @@ async fn check_link(url: &str) -> LinkCheck {}async fn wayback(url: &str) -> Option<String> {- let client = omniget_core::core::tools::client().ok()?;+ let client = libreget_core::core::tools::client().ok()?;let r = client.get("https://archive.org/wayback/available").query(&[("url", url)])diff --git a/src-tauri/src/commands/tools/reddit.rs b/src-tauri/src/commands/tools/reddit.rsindex 20dbf5a8..143eceb1 100644--- a/src-tauri/src/commands/tools/reddit.rs+++ b/src-tauri/src/commands/tools/reddit.rs@@ -3,7 +3,7 @@//! arquivar uma thread inteira com os comentários e ler o export oficial de//! dados do usuário (esse último sem tocar na rede).-use omniget_core::core::tools::reddit::{download, gdpr, thread};+use libreget_core::core::tools::reddit::{download, gdpr, thread};use super::{err, progress};diff --git a/src-tauri/src/commands/tools/speech.rs b/src-tauri/src/commands/tools/speech.rsindex 792ca442..6562333b 100644--- a/src-tauri/src/commands/tools/speech.rs+++ b/src-tauri/src/commands/tools/speech.rs@@ -1,5 +1,5 @@-use omniget_core::core::subtitle_merge::{cues_to_srt, parse_cues};-use omniget_core::core::tools::{dub, edge_tts, srt_translate, whisper};+use libreget_core::core::subtitle_merge::{cues_to_srt, parse_cues};+use libreget_core::core::tools::{dub, edge_tts, srt_translate, whisper};use serde::Serialize;use super::{err, progress};diff --git a/src-tauri/src/commands/tools/system.rs b/src-tauri/src/commands/tools/system.rsindex 9b0ed9ac..cc2c46c2 100644--- a/src-tauri/src/commands/tools/system.rs+++ b/src-tauri/src/commands/tools/system.rs@@ -1,8 +1,8 @@//! Sistema: ajustes do Windows, limpeza de caches, analisador de disco,//! inicialização, desinstalador, bloqueio por `hosts` e (só Windows) debloat,-//! registro e atualizador. A lógica mora em `omniget_core::core::tools`.+//! registro e atualizador. A lógica mora em `libreget_core::core::tools`.-use omniget_core::core::tools::{+use libreget_core::core::tools::{disk, hosts_block, startup, sysclean, uninstall, win_apps, win_registry, win_tweaks,win_updater,};diff --git a/src-tauri/src/commands/tools/text.rs b/src-tauri/src/commands/tools/text.rsindex 7b1c7306..832edbcb 100644--- a/src-tauri/src/commands/tools/text.rs+++ b/src-tauri/src/commands/tools/text.rs@@ -1,6 +1,6 @@//! Ferramentas de texto da seção Tools.-use omniget_core::core::tools::humanize;+use libreget_core::core::tools::humanize;#[tauri::command]pub async fn tool_humanize(text: String, sample: Option<String>) -> Result<String, String> {diff --git a/src-tauri/src/commands/tools/tiktok.rs b/src-tauri/src/commands/tools/tiktok.rsindex 244145d5..33a79b72 100644--- a/src-tauri/src/commands/tools/tiktok.rs+++ b/src-tauri/src/commands/tools/tiktok.rs@@ -5,7 +5,7 @@//! para conta privada e para o site não tratar a gente como robô. Os//! favoritos, esses, não existem sem a sessão do usuário.-use omniget_core::core::tools::tiktok::{download, favorites, sound};+use libreget_core::core::tools::tiktok::{download, favorites, sound};use super::{err, progress};diff --git a/src-tauri/src/commands/tools/tumblr.rs b/src-tauri/src/commands/tools/tumblr.rsindex bd91f1f4..d742ac6f 100644--- a/src-tauri/src/commands/tools/tumblr.rs+++ b/src-tauri/src/commands/tools/tumblr.rs@@ -2,7 +2,7 @@//! likes, espelho offline de um blog e índice unificado de DeviantArt,//! ArtStation e Flickr. A leitura é toda pós-processamento do gallery-dl.-use omniget_core::core::tools::tumblr::{art, backup, gdl, likes};+use libreget_core::core::tools::tumblr::{art, backup, gdl, likes};use super::{err, progress};diff --git a/src-tauri/src/commands/tools/twitch.rs b/src-tauri/src/commands/tools/twitch.rsindex 1910237d..67f1095f 100644--- a/src-tauri/src/commands/tools/twitch.rs+++ b/src-tauri/src/commands/tools/twitch.rs@@ -2,7 +2,7 @@//! GraphQL do site com o Client-ID do player web, mais as APIs abertas de//! BTTV, FFZ e 7TV. Nenhum login, nenhum token de app.-use omniget_core::core::tools::twitch::{chat, emotes};+use libreget_core::core::tools::twitch::{chat, emotes};use super::{err, progress};diff --git a/src-tauri/src/commands/tools/video.rs b/src-tauri/src/commands/tools/video.rsindex b86d34fd..688aeb4f 100644--- a/src-tauri/src/commands/tools/video.rs+++ b/src-tauri/src/commands/tools/video.rs@@ -1,9 +1,9 @@//! Tools de edição de vídeo que não são gravação de tela: comprimir para um//! alvo de tamanho, virar GIF/WebP ou figurinha, cortar silêncio e mexer em//! legenda.-//! A lógica mora em `omniget_core::core::tools`.+//! A lógica mora em `libreget_core::core::tools`.-use omniget_core::core::tools::{+use libreget_core::core::tools::{silence_cut, sticker, subtitle, video_compress, video_gif, video_restore,};diff --git a/src-tauri/src/commands/tools/vimeo.rs b/src-tauri/src/commands/tools/vimeo.rsindex 398be112..7353fa69 100644--- a/src-tauri/src/commands/tools/vimeo.rs+++ b/src-tauri/src/commands/tools/vimeo.rs@@ -4,7 +4,7 @@//! A sessão do gerenciador de cookies entra aqui e só aqui — o front nunca//! manda cookie, e a senha nunca volta em nada que o front receba.-use omniget_core::core::tools::vimeo;+use libreget_core::core::tools::vimeo;use super::{err, progress};diff --git a/src-tauri/src/commands/tools/x.rs b/src-tauri/src/commands/tools/x.rsindex 1634d6ad..9d612b05 100644--- a/src-tauri/src/commands/tools/x.rs+++ b/src-tauri/src/commands/tools/x.rs@@ -1,6 +1,6 @@//! Comandos da categoria X / Twitter (estudo 67).-use omniget_core::core::tools::x::{+use libreget_core::core::tools::x::{self, archive, bookmarks, follows, grok, media, profile, search, thread, XPost, XUser,};use serde::Serialize;@@ -275,7 +275,7 @@ pub async fn tool_x_grok_ask(request: grok::GrokRequest) -> Result<grok::GrokAns#[tauri::command]pub async fn tool_x_data_url(url: String) -> Result<String, String> {use base64::Engine;- let client = omniget_core::core::tools::client().map_err(err)?;+ let client = libreget_core::core::tools::client().map_err(err)?;let resp = client.get(&url).header("Referer", "https://x.com/")diff --git a/src-tauri/src/commands/tools/youtube.rs b/src-tauri/src/commands/tools/youtube.rsindex 8bae10ac..4608c9a2 100644--- a/src-tauri/src/commands/tools/youtube.rs+++ b/src-tauri/src/commands/tools/youtube.rs@@ -1,4 +1,4 @@-use omniget_core::core::tools::{ryd, sponsorblock};+use libreget_core::core::tools::{ryd, sponsorblock};use super::err;@@ -25,7 +25,7 @@ pub fn tool_yt_video_id(url: String) -> Option<String> {/// Baixa uma URL simples (thumbnail, frame) para um arquivo.#[tauri::command]pub async fn tool_save_url(url: String, dest: String) -> Result<String, String> {- let client = omniget_core::core::tools::client().map_err(err)?;+ let client = libreget_core::core::tools::client().map_err(err)?;let resp = client.get(&url).send().await.map_err(err)?;if !resp.status().is_success() {return Err(format!("HTTP {}", resp.status()));@@ -40,7 +40,7 @@ pub async fn tool_save_url(url: String, dest: String) -> Result<String, String>// ── Arquivo, notas e capítulos (rodada 3) ──────────────────────────────-use omniget_core::core::tools::{yt_archive, yt_chapters, yt_notes};+use libreget_core::core::tools::{yt_archive, yt_chapters, yt_notes};use super::progress;diff --git a/src-tauri/src/commands/video_ops.rs b/src-tauri/src/commands/video_ops.rsindex 04e639f2..e9c47cc1 100644--- a/src-tauri/src/commands/video_ops.rs+++ b/src-tauri/src/commands/video_ops.rs@@ -1,4 +1,4 @@-use omniget_core::core::ffmpeg_ops;+use libreget_core::core::ffmpeg_ops;use serde::Serialize;use std::path::{Path, PathBuf};use tauri::Emitter;@@ -38,13 +38,13 @@ async fn run_ffmpeg(args: &[String],output: &Path,) -> Result<(), String> {- let ffmpeg = omniget_core::core::dependencies::find_tool("ffmpeg")+ let ffmpeg = libreget_core::core::dependencies::find_tool("ffmpeg").await.ok_or_else(|| "ffmpeg unavailable".to_string())?;let _ = app.emit("video-op-progress", "running");- let mut cmd = omniget_core::core::process::command(&ffmpeg);+ let mut cmd = libreget_core::core::process::command(&ffmpeg);cmd.arg("-y").arg("-i").arg(input.to_string_lossy().to_string());@@ -73,11 +73,11 @@ pub async fn detect_shot_changes(threshold: Option<f64>,) -> Result<Vec<f64>, String> {let input_path = ensure_input(&input)?;- let ffmpeg = omniget_core::core::dependencies::find_tool("ffmpeg")+ let ffmpeg = libreget_core::core::dependencies::find_tool("ffmpeg").await.ok_or_else(|| "ffmpeg unavailable".to_string())?;let thr = threshold.unwrap_or(0.4).clamp(0.1, 0.9);- let output = omniget_core::core::process::command(&ffmpeg)+ let output = libreget_core::core::process::command(&ffmpeg).arg("-i").arg(input_path.to_string_lossy().to_string()).arg("-filter:v")@@ -97,11 +97,11 @@ pub async fn detect_shot_changes(#[tauri::command]pub async fn waveform_peaks(input: String, buckets: Option<usize>) -> Result<Vec<f32>, String> {let input_path = ensure_input(&input)?;- let ffmpeg = omniget_core::core::dependencies::find_tool("ffmpeg")+ let ffmpeg = libreget_core::core::dependencies::find_tool("ffmpeg").await.ok_or_else(|| "ffmpeg unavailable".to_string())?;let n = buckets.unwrap_or(2000).clamp(100, 20000);- let output = omniget_core::core::process::command(&ffmpeg)+ let output = libreget_core::core::process::command(&ffmpeg).arg("-i").arg(input_path.to_string_lossy().to_string()).arg("-ac")@@ -135,16 +135,16 @@ pub struct SilenceEstimate {#[tauri::command]pub async fn video_op_silence_estimate(input: String) -> Result<SilenceEstimate, String> {let input_path = ensure_input(&input)?;- let ffmpeg = omniget_core::core::dependencies::find_tool("ffmpeg")+ let ffmpeg = libreget_core::core::dependencies::find_tool("ffmpeg").await.ok_or_else(|| "ffmpeg unavailable".to_string())?;- let total_us = omniget_core::core::ffmpeg::get_duration_us(&input_path)+ let total_us = libreget_core::core::ffmpeg::get_duration_us(&input_path).await.map_err(|e| format!("could not read duration: {}", e))?;let total_secs = total_us as f64 / 1_000_000.0;- let mut cmd = omniget_core::core::process::command(&ffmpeg);+ let mut cmd = libreget_core::core::process::command(&ffmpeg);cmd.arg("-i").arg(input_path.to_string_lossy().to_string());for arg in ffmpeg_ops::silence_probe_args() {cmd.arg(arg);@@ -196,14 +196,14 @@ pub async fn video_op_preset(#[cfg(not(target_os = "android"))]#[tauri::command]pub async fn video_op_propose(instruction: String) -> Result<VideoOpProposal, String> {- let cfg = omniget_core::core::ai::get();+ let cfg = libreget_core::core::ai::get();if !cfg.is_configured() {return Err("ai_not_configured".to_string());}let system = "You convert a user's video-editing request into a single-line ffmpeg command. \Use exactly 'ffmpeg -i input <options> output.<ext>'. Choose a sensible output extension. \Only use codec/filter/trim options. No shell operators, no extra text, output ONLY the command.";- let raw = omniget_core::core::ai::chat(system, &instruction).await?;+ let raw = libreget_core::core::ai::chat(system, &instruction).await?;let args = ffmpeg_ops::sanitize_ai_command(&raw)?;// Best-effort extension guess from the model's output line.let out_ext = rawdiff --git a/src-tauri/src/cookies/commands.rs b/src-tauri/src/cookies/commands.rsindex 72e35a18..3c735b85 100644--- a/src-tauri/src/cookies/commands.rs+++ b/src-tauri/src/cookies/commands.rs@@ -537,7 +537,7 @@ pub async fn cookies_test(request: CookieTestRequest) -> Result<CookieTestRespon.ok_or_else(|| "yt-dlp unavailable".to_string())?;let url = request.url.clone();let flags = vec!["--no-warnings".to_string()];- let result = omniget_core::core::log_hook::CURRENT_COOKIE_SLUG+ let result = libreget_core::core::log_hook::CURRENT_COOKIE_SLUG.scope(request.slug.clone(), async move {crate::core::ytdlp::get_video_info(&ytdlp, &url, &flags).await})diff --git a/src-tauri/src/core/awake.rs b/src-tauri/src/core/awake.rsindex 92843972..f41b592e 100644--- a/src-tauri/src/core/awake.rs+++ b/src-tauri/src/core/awake.rs@@ -23,7 +23,7 @@ pub fn sync(active: bool) {match keepawake::Builder::default().idle(true).sleep(true)- .app_name("OmniGet")+ .app_name("LibreGet").reason("Active downloads").create(){diff --git a/src-tauri/src/core/db.rs b/src-tauri/src/core/db.rsindex 0935ba12..0b8c4ef6 100644--- a/src-tauri/src/core/db.rs+++ b/src-tauri/src/core/db.rs@@ -3,10 +3,17 @@ use std::sync::{Mutex, OnceLock};use rusqlite::Connection;-const DB_FILE: &str = "omniget.db";+const DB_FILE: &str = "libreget.db";+const LEGACY_DB_FILE: &str = "omniget.db";fn db_path() -> Option<PathBuf> {- crate::core::paths::app_data_dir().map(|d| d.join(DB_FILE))+ let dir = crate::core::paths::app_data_dir()?;+ let new_path = dir.join(DB_FILE);+ let legacy_path = dir.join(LEGACY_DB_FILE);+ if !new_path.exists() && legacy_path.exists() {+ let _ = std::fs::rename(&legacy_path, &new_path);+ }+ Some(new_path)}fn open() -> Option<Connection> {diff --git a/src-tauri/src/core/events.rs b/src-tauri/src/core/events.rsindex 0a55af73..3bec5260 100644--- a/src-tauri/src/core/events.rs+++ b/src-tauri/src/core/events.rs@@ -1,4 +1,4 @@-use omniget_core::core::events::{EventEmitter, QueueItemInfo, QueueItemProgress};+use libreget_core::core::events::{EventEmitter, QueueItemInfo, QueueItemProgress};use tauri::Emitter;#[derive(Clone)]@@ -17,7 +17,7 @@ impl EventEmitter for TauriEventEmitter {let _ = self.app.emit("queue-state-update", items);let active_count = items.iter()- .filter(|i| i.status == omniget_core::core::events::QueueStatus::Active)+ .filter(|i| i.status == libreget_core::core::events::QueueStatus::Active).count() as u32;crate::tray::update_active_count(&self.app, active_count);}diff --git a/src-tauri/src/core/mod.rs b/src-tauri/src/core/mod.rsindex 865f8c5f..c2372718 100644--- a/src-tauri/src/core/mod.rs+++ b/src-tauri/src/core/mod.rs@@ -1,24 +1,24 @@-pub use omniget_core::core::adaptive_concurrency;-pub use omniget_core::core::clipboard;-pub use omniget_core::core::cookie_parser;-pub use omniget_core::core::course_utils;-pub use omniget_core::core::dependencies;-pub use omniget_core::core::direct_downloader;-pub use omniget_core::core::ffmpeg;-pub use omniget_core::core::filename;-pub use omniget_core::core::hls_downloader;-pub use omniget_core::core::http_client;-pub use omniget_core::core::http_fetcher;-pub use omniget_core::core::hwaccel;-pub use omniget_core::core::impersonation;-pub use omniget_core::core::media_processor;-pub use omniget_core::core::paths;-pub use omniget_core::core::pdfium;-pub use omniget_core::core::pot_provider;-pub use omniget_core::core::process;-pub use omniget_core::core::redirect;-pub use omniget_core::core::registry;-pub use omniget_core::core::ytdlp;+pub use libreget_core::core::adaptive_concurrency;+pub use libreget_core::core::clipboard;+pub use libreget_core::core::cookie_parser;+pub use libreget_core::core::course_utils;+pub use libreget_core::core::dependencies;+pub use libreget_core::core::direct_downloader;+pub use libreget_core::core::ffmpeg;+pub use libreget_core::core::filename;+pub use libreget_core::core::hls_downloader;+pub use libreget_core::core::http_client;+pub use libreget_core::core::http_fetcher;+pub use libreget_core::core::hwaccel;+pub use libreget_core::core::impersonation;+pub use libreget_core::core::media_processor;+pub use libreget_core::core::paths;+pub use libreget_core::core::pdfium;+pub use libreget_core::core::pot_provider;+pub use libreget_core::core::process;+pub use libreget_core::core::redirect;+pub use libreget_core::core::registry;+pub use libreget_core::core::ytdlp;pub mod awake;pub mod binary_versions;diff --git a/src-tauri/src/core/nfo_sidecar.rs b/src-tauri/src/core/nfo_sidecar.rsindex 92e44345..2ce800ff 100644--- a/src-tauri/src/core/nfo_sidecar.rs+++ b/src-tauri/src/core/nfo_sidecar.rs@@ -1,6 +1,6 @@use std::path::{Path, PathBuf};-use omniget_core::models::media::{MediaInfo, MediaType};+use libreget_core::models::media::{MediaInfo, MediaType};pub fn applies(info: &MediaInfo) -> bool {matches!(info.media_type, MediaType::Video | MediaType::Audio)diff --git a/src-tauri/src/core/portable.rs b/src-tauri/src/core/portable.rsindex c730601d..46579568 100644--- a/src-tauri/src/core/portable.rs+++ b/src-tauri/src/core/portable.rs@@ -26,7 +26,7 @@ pub fn portable_webview_dir(data_dir: Option<&Path>) -> Option<PathBuf> {/// acontece uma vez so, antes de qualquer coisa subir, e duplicar a regra aqui/// criaria duas fontes de verdade que divergem no primeiro ajuste.pub fn portable_webview_dir_from_env() -> Option<PathBuf> {- if std::env::var("OMNIGET_PORTABLE").ok().as_deref() != Some("1") {+ if std::env::var("LIBREGET_PORTABLE").ok().as_deref() != Some("1") {return None;}let data_dir = std::env::var("OMNIGET_DATA_DIR").ok()?;@@ -69,11 +69,11 @@ mod tests {// rodam em paralelo. Nenhum outro teste toca estas duas variaveis, mas// dividir isto em varios seria corrida garantida.let restore = (- std::env::var("OMNIGET_PORTABLE").ok(),+ std::env::var("LIBREGET_PORTABLE").ok(),std::env::var("OMNIGET_DATA_DIR").ok(),);- std::env::remove_var("OMNIGET_PORTABLE");+ std::env::remove_var("LIBREGET_PORTABLE");std::env::remove_var("OMNIGET_DATA_DIR");assert_eq!(portable_webview_dir_from_env(),@@ -81,7 +81,7 @@ mod tests {"sem env nao e portatil");- std::env::set_var("OMNIGET_PORTABLE", "1");+ std::env::set_var("LIBREGET_PORTABLE", "1");assert_eq!(portable_webview_dir_from_env(),None,@@ -101,7 +101,7 @@ mod tests {Some(PathBuf::from("/tmp/omniget-portatil/data/webview")));- std::env::set_var("OMNIGET_PORTABLE", "0");+ std::env::set_var("LIBREGET_PORTABLE", "0");assert_eq!(portable_webview_dir_from_env(),None,@@ -109,8 +109,8 @@ mod tests {);match restore.0 {- Some(v) => std::env::set_var("OMNIGET_PORTABLE", v),- None => std::env::remove_var("OMNIGET_PORTABLE"),+ Some(v) => std::env::set_var("LIBREGET_PORTABLE", v),+ None => std::env::remove_var("LIBREGET_PORTABLE"),}match restore.1 {Some(v) => std::env::set_var("OMNIGET_DATA_DIR", v),diff --git a/src-tauri/src/core/queue.rs b/src-tauri/src/core/queue.rsindex fe12c0de..2eb6fec3 100644--- a/src-tauri/src/core/queue.rs+++ b/src-tauri/src/core/queue.rs@@ -40,8 +40,8 @@ use crate::core::ffmpeg::{self, MetadataEmbed};use crate::models::media::MediaInfo;use crate::platforms::traits::PlatformDownloader;use crate::storage::config;-use omniget_core::core::ytdlp::CommandRecord;-use omniget_core::models::progress::StreamInfo;+use libreget_core::core::ytdlp::CommandRecord;+use libreget_core::models::progress::StreamInfo;struct CachedInfo {info: MediaInfo,@@ -120,7 +120,7 @@ pub fn is_retryable_error_message(message: &str) -> bool {if lower.contains("cancel") {return false;}- let (category, _) = omniget_core::core::errors::classify_download_error(message);+ let (category, _) = libreget_core::core::errors::classify_download_error(message);matches!(category, "unknown" | "rate_limited")}@@ -265,7 +265,7 @@ impl QueueItem {fragment_index: self.fragment_index,fragment_count: self.fragment_count,started_at_ms: self.started_at_ms,- command: omniget_core::core::ytdlp::get_command(self.id),+ command: libreget_core::core::ytdlp::get_command(self.id),}}@@ -338,10 +338,10 @@ impl DownloadQueue {) {let computed_kind = if let Some(ref mi) = media_info {match mi.media_type {- omniget_core::models::media::MediaType::Photo- | omniget_core::models::media::MediaType::Carousel => Some(QueueKind::Image),- omniget_core::models::media::MediaType::Audio => Some(QueueKind::Audio),- omniget_core::models::media::MediaType::Video => Some(QueueKind::Video),+ libreget_core::models::media::MediaType::Photo+ | libreget_core::models::media::MediaType::Carousel => Some(QueueKind::Image),+ libreget_core::models::media::MediaType::Audio => Some(QueueKind::Audio),+ libreget_core::models::media::MediaType::Video => Some(QueueKind::Video),_ => Some(kind_from_platform(&platform)),}} else {@@ -667,11 +667,11 @@ impl DownloadQueue {}if let Some(ref m) = item.media_info {match m.media_type {- omniget_core::models::media::MediaType::Photo- | omniget_core::models::media::MediaType::Carousel => {+ libreget_core::models::media::MediaType::Photo+ | libreget_core::models::media::MediaType::Carousel => {item.kind = Some(QueueKind::Image);}- omniget_core::models::media::MediaType::Audio => {+ libreget_core::models::media::MediaType::Audio => {item.kind = Some(QueueKind::Audio);}_ => {}@@ -758,7 +758,7 @@ impl DownloadQueue {if let Some(item) = self.items.iter_mut().find(|i| i.id == id) {if item.status == QueueStatus::Active {if item.platform != "magnet"- && !omniget_core::core::ytdlp::pause_download_process(id)+ && !libreget_core::core::ytdlp::pause_download_process(id){return false;}@@ -775,7 +775,7 @@ impl DownloadQueue {if let Some(item) = self.items.iter_mut().find(|i| i.id == id) {if item.status == QueueStatus::Paused {if item.platform != "magnet"- && !omniget_core::core::ytdlp::resume_download_process(id)+ && !libreget_core::core::ytdlp::resume_download_process(id){return false;}@@ -791,7 +791,7 @@ impl DownloadQueue {for item in self.items.iter_mut() {if item.status == QueueStatus::Active {if item.platform != "magnet"- && !omniget_core::core::ytdlp::pause_download_process(item.id)+ && !libreget_core::core::ytdlp::pause_download_process(item.id){continue;}@@ -810,7 +810,7 @@ impl DownloadQueue {if item.status == QueueStatus::Paused {let tid = item.torrent_id;if item.platform != "magnet"- && !omniget_core::core::ytdlp::resume_download_process(item.id)+ && !libreget_core::core::ytdlp::resume_download_process(item.id){continue;}@@ -974,7 +974,7 @@ impl DownloadQueue {) {return Err("Download is still running".to_string());}- if omniget_core::core::ytdlp::get_command(id).is_none() {+ if libreget_core::core::ytdlp::get_command(id).is_none() {return Err("This download did not run yt-dlp; there is no command to edit".to_string(),);@@ -999,7 +999,7 @@ impl DownloadQueue {if result.is_some() {crate::core::recovery::remove(id);crate::core::queue_history::remove(id);- omniget_core::core::ytdlp::clear_command(id);+ libreget_core::core::ytdlp::clear_command(id);}result}@@ -1132,9 +1132,9 @@ pub fn emit_queue_state_from_state(app: &tauri::AppHandle, state: Vec<QueueItemIif let Some(window) = app.get_webview_window("main") {let title = if total > 0 {- format!("({}) OmniGet", total)+ format!("({}) LibreGet", total)} else {- "OmniGet".into()+ "LibreGet".into()};let _ = window.set_title(&title);}@@ -1354,7 +1354,7 @@ async fn spawn_download_inner(&app,item_id,format!(- "[omniget] using cached video info: platform={} title=\"{}\"",+ "[libreget] using cached video info: platform={} title=\"{}\"",platform_name, i.title),);@@ -1369,7 +1369,7 @@ async fn spawn_download_inner(&app,item_id,format!(- "[omniget] fetching video info: platform={} url={}",+ "[libreget] fetching video info: platform={} url={}",platform_name, url),);@@ -1398,19 +1398,19 @@ async fn spawn_download_inner(let info_future =fetch_and_cache_info(&url, &*downloader, &platform_name, ytdlp_path.as_deref());- let scoped_info_future = omniget_core::core::log_hook::CURRENT_COOKIE_SLUG.scope(+ let scoped_info_future = libreget_core::core::log_hook::CURRENT_COOKIE_SLUG.scope(cookie_slug.clone(),- omniget_core::core::log_hook::CURRENT_DOWNLOAD_ID.scope(item_id, info_future),+ libreget_core::core::log_hook::CURRENT_DOWNLOAD_ID.scope(item_id, info_future),);let info_timeout_secs = if platform_name == "youtube"|| url.to_ascii_lowercase().contains("youtube.com")|| url.to_ascii_lowercase().contains("youtu.be"){- omniget_core::core::ytdlp::YOUTUBE_VIDEO_INFO_TOTAL_TIMEOUT_SECS+ libreget_core::core::ytdlp::YOUTUBE_VIDEO_INFO_TOTAL_TIMEOUT_SECS} else if platform_name == "douyin" {30} else {- omniget_core::core::ytdlp::DEFAULT_VIDEO_INFO_TOTAL_TIMEOUT_SECS+ libreget_core::core::ytdlp::DEFAULT_VIDEO_INFO_TOTAL_TIMEOUT_SECS};let info_result = tokio::time::timeout(std::time::Duration::from_secs(info_timeout_secs),@@ -1424,7 +1424,7 @@ async fn spawn_download_inner(&app,item_id,format!(- "[omniget] video info fetched in {:.1}s: title=\"{}\"",+ "[libreget] video info fetched in {:.1}s: title=\"{}\"",info_start.elapsed().as_secs_f64(),i.title),@@ -1436,7 +1436,7 @@ async fn spawn_download_inner(&app,item_id,format!(- "[omniget] failed fetching video info after {:.1}s: {}",+ "[libreget] failed fetching video info after {:.1}s: {}",info_start.elapsed().as_secs_f64(),e),@@ -1460,7 +1460,7 @@ async fn spawn_download_inner(&app,item_id,format!(- "[omniget] video info timed out after {}s",+ "[libreget] video info timed out after {}s",info_timeout_secs),);@@ -1490,7 +1490,7 @@ async fn spawn_download_inner(let mut info = info;if is_generic_title(&info.title) {- let pokemon = omniget_core::core::pokemon_names::random_pokemon_name();+ let pokemon = libreget_core::core::pokemon_names::random_pokemon_name();info.title = format!("video_{}", pokemon);}@@ -1509,14 +1509,14 @@ async fn spawn_download_inner(item.file_count = Some(fc);item.media_info = Some(info.clone());match info.media_type {- omniget_core::models::media::MediaType::Photo- | omniget_core::models::media::MediaType::Carousel => {+ libreget_core::models::media::MediaType::Photo+ | libreget_core::models::media::MediaType::Carousel => {item.kind = Some(QueueKind::Image);}- omniget_core::models::media::MediaType::Audio => {+ libreget_core::models::media::MediaType::Audio => {item.kind = Some(QueueKind::Audio);}- omniget_core::models::media::MediaType::Video => {+ libreget_core::models::media::MediaType::Video => {item.kind = Some(QueueKind::Video);}_ => {}@@ -1601,7 +1601,7 @@ async fn spawn_download_inner(let item_title = info.title.clone();let log_title = item_title.clone();let item_platform = platform_name.clone();- let (tx, mut rx) = mpsc::channel::<omniget_core::models::progress::ProgressUpdate>(32);+ let (tx, mut rx) = mpsc::channel::<libreget_core::models::progress::ProgressUpdate>(32);let app_progress = app.clone();let queue_progress = queue.clone();@@ -1757,7 +1757,7 @@ async fn spawn_download_inner(let eta_seconds = update.eta_seconds- .or_else(|| omniget_core::core::ytdlp::get_eta(item_id))+ .or_else(|| libreget_core::core::ytdlp::get_eta(item_id)).or_else(|| {if current_speed > 0.0 {resolved_total.and_then(|total| {@@ -1809,14 +1809,14 @@ async fn spawn_download_inner(},);}- omniget_core::core::ytdlp::clear_eta(item_id);+ libreget_core::core::ytdlp::clear_eta(item_id);});if let Some(ua) = opts.user_agent.clone() {- omniget_core::core::ytdlp::register_ext_user_agent(url.clone(), ua);+ libreget_core::core::ytdlp::register_ext_user_agent(url.clone(), ua);}if let Some(hdrs) = opts.extra_headers.clone() {- omniget_core::core::ytdlp::register_ext_headers(url.clone(), hdrs);+ libreget_core::core::ytdlp::register_ext_headers(url.clone(), hdrs);}let dl_start = std::time::Instant::now();@@ -1824,7 +1824,7 @@ async fn spawn_download_inner(&app,item_id,format!(- "[omniget] starting download: platform={} title=\"{}\" url={}",+ "[libreget] starting download: platform={} title=\"{}\" url={}",platform_name, log_title, url),);@@ -1841,22 +1841,22 @@ async fn spawn_download_inner(&app,item_id,format!(- "[omniget] running user-edited command ({} args), single attempt",+ "[libreget] running user-edited command ({} args), single attempt",argv.len()),);}- let result = omniget_core::core::log_hook::CURRENT_ARGV_OVERRIDE+ let result = libreget_core::core::log_hook::CURRENT_ARGV_OVERRIDE.scope(argv_override.clone(),- omniget_core::core::log_hook::CURRENT_COOKIE_SLUG.scope(+ libreget_core::core::log_hook::CURRENT_COOKIE_SLUG.scope(cookie_slug.clone(),- omniget_core::core::log_hook::CURRENT_DOWNLOAD_ID.scope(item_id, dl_future),+ libreget_core::core::log_hook::CURRENT_DOWNLOAD_ID.scope(item_id, dl_future),),).await;- omniget_core::core::ytdlp::clear_ext_user_agent(&url);- omniget_core::core::ytdlp::clear_ext_headers(&url);+ libreget_core::core::ytdlp::clear_ext_user_agent(&url);+ libreget_core::core::ytdlp::clear_ext_headers(&url);tracing::info!("[queue] download {} completed in {:?}",item_id,@@ -1890,7 +1890,7 @@ async fn spawn_download_inner(&app,item_id,format!(- "[omniget] download finished: path={} size={} bytes",+ "[libreget] download finished: path={} size={} bytes",dl.file_path.to_string_lossy(),dl.file_size_bytes),@@ -1907,7 +1907,7 @@ async fn spawn_download_inner(&app,item_id,format!(- "[omniget] download reported success but output missing or empty: {}",+ "[libreget] download reported success but output missing or empty: {}",dl.file_path.to_string_lossy()),);@@ -1952,7 +1952,7 @@ async fn spawn_download_inner(Ok(path) => append_download_log(&app,item_id,- format!("[omniget] wrote NFO sidecar: {}", path.to_string_lossy()),+ format!("[libreget] wrote NFO sidecar: {}", path.to_string_lossy()),),Err(e) => tracing::warn!("NFO sidecar failed for '{}': {}", info.title, e),}@@ -2004,9 +2004,9 @@ async fn spawn_download_inner(append_download_log(&app,item_id,- format!("[omniget] download failed: {}", raw_err),+ format!("[libreget] download failed: {}", raw_err),);- let (category, hint) = omniget_core::core::errors::classify_download_error(&raw_err);+ let (category, hint) = libreget_core::core::errors::classify_download_error(&raw_err);let user_msg = if category != "unknown" {format!("{} ({})", hint, raw_err)} else {@@ -2154,7 +2154,7 @@ async fn fetch_and_cache_info(let info = if let Some(ytdlp) = ytdlp_path {match platform {"youtube" => {- omniget_core::platforms::YouTubeDownloader::fetch_with_ytdlp(url, ytdlp).await?+ libreget_core::platforms::YouTubeDownloader::fetch_with_ytdlp(url, ytdlp).await?}"generic" => {if crate::platforms::generic_ytdlp::is_direct_media_url(url).is_some() {diff --git a/src-tauri/src/core/rpc.rs b/src-tauri/src/core/rpc.rsindex df5a42f2..4158570c 100644--- a/src-tauri/src/core/rpc.rs+++ b/src-tauri/src/core/rpc.rs@@ -6,7 +6,7 @@ use discord_rich_presence::{DiscordIpc, DiscordIpcClient};use once_cell::sync::Lazy;use serde_json::{json, Value};-pub use omniget_core::models::settings::RpcSettings;+pub use libreget_core::models::settings::RpcSettings;const GITHUB_BUTTON_LABEL: &str = "View on GitHub";const GITHUB_BUTTON_URL: &str = "https://github.com/OpenSelena/omniget";diff --git a/src-tauri/src/core/url_resolver.rs b/src-tauri/src/core/url_resolver.rsindex 1f110b15..2a6496e5 100644--- a/src-tauri/src/core/url_resolver.rs+++ b/src-tauri/src/core/url_resolver.rs@@ -9,8 +9,8 @@use std::sync::Arc;-use omniget_core::core::registry::PlatformRegistry;-use omniget_core::platforms::{direct_file, Platform, PlatformDownloader};+use libreget_core::core::registry::PlatformRegistry;+use libreget_core::platforms::{direct_file, Platform, PlatformDownloader};pub struct Resolved {pub downloader: Arc<dyn PlatformDownloader>,diff --git a/src-tauri/src/extension_storage.rs b/src-tauri/src/extension_storage.rsindex 1a76ea48..b9314eca 100644--- a/src-tauri/src/extension_storage.rs+++ b/src-tauri/src/extension_storage.rs@@ -350,7 +350,7 @@ pub fn read_extension_metadata(url: &str) -> Option<ExtensionMetadata> {/// best we can do is delete the files and let Chrome / Firefox skip them/// silently the next time they look for a host.pub fn cleanup_legacy_native_messaging() {- let host_names = ["com.openselena.omniget"];+ let host_names = ["com.openselena.libreget"];if let Some(data_dir) = crate::core::paths::app_data_dir() {let dir = data_dir.join("chrome-native-host");diff --git a/src-tauri/src/external_url.rs b/src-tauri/src/external_url.rsindex 5867a6f3..5d10914e 100644--- a/src-tauri/src/external_url.rs+++ b/src-tauri/src/external_url.rs@@ -56,7 +56,7 @@ pub fn is_external_url(value: &str) -> bool {.unwrap_or(false)}-/// Returns true when the request originated from the `omniget://` protocol+/// Returns true when the request originated from the `libreget://` protocol/// handler — either via the deep-link event or because the raw URL still/// carries the scheme prefix when handed to the second-instance callback.///@@ -72,7 +72,7 @@ pub fn arrived_via_scheme(raw_url: &str, source: &str) -> bool {pub fn normalize_external_url(value: &str) -> Option<String> {let trimmed = value.trim();let rest = trimmed- .strip_prefix("omniget://")+ .strip_prefix("libreget://").or_else(|| trimmed.strip_prefix("omniget:"))?;let rest = rest.trim_start_matches('/');if rest.is_empty() {@@ -373,11 +373,11 @@ whereI: IntoIterator<Item = S>,S: AsRef<str>,{- // Return the raw argument (preserving any `omniget://` prefix). The caller+ // Return the raw argument (preserving any `libreget://` prefix). The caller// forwards this string to `handle_external_url`, which normalises it after// recording whether the request arrived through the scheme — preserving// the prefix is what lets that detection work on Linux's single-instance- // path, where the OS hands us the omniget:// URL as a plain CLI argument.+ // path, where the OS hands us the libreget:// URL as a plain CLI argument.args.into_iter().map(|arg| arg.as_ref().trim().to_string()).find(|arg| is_external_url(arg))@@ -409,7 +409,7 @@ mod tests {#[test]fn normalize_strips_omniget_prefix_and_adds_https() {assert_eq!(- normalize_external_url("omniget://www.youtube.com/watch?v=abc"),+ normalize_external_url("libreget://www.youtube.com/watch?v=abc"),Some("https://www.youtube.com/watch?v=abc".to_string()));}@@ -417,7 +417,7 @@ mod tests {#[test]fn normalize_preserves_explicit_http_inside_scheme_payload() {assert_eq!(- normalize_external_url("omniget://https://example.com/v"),+ normalize_external_url("libreget://https://example.com/v"),Some("https://example.com/v".to_string()));}@@ -439,11 +439,11 @@ mod tests {#[test]fn arrived_via_scheme_detects_prefix() {assert!(arrived_via_scheme(- "omniget://www.youtube.com/watch?v=abc",+ "libreget://www.youtube.com/watch?v=abc","command-line"));assert!(arrived_via_scheme(- " omniget://example.com/v",+ " libreget://example.com/v","command-line"));assert!(arrived_via_scheme("omniget:magnet:?xt=foo", "command-line"));@@ -469,10 +469,10 @@ mod tests {fn find_external_url_arg_preserves_omniget_prefix() {// The single-instance / cold-start callbacks rely on this so the// downstream `arrived_via_scheme` check can still detect the scheme.- let args = vec!["--flag", "omniget://www.youtube.com/watch?v=abc"];+ let args = vec!["--flag", "libreget://www.youtube.com/watch?v=abc"];assert_eq!(find_external_url_arg(args.iter().copied()),- Some("omniget://www.youtube.com/watch?v=abc".to_string())+ Some("libreget://www.youtube.com/watch?v=abc".to_string()));}diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rsindex da183bb5..6f35ddcf 100644--- a/src-tauri/src/lib.rs+++ b/src-tauri/src/lib.rs@@ -28,14 +28,14 @@ pub mod tray;struct DesktopCookieProvider;-impl omniget_core::platforms::cookie_provider::CookieProvider for DesktopCookieProvider {+impl libreget_core::platforms::cookie_provider::CookieProvider for DesktopCookieProvider {fn cookie_path_for(&self, domain: &str) -> Option<std::path::PathBuf> {let root = crate::cookies::root_domain_of(domain);if root.is_empty() {return None;}- let slug = omniget_core::core::log_hook::current_cookie_slug();+ let slug = libreget_core::core::log_hook::current_cookie_slug();let path = crate::cookies::account_path_for_consumer(&root, slug.as_deref()).or_else(|| crate::cookies::account_path_for_consumer(&root, None))?;crate::cookies::touch_last_used(&root, slug.as_deref().unwrap_or("_default"));@@ -77,12 +77,12 @@ impl omniget_core::platforms::cookie_provider::CookieProvider for DesktopCookiePstruct DesktopBilibiliRuntimeProvider;-impl omniget_core::platforms::bilibili::BilibiliRuntimeProvider for DesktopBilibiliRuntimeProvider {+impl libreget_core::platforms::bilibili::BilibiliRuntimeProvider for DesktopBilibiliRuntimeProvider {fn active_account_slug(&self) -> Option<String> {let registry = crate::cookies::load_registry();let bucket = registry.buckets.get("bilibili.com")?;- if let Some(selected) = omniget_core::core::log_hook::current_cookie_slug() {+ if let Some(selected) = libreget_core::core::log_hook::current_cookie_slug() {if bucket.accounts.iter()@@ -110,17 +110,17 @@ impl omniget_core::platforms::bilibili::BilibiliRuntimeProvider for DesktopBilib.map(|a| a.slug.clone())}- fn settings(&self) -> omniget_core::models::settings::AppSettings {+ fn settings(&self) -> libreget_core::models::settings::AppSettings {storage::config::load_settings_standalone()}fn persist_account(&self,- cookies: &[omniget_core::platforms::bilibili::BilibiliAuthCookie],+ cookies: &[libreget_core::platforms::bilibili::BilibiliAuthCookie],uname: &str,source_label: &str,) -> Result<String, String> {- let slug = omniget_core::platforms::bilibili::auth::slug_from_uname(uname);+ let slug = libreget_core::platforms::bilibili::auth::slug_from_uname(uname);let entries: Vec<crate::extension_storage::ExtensionCookie> = cookies.iter().map(|cookie| crate::extension_storage::ExtensionCookie {@@ -215,7 +215,7 @@ pub fn run() {core::portable::startup_banner(env!("CARGO_PKG_VERSION"),std::process::id(),- std::env::var("OMNIGET_PORTABLE").ok().as_deref() == Some("1"),+ std::env::var("LIBREGET_PORTABLE").ok().as_deref() == Some("1"),core::paths::app_data_dir().as_deref(),));@@ -224,28 +224,28 @@ pub fn run() {// gallery-dl first: it claims bulk-listing URLs (profiles, subreddits)// that the single-post Twitter/Reddit downloaders would otherwise matchregistry.register(Arc::new(platforms::gallerydl::GalleryDlDownloader::new()));- registry.register(Arc::new(omniget_core::platforms::InstagramDownloader::new()));- registry.register(Arc::new(omniget_core::platforms::ThreadsDownloader::new()));- registry.register(Arc::new(omniget_core::platforms::PinterestDownloader::new()));- registry.register(Arc::new(omniget_core::platforms::TikTokDownloader::new()));- registry.register(Arc::new(omniget_core::platforms::TwitterDownloader::new()));+ registry.register(Arc::new(libreget_core::platforms::InstagramDownloader::new()));+ registry.register(Arc::new(libreget_core::platforms::ThreadsDownloader::new()));+ registry.register(Arc::new(libreget_core::platforms::PinterestDownloader::new()));+ registry.register(Arc::new(libreget_core::platforms::TikTokDownloader::new()));+ registry.register(Arc::new(libreget_core::platforms::TwitterDownloader::new()));registry.register(Arc::new(- omniget_core::platforms::TwitchClipsDownloader::new(),+ libreget_core::platforms::TwitchClipsDownloader::new(),));- registry.register(Arc::new(omniget_core::platforms::BlueskyDownloader::new()));- registry.register(Arc::new(omniget_core::platforms::RedditDownloader::new()));- registry.register(Arc::new(omniget_core::platforms::YouTubeDownloader::new()));- registry.register(Arc::new(omniget_core::platforms::VimeoDownloader::new()));- registry.register(Arc::new(omniget_core::platforms::BilibiliDownloader::new()));- registry.register(Arc::new(omniget_core::platforms::DouyinDownloader::new()));+ registry.register(Arc::new(libreget_core::platforms::BlueskyDownloader::new()));+ registry.register(Arc::new(libreget_core::platforms::RedditDownloader::new()));+ registry.register(Arc::new(libreget_core::platforms::YouTubeDownloader::new()));+ registry.register(Arc::new(libreget_core::platforms::VimeoDownloader::new()));+ registry.register(Arc::new(libreget_core::platforms::BilibiliDownloader::new()));+ registry.register(Arc::new(libreget_core::platforms::DouyinDownloader::new()));let torrent_session: Arc<tokio::sync::Mutex<Option<Arc<librqbit::Session>>>> =Arc::new(tokio::sync::Mutex::new(None));registry.register(Arc::new(platforms::magnet::MagnetDownloader::new(torrent_session.clone(),)));- registry.register(Arc::new(omniget_core::platforms::P2pDownloader::new()));+ registry.register(Arc::new(libreget_core::platforms::P2pDownloader::new()));registry.register(Arc::new(- omniget_core::platforms::DirectFileDownloader::new(),+ libreget_core::platforms::DirectFileDownloader::new(),));registry.register(Arc::new(platforms::generic_ytdlp::GenericYtdlpDownloader::new(),@@ -332,7 +332,7 @@ pub fn run() {// Nao e so Windows. No Linux o wry usa este caminho para// `base_data_directory`, `base_cache_directory` e os cookies do// WebKitGTK; sem ele o modo portatil deixa- // `XDG_DATA_HOME/com.openselena.omniget` no perfil do usuario — a+ // `XDG_DATA_HOME/com.openselena.libreget` no perfil do usuario — a// mesma #209, fora do Windows. Foi o smoke test do B55 que// pegou isso, na primeira vez que rodou.//@@ -383,7 +383,7 @@ pub fn run() {// Modo smoke: sobe, prova que a janela existe, e sai sozinho com 0.// So existe para o CI conseguir responder "abre?", que e a pergunta// que compilar nunca responde.- if let Ok(raw) = std::env::var("OMNIGET_SMOKE_EXIT_MS") {+ if let Ok(raw) = std::env::var("LIBREGET_SMOKE_EXIT_MS") {if let Ok(ms) = raw.trim().parse::<u64>() {let handle = app.handle().clone();std::thread::spawn(move || {@@ -406,7 +406,7 @@ pub fn run() {}{let handle = app.handle().clone();- omniget_core::platforms::bilibili::notify::set_emitter(Box::new(+ libreget_core::platforms::bilibili::notify::set_emitter(Box::new(move |event: &str, payload: serde_json::Value| {use tauri::Emitter;let _ = handle.emit(event, payload);@@ -418,10 +418,10 @@ pub fn run() {core::http_fetcher::set_global_max_concurrent_segments(settings.advanced.max_concurrent_segments as usize,);- omniget_core::platforms::cookie_provider::set_cookie_provider(Arc::new(+ libreget_core::platforms::cookie_provider::set_cookie_provider(Arc::new(DesktopCookieProvider,));- omniget_core::platforms::bilibili::set_runtime_provider(Arc::new(+ libreget_core::platforms::bilibili::set_runtime_provider(Arc::new(DesktopBilibiliRuntimeProvider,));core::ytdlp::set_per_domain_cookie_fn(|url| {@@ -431,7 +431,7 @@ pub fn run() {if root.is_empty() {return None;}- let slug = omniget_core::core::log_hook::current_cookie_slug();+ let slug = libreget_core::core::log_hook::current_cookie_slug();let path = crate::cookies::account_path_for_consumer(&root, slug.as_deref())?;crate::cookies::touch_last_used(&root, slug.as_deref().unwrap_or("_default"));Some(path)@@ -574,7 +574,7 @@ pub fn run() {});{let app_handle = app.handle().clone();- omniget_core::core::log_hook::set_log_sink(std::sync::Arc::new(move |id, line| {+ libreget_core::core::log_hook::set_log_sink(std::sync::Arc::new(move |id, line| {// B33: caixa-preta. Toda linha de log de download passa por// aqui, e o `record` redige antes de guardar — e o unico// ponto onde da para capturar o historico sem instrumentar@@ -642,14 +642,14 @@ pub fn run() {}});}- // Make sure the OS routes `omniget://` to this binary even when the+ // Make sure the OS routes `libreget://` to this binary even when the// package didn't ship a desktop file with `MimeType=x-scheme-handler/omniget;`// or when the user is running from an AppImage / unpacked build.// No-op on macOS (which uses Info.plist registered by the bundler).#[cfg(any(target_os = "linux", target_os = "windows"))]{if let Err(error) = app.deep_link().register_all() {- tracing::warn!("Failed to register omniget:// scheme: {}", error);+ tracing::warn!("Failed to register libreget:// scheme: {}", error);}}tray::setup(app.handle())?;@@ -710,7 +710,7 @@ pub fn run() {let plugins_dir = core::paths::app_data_dir().unwrap_or_else(|| std::path::PathBuf::from(".")).join("plugins");- let host: std::sync::Arc<dyn omniget_plugin_sdk::PluginHost> = std::sync::Arc::new(+ let host: std::sync::Arc<dyn libreget_plugin_sdk::PluginHost> = std::sync::Arc::new(plugin_host::PluginHostImpl::new(app.handle().clone(), plugins_dir),);let plugin_mgr = app@@ -729,19 +729,19 @@ pub fn run() {{let mut mgr = mgr_for_plugins.blocking_write();let _ = mgr.register_builtin(- omniget_plugin_convert::manifest(),- Box::new(omniget_plugin_convert::ConvertPlugin::new()),+ libreget_plugin_convert::manifest(),+ Box::new(libreget_plugin_convert::ConvertPlugin::new()),std::sync::Arc::clone(&host),);let _ = mgr.register_builtin(- omniget_plugin_telegram::manifest(),- Box::new(omniget_plugin_telegram::TelegramPlugin::new()),+ libreget_plugin_telegram::manifest(),+ Box::new(libreget_plugin_telegram::TelegramPlugin::new()),std::sync::Arc::clone(&host),);let _ = mgr.register_builtin(- omniget_plugin_courses::manifest(),+ libreget_plugin_courses::manifest(),Box::new(- omniget_plugin_courses::CoursesPlugin::new()+ libreget_plugin_courses::CoursesPlugin::new().with_app(app_emit.clone()),),std::sync::Arc::clone(&host),diff --git a/src-tauri/src/local_bridge.rs b/src-tauri/src/local_bridge.rsindex 84e63090..975a50f9 100644--- a/src-tauri/src/local_bridge.rs+++ b/src-tauri/src/local_bridge.rs@@ -770,7 +770,7 @@ async fn enqueue(// the shortcut, never the enqueue.if let Some(text) = payload.manifest_text.as_deref() {if !text.trim().is_empty() {- match omniget_core::core::extension_manifest::store_manifest(&payload.url, text) {+ match libreget_core::core::extension_manifest::store_manifest(&payload.url, text) {Ok(()) => tracing::info!("stored extension-captured playlist ({} bytes) for {}",text.len(),diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rsindex a21c741b..34fb5054 100644--- a/src-tauri/src/main.rs+++ b/src-tauri/src/main.rs@@ -6,7 +6,7 @@ fn check_portable_mode() {if dir.join("portable.txt").exists() || dir.join(".portable").exists() {let data_dir = dir.join("data");let _ = std::fs::create_dir_all(&data_dir);- std::env::set_var("OMNIGET_PORTABLE", "1");+ std::env::set_var("LIBREGET_PORTABLE", "1");std::env::set_var("OMNIGET_DATA_DIR", data_dir.to_string_lossy().to_string());#[cfg(windows)]@@ -26,7 +26,7 @@ fn check_portable_mode() {if !portable_settings.exists() {if let Some(base) = dirs::data_dir() {let modern_settings =- base.join("com.openselena.omniget").join("settings.json");+ base.join("com.openselena.libreget").join("settings.json");if modern_settings.exists() {let _ = std::fs::copy(&modern_settings, &portable_settings);}@@ -41,7 +41,7 @@ fn setup_environment() {std::env::remove_var("PYTHONHOME");std::env::remove_var("PYTHONPATH");- if let Some(bin_dir) = omniget_lib::core::paths::app_data_dir().map(|d| d.join("bin")) {+ if let Some(bin_dir) = libreget_lib::core::paths::app_data_dir().map(|d| d.join("bin")) {let sep = if cfg!(windows) { ";" } else { ":" };let current = std::env::var("PATH").unwrap_or_default();std::env::set_var("PATH", format!("{}{}{}", bin_dir.display(), sep, current));@@ -133,5 +133,5 @@ fn main() {#[cfg(windows)]check_fixed_webview_runtime();setup_environment();- omniget_lib::run()+ libreget_lib::run()}diff --git a/src-tauri/src/mcp.rs b/src-tauri/src/mcp.rsindex 166d0ae2..e1c94bb6 100644--- a/src-tauri/src/mcp.rs+++ b/src-tauri/src/mcp.rs@@ -4,7 +4,7 @@//! que é o que Claude Code, Cursor, Goose e o `mcp-remote` do Claude Desktop//! aceitam. Sem crate de MCP: o protocolo aqui é JSON-RPC com quatro métodos.-use omniget_core::core::tools::{+use libreget_core::core::tools::{self as tools, ai_keys, disk, dupes, edge_tts, file_search, humanize, image_resize, ocr, pdf,pricing, ryd, sponsorblock, startup, sysclean, uninstall, whisper, x,};@@ -33,7 +33,7 @@ pub fn tools() -> Vec<ToolDef> {input_schema,};vec![- t("download_url", "Queue a URL (video, audio, playlist, course, image) in the OmniGet Downloads panel. Same as pasting it in the app.", obj(json!({ "url": { "type": "string" } }), &["url"])),+ t("download_url", "Queue a URL (video, audio, playlist, course, image) in the LibreGet Downloads panel. Same as pasting it in the app.", obj(json!({ "url": { "type": "string" } }), &["url"])),t("youtube_sponsorblock", "SponsorBlock segments (sponsor, intro, outro, selfpromo…) of a YouTube video.", obj(json!({ "url": { "type": "string" }, "categories": { "type": "array", "items": { "type": "string" } } }), &["url"])),t("youtube_dislikes", "Return YouTube Dislike estimates for a video.", obj(json!({ "url": { "type": "string" } }), &["url"])),t("pdf_info", "Pages, size, title, author and whether the PDF has a text layer.", obj(json!({ "path": { "type": "string" } }), &["path"])),@@ -55,7 +55,7 @@ pub fn tools() -> Vec<ToolDef> {t("x_profile", "Profile analytics for an X/Twitter user (engagement, best hours, top posts).", obj(json!({ "handle": { "type": "string" }, "limit": { "type": "integer" } }), &["handle"])),t("x_search", "Search X/Twitter posts (advanced operators supported).", obj(json!({ "query": { "type": "string" }, "feed": { "type": "string", "enum": ["latest", "top"] } }), &["query"])),t("x_trends", "Current X/Twitter trends.", obj(json!({}), &[])),- t("instagram_profile", "Public info of an Instagram profile, using the cookies captured by the OmniGet extension.", obj(json!({ "username": { "type": "string" }, "account": { "type": "string", "description": "cookie slot, default _default" } }), &["username"])),+ t("instagram_profile", "Public info of an Instagram profile, using the cookies captured by the LibreGet extension.", obj(json!({ "username": { "type": "string" }, "account": { "type": "string", "description": "cookie slot, default _default" } }), &["username"])),t("gallery_download", "Download a gallery/profile with gallery-dl (Pinterest, ArtStation, DeviantArt, Reddit…).", obj(json!({ "url": { "type": "string" }, "dest": { "type": "string" } }), &["url", "dest"])),t("aria2_download", "Download a large file with aria2 (multi-connection).", obj(json!({ "url": { "type": "string" }, "dest_dir": { "type": "string" }, "connections": { "type": "integer" } }), &["url", "dest_dir"])),t("disk_volumes", "Mounted volumes with total and free space.", obj(json!({}), &[])),@@ -499,7 +499,7 @@ pub async fn call(app: &AppHandle, name: &str, a: Value) -> Result<Value, String"download_status" => {let id = need_id(&a, "download_id")?;let item = queue_item(app, id).await?;- let command = omniget_core::core::ytdlp::get_command(id);+ let command = libreget_core::core::ytdlp::get_command(id);let log = crate::core::download_log::get(id);let log: Vec<String> = log.into_iter().rev().take(20).rev().collect();to_json(json!({ "item": item, "command": command, "log": log }))@@ -570,8 +570,8 @@ pub async fn handle(app: &AppHandle, msg: &Value) -> Option<Value> {json!({"protocolVersion": version,"capabilities": { "tools": { "listChanged": false } },- "serverInfo": { "name": "OmniGet", "version": env!("CARGO_PKG_VERSION") },- "instructions": "OmniGet desktop tools: downloads, PDF, speech, images, files, X/Twitter, Instagram, system. Paths are local to this machine."+ "serverInfo": { "name": "LibreGet", "version": env!("CARGO_PKG_VERSION") },+ "instructions": "LibreGet desktop tools: downloads, PDF, speech, images, files, X/Twitter, Instagram, system. Paths are local to this machine."}),)}@@ -628,26 +628,26 @@ pub async fn handle_body(app: &AppHandle, body: &Value) -> Option<Value> {pub fn client_snippets(url: &str, token: &str) -> Vec<(String, String)> {let auth = format!("Authorization: Bearer {}", token);vec![- ("Claude Code".into(), format!("claude mcp add --transport http omniget {} --header \"{}\"", url, auth)),+ ("Claude Code".into(), format!("claude mcp add --transport http libreget {} --header \"{}\"", url, auth)),("Cursor".into(),- serde_json::to_string_pretty(&json!({ "mcpServers": { "omniget": { "url": url, "headers": { "Authorization": format!("Bearer {}", token) } } } })).unwrap_or_default(),+ serde_json::to_string_pretty(&json!({ "mcpServers": { "libreget": { "url": url, "headers": { "Authorization": format!("Bearer {}", token) } } } })).unwrap_or_default(),),("VS Code".into(),- serde_json::to_string_pretty(&json!({ "servers": { "omniget": { "type": "http", "url": url, "headers": { "Authorization": format!("Bearer {}", token) } } } })).unwrap_or_default(),+ serde_json::to_string_pretty(&json!({ "servers": { "libreget": { "type": "http", "url": url, "headers": { "Authorization": format!("Bearer {}", token) } } } })).unwrap_or_default(),),("Goose".into(),- format!("extensions:\n omniget:\n enabled: true\n type: streamable_http\n name: omniget\n uri: {}\n headers:\n Authorization: Bearer {}\n timeout: 300", url, token),+ format!("extensions:\n omniget:\n enabled: true\n type: streamable_http\n name: libreget\n uri: {}\n headers:\n Authorization: Bearer {}\n timeout: 300", url, token),),("Claude Desktop".into(),- serde_json::to_string_pretty(&json!({ "mcpServers": { "omniget": { "command": "npx", "args": ["-y", "mcp-remote", url, "--header", auth] } } })).unwrap_or_default(),+ serde_json::to_string_pretty(&json!({ "mcpServers": { "libreget": { "command": "npx", "args": ["-y", "mcp-remote", url, "--header", auth] } } })).unwrap_or_default(),),("Codex".into(),- format!("[mcp_servers.omniget]\nurl = \"{}\"\nhttp_headers = {{ Authorization = \"Bearer {}\" }}", url, token),+ format!("[mcp_servers.libreget]\nurl = \"{}\"\nhttp_headers = {{ Authorization = \"Bearer {}\" }}", url, token),),]}diff --git a/src-tauri/src/models/mod.rs b/src-tauri/src/models/mod.rsindex 452dcd4b..7b12c655 100644--- a/src-tauri/src/models/mod.rs+++ b/src-tauri/src/models/mod.rs@@ -1 +1 @@-pub use omniget_core::models::{download, media, settings};+pub use libreget_core::models::{download, media, settings};diff --git a/src-tauri/src/platforms/bilibili/danmaku/burn.rs b/src-tauri/src/platforms/bilibili/danmaku/burn.rsindex 01dc74ac..1bd59dab 100644--- a/src-tauri/src/platforms/bilibili/danmaku/burn.rs+++ b/src-tauri/src/platforms/bilibili/danmaku/burn.rs@@ -14,7 +14,7 @@use std::path::{Path, PathBuf};use anyhow::{anyhow, Result};-use omniget_core::core::tools::{report, subtitle, video_compress, ProgressFn};+use libreget_core::core::tools::{report, subtitle, video_compress, ProgressFn};use serde::{Deserialize, Serialize};/// Id da tool no evento `tool-progress`.@@ -80,7 +80,7 @@ pub async fn run(opts: &BurnOptions, progress: &ProgressFn) -> Result<BurnResultif !sub.is_file() {return Err(anyhow!("legenda não encontrada: {}", opts.subtitle));}- let ffmpeg = omniget_core::core::dependencies::ensure_ffmpeg().await?;+ let ffmpeg = libreget_core::core::dependencies::ensure_ffmpeg().await?;report(progress,@@ -90,7 +90,7 @@ pub async fn run(opts: &BurnOptions, progress: &ProgressFn) -> Result<BurnResultSome(3),Some("lendo o vídeo".into()),);- let probe = omniget_core::core::ffmpeg::probe(&video).await?;+ let probe = libreget_core::core::ffmpeg::probe(&video).await?;let has_audio = probe.streams.iter().any(|s| s.codec_type == "audio");let start = opts.start.max(0.0);let window = if opts.duration > 0.0 {@@ -118,7 +118,7 @@ pub async fn run(opts: &BurnOptions, progress: &ProgressFn) -> Result<BurnResultstart + window));}- let work_dir = omniget_core::core::tools::temp_dir();+ let work_dir = libreget_core::core::tools::temp_dir();std::fs::create_dir_all(&work_dir)?;let work = work_dir.join(format!("danmaku-{}.ass", uuid::Uuid::new_v4()));std::fs::write(&work, &body)?;@@ -353,7 +353,7 @@ async fn run_ffmpeg(pass: Option<(u8, &Path)>,tail: &[String],) -> Result<()> {- let mut cmd = omniget_core::core::process::command(ffmpeg);+ let mut cmd = libreget_core::core::process::command(ffmpeg);cmd.args(["-y", "-hide_banner", "-loglevel", "error"]).args(cut).arg("-i")@@ -607,13 +607,13 @@ mod tests {#[tokio::test]#[ignore]async fn live_danmaku_burn_keeps_the_timing() {- let ffmpeg = omniget_core::core::dependencies::ensure_ffmpeg()+ let ffmpeg = libreget_core::core::dependencies::ensure_ffmpeg().await.unwrap();let dir = std::env::temp_dir().join("omniget-danmaku-burn-live");std::fs::create_dir_all(&dir).unwrap();let src = dir.join("fonte.mp4");- let gen = omniget_core::core::process::command(&ffmpeg)+ let gen = libreget_core::core::process::command(&ffmpeg).args(["-y","-hide_banner",@@ -663,12 +663,12 @@ mod tests {output_dir: dir.to_string_lossy().to_string(),suffix: String::new(),};- let res = run(&opts, &omniget_core::core::tools::noop_progress())+ let res = run(&opts, &libreget_core::core::tools::noop_progress()).await.unwrap();assert_eq!(res.dialogues, 1);assert!(res.bytes > 1000, "saiu pequeno demais: {}", res.bytes);- let probe = omniget_core::core::ffmpeg::probe(Path::new(&res.output))+ let probe = libreget_core::core::ffmpeg::probe(Path::new(&res.output)).await.unwrap();assert!(@@ -685,7 +685,7 @@ mod tests {let dir = dir.clone();async move {let png = dir.join(format!("f{:.0}.png", at * 10.0));- let o = omniget_core::core::process::command(&ffmpeg)+ let o = libreget_core::core::process::command(&ffmpeg).args(["-y", "-hide_banner", "-loglevel", "error", "-ss"]).arg(format!("{:.2}", at)).args(["-i", &out, "-frames:v", "1"])@@ -713,13 +713,13 @@ mod tests {#[tokio::test]#[ignore]async fn live_danmaku_burn_hits_the_size_target() {- let ffmpeg = omniget_core::core::dependencies::ensure_ffmpeg()+ let ffmpeg = libreget_core::core::dependencies::ensure_ffmpeg().await.unwrap();let dir = std::env::temp_dir().join("omniget-danmaku-target-live");std::fs::create_dir_all(&dir).unwrap();let src = dir.join("fonte.mp4");- let gen = omniget_core::core::process::command(&ffmpeg)+ let gen = libreget_core::core::process::command(&ffmpeg).args(["-y","-hide_banner",@@ -764,7 +764,7 @@ mod tests {output_dir: dir.to_string_lossy().to_string(),suffix: "-alvo".into(),};- let res = run(&opts, &omniget_core::core::tools::noop_progress())+ let res = run(&opts, &libreget_core::core::tools::noop_progress()).await.unwrap();assert!(res.video_kbps > 0);diff --git a/src-tauri/src/platforms/bilibili/danmaku/export.rs b/src-tauri/src/platforms/bilibili/danmaku/export.rsindex 3d038ef5..02e4a226 100644--- a/src-tauri/src/platforms/bilibili/danmaku/export.rs+++ b/src-tauri/src/platforms/bilibili/danmaku/export.rs@@ -8,7 +8,7 @@use std::path::PathBuf;use anyhow::{anyhow, Result};-use omniget_core::core::tools::{report, ProgressFn};+use libreget_core::core::tools::{report, ProgressFn};use serde::{Deserialize, Serialize};use super::super::api::{ApiClient, BilibiliError};@@ -440,7 +440,7 @@ mod tests {style: AssRenderOptions::default(),output_dir: dir.to_string_lossy().to_string(),};- let res = run(&opts, &omniget_core::core::tools::noop_progress())+ let res = run(&opts, &libreget_core::core::tools::noop_progress()).await.unwrap();eprintln!(@@ -471,7 +471,7 @@ mod tests {},..opts};- let res2 = run(&filtrado, &omniget_core::core::tools::noop_progress())+ let res2 = run(&filtrado, &libreget_core::core::tools::noop_progress()).await.unwrap();assert_eq!(res2.files.len(), 1);diff --git a/src-tauri/src/platforms/bilibili/engine/fetch.rs b/src-tauri/src/platforms/bilibili/engine/fetch.rsindex 0f4beef6..bdc0e8f1 100644--- a/src-tauri/src/platforms/bilibili/engine/fetch.rs+++ b/src-tauri/src/platforms/bilibili/engine/fetch.rs@@ -1,8 +1,8 @@use std::path::Path;use std::time::Duration;-use omniget_core::core::http_fetcher::{HttpFetcher, HttpFetcherConfig, HttpFetcherResult};-use omniget_core::models::progress::ProgressUpdate;+use libreget_core::core::http_fetcher::{HttpFetcher, HttpFetcherConfig, HttpFetcherResult};+use libreget_core::models::progress::ProgressUpdate;use reqwest::header::{HeaderMap, HeaderName, HeaderValue, COOKIE, REFERER, USER_AGENT};use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;@@ -19,7 +19,7 @@ pub struct FetchOptions<'a> {}fn build_client() -> Result<reqwest::Client> {- omniget_core::core::http_client::apply_global_proxy(+ libreget_core::core::http_client::apply_global_proxy(reqwest::Client::builder().timeout(Duration::from_secs(60 * 30)).connect_timeout(Duration::from_secs(15)),diff --git a/src-tauri/src/platforms/bilibili/engine/mod.rs b/src-tauri/src/platforms/bilibili/engine/mod.rsindex 93633437..71c94734 100644--- a/src-tauri/src/platforms/bilibili/engine/mod.rs+++ b/src-tauri/src/platforms/bilibili/engine/mod.rs@@ -1,6 +1,6 @@use std::path::PathBuf;-use omniget_core::models::progress::ProgressUpdate;+use libreget_core::models::progress::ProgressUpdate;use tokio::sync::mpsc;use tokio_util::sync::CancellationToken;diff --git a/src-tauri/src/platforms/bilibili/engine/mux.rs b/src-tauri/src/platforms/bilibili/engine/mux.rsindex bec725ac..480a6bcc 100644--- a/src-tauri/src/platforms/bilibili/engine/mux.rs+++ b/src-tauri/src/platforms/bilibili/engine/mux.rs@@ -1,6 +1,6 @@use std::path::{Path, PathBuf};-use omniget_core::core::process;+use libreget_core::core::process;use super::super::api::{BilibiliError, Result};diff --git a/src-tauri/src/platforms/bilibili/legacy.rs b/src-tauri/src/platforms/bilibili/legacy.rsindex de4c2403..9b06f2e6 100644--- a/src-tauri/src/platforms/bilibili/legacy.rs+++ b/src-tauri/src/platforms/bilibili/legacy.rs@@ -1,4 +1,4 @@-use omniget_core::models::progress::ProgressUpdate;+use libreget_core::models::progress::ProgressUpdate;use std::collections::HashSet;use anyhow::anyhow;diff --git a/src-tauri/src/platforms/bilibili/mod.rs b/src-tauri/src/platforms/bilibili/mod.rsindex 24d4822f..fe01965f 100644--- a/src-tauri/src/platforms/bilibili/mod.rs+++ b/src-tauri/src/platforms/bilibili/mod.rs@@ -1,6 +1,6 @@use std::path::PathBuf;-use omniget_core::models::progress::ProgressUpdate;+use libreget_core::models::progress::ProgressUpdate;use anyhow::anyhow;use async_trait::async_trait;@@ -47,7 +47,7 @@ pub fn active_account_slug() -> Option<String> {let registry = crate::cookies::load_registry();let bucket = registry.buckets.get("bilibili.com")?;- if let Some(selected) = omniget_core::core::log_hook::current_cookie_slug() {+ if let Some(selected) = libreget_core::core::log_hook::current_cookie_slug() {if bucket.accounts.iter()diff --git a/src-tauri/src/platforms/bilibili/url_kind.rs b/src-tauri/src/platforms/bilibili/url_kind.rsindex ac3f8aaf..3f89b0bd 100644--- a/src-tauri/src/platforms/bilibili/url_kind.rs+++ b/src-tauri/src/platforms/bilibili/url_kind.rs@@ -102,10 +102,10 @@ pub fn detect_with_query(url: &str, query: Option<&str>) -> Result<UrlKind> {}fn detect_internal(url: &str, query_override: Option<&str>) -> Result<UrlKind> {- if url == "omniget://bilibili/watch-later" {+ if url == "libreget://bilibili/watch-later" {return Ok(UrlKind::WatchLater);}- if url == "omniget://bilibili/history" {+ if url == "libreget://bilibili/history" {return Ok(UrlKind::History);}@@ -470,11 +470,11 @@ mod tests {#[test]fn detects_internal_schemas() {assert_eq!(- detect("omniget://bilibili/watch-later").unwrap(),+ detect("libreget://bilibili/watch-later").unwrap(),UrlKind::WatchLater);assert_eq!(- detect("omniget://bilibili/history").unwrap(),+ detect("libreget://bilibili/history").unwrap(),UrlKind::History);}diff --git a/src-tauri/src/platforms/bluesky/mod.rs b/src-tauri/src/platforms/bluesky/mod.rsindex dd4d4cb1..7441ab61 100644--- a/src-tauri/src/platforms/bluesky/mod.rs+++ b/src-tauri/src/platforms/bluesky/mod.rs@@ -1,6 +1,6 @@use anyhow::anyhow;use async_trait::async_trait;-use omniget_core::models::progress::ProgressUpdate;+use libreget_core::models::progress::ProgressUpdate;use tokio::sync::mpsc;use crate::core::direct_downloader;diff --git a/src-tauri/src/platforms/direct_file/mod.rs b/src-tauri/src/platforms/direct_file/mod.rsindex b2375f8d..f4a9cadc 100644--- a/src-tauri/src/platforms/direct_file/mod.rs+++ b/src-tauri/src/platforms/direct_file/mod.rs@@ -2,7 +2,7 @@ use anyhow::anyhow;use async_trait::async_trait;use tokio::sync::mpsc;-use omniget_core::models::progress::ProgressUpdate;+use libreget_core::models::progress::ProgressUpdate;use crate::core::direct_downloader;use crate::core::http_client;@@ -63,7 +63,7 @@ impl PlatformDownloader for DirectFileDownloader {}fn can_handle(&self, url: &str) -> bool {- omniget_core::platforms::is_direct_file_url(url)+ libreget_core::platforms::is_direct_file_url(url)}async fn get_media_info(&self, url: &str) -> anyhow::Result<MediaInfo> {diff --git a/src-tauri/src/platforms/douyin/mod.rs b/src-tauri/src/platforms/douyin/mod.rsindex 1ed396e5..a570d280 100644--- a/src-tauri/src/platforms/douyin/mod.rs+++ b/src-tauri/src/platforms/douyin/mod.rs@@ -1,4 +1,4 @@-use omniget_core::models::progress::ProgressUpdate;+use libreget_core::models::progress::ProgressUpdate;use std::collections::HashSet;use std::time::Duration;diff --git a/src-tauri/src/platforms/gallerydl/mod.rs b/src-tauri/src/platforms/gallerydl/mod.rsindex f2ebe68c..ac98754a 100644--- a/src-tauri/src/platforms/gallerydl/mod.rs+++ b/src-tauri/src/platforms/gallerydl/mod.rs@@ -7,11 +7,11 @@ use async_trait::async_trait;use tokio::io::{AsyncBufReadExt, BufReader};use tokio::sync::mpsc;-use omniget_core::models::media::{+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo, MediaType, VideoQuality,};-use omniget_core::models::progress::ProgressUpdate;-use omniget_core::platforms::traits::PlatformDownloader;+use libreget_core::models::progress::ProgressUpdate;+use libreget_core::platforms::traits::PlatformDownloader;const GALLERY_HOSTS: &[&str] = &["deviantart.com",@@ -197,7 +197,7 @@ impl PlatformDownloader for GalleryDlDownloader {.map(|q| q.url.clone()).ok_or_else(|| anyhow!("No gallery URL available"))?;- let bin = omniget_core::core::dependencies::ensure_gallerydl()+ let bin = libreget_core::core::dependencies::ensure_gallerydl().await.ok_or_else(|| {anyhow!(@@ -208,14 +208,14 @@ impl PlatformDownloader for GalleryDlDownloader {std::fs::create_dir_all(&opts.output_dir)?;let _ = progress.send(ProgressUpdate::percent(-2.0)).await;- let mut cmd = omniget_core::core::process::command(&bin);+ let mut cmd = libreget_core::core::process::command(&bin);cmd.arg("--no-colors").arg("-D").arg(&opts.output_dir).stdout(Stdio::piped()).stderr(Stdio::piped());- if let Some(data_dir) = omniget_core::core::paths::app_data_dir() {+ if let Some(data_dir) = libreget_core::core::paths::app_data_dir() {let archive_dir = data_dir.join("archive");if std::fs::create_dir_all(&archive_dir).is_ok() {cmd.arg("--download-archive")diff --git a/src-tauri/src/platforms/generic_ytdlp/mod.rs b/src-tauri/src/platforms/generic_ytdlp/mod.rsindex 5c61d379..bdc8e0f3 100644--- a/src-tauri/src/platforms/generic_ytdlp/mod.rs+++ b/src-tauri/src/platforms/generic_ytdlp/mod.rs@@ -1,2 +1,2 @@// Re-export from omniget-core-pub use omniget_core::platforms::generic_ytdlp::{is_direct_media_url, GenericYtdlpDownloader};+pub use libreget_core::platforms::generic_ytdlp::{is_direct_media_url, GenericYtdlpDownloader};diff --git a/src-tauri/src/platforms/instagram/mod.rs b/src-tauri/src/platforms/instagram/mod.rsindex ae2d3eff..ff3c33f8 100644--- a/src-tauri/src/platforms/instagram/mod.rs+++ b/src-tauri/src/platforms/instagram/mod.rs@@ -1,6 +1,6 @@use anyhow::anyhow;use async_trait::async_trait;-use omniget_core::models::progress::ProgressUpdate;+use libreget_core::models::progress::ProgressUpdate;use rand::RngExt;use regex::Regex;use tokio::sync::mpsc;diff --git a/src-tauri/src/platforms/magnet/mod.rs b/src-tauri/src/platforms/magnet/mod.rsindex adb34fc3..cfae69c3 100644--- a/src-tauri/src/platforms/magnet/mod.rs+++ b/src-tauri/src/platforms/magnet/mod.rs@@ -1,4 +1,4 @@-use omniget_core::models::progress::ProgressUpdate;+use libreget_core::models::progress::ProgressUpdate;use std::path::{Path, PathBuf};use std::sync::Arc;diff --git a/src-tauri/src/platforms/mod.rs b/src-tauri/src/platforms/mod.rsindex 7329b5ec..2caaa12a 100644--- a/src-tauri/src/platforms/mod.rs+++ b/src-tauri/src/platforms/mod.rs@@ -1,20 +1,20 @@pub use crate::platforms::magnet::MagnetDownloader;-pub use omniget_core::platforms::traits;-pub use omniget_core::platforms::BlueskyDownloader;-pub use omniget_core::platforms::DirectFileDownloader;-pub use omniget_core::platforms::DouyinDownloader;-pub use omniget_core::platforms::GenericYtdlpDownloader;-pub use omniget_core::platforms::InstagramDownloader;-pub use omniget_core::platforms::P2pDownloader;-pub use omniget_core::platforms::PinterestDownloader;-pub use omniget_core::platforms::Platform;-pub use omniget_core::platforms::RedditDownloader;-pub use omniget_core::platforms::ThreadsDownloader;-pub use omniget_core::platforms::TikTokDownloader;-pub use omniget_core::platforms::TwitchClipsDownloader;-pub use omniget_core::platforms::TwitterDownloader;-pub use omniget_core::platforms::VimeoDownloader;-pub use omniget_core::platforms::YouTubeDownloader;+pub use libreget_core::platforms::traits;+pub use libreget_core::platforms::BlueskyDownloader;+pub use libreget_core::platforms::DirectFileDownloader;+pub use libreget_core::platforms::DouyinDownloader;+pub use libreget_core::platforms::GenericYtdlpDownloader;+pub use libreget_core::platforms::InstagramDownloader;+pub use libreget_core::platforms::P2pDownloader;+pub use libreget_core::platforms::PinterestDownloader;+pub use libreget_core::platforms::Platform;+pub use libreget_core::platforms::RedditDownloader;+pub use libreget_core::platforms::ThreadsDownloader;+pub use libreget_core::platforms::TikTokDownloader;+pub use libreget_core::platforms::TwitchClipsDownloader;+pub use libreget_core::platforms::TwitterDownloader;+pub use libreget_core::platforms::VimeoDownloader;+pub use libreget_core::platforms::YouTubeDownloader;pub mod magnet;pub mod noop;diff --git a/src-tauri/src/platforms/noop.rs b/src-tauri/src/platforms/noop.rsindex 2221e7f0..d2a48d98 100644--- a/src-tauri/src/platforms/noop.rs+++ b/src-tauri/src/platforms/noop.rs@@ -1,7 +1,7 @@use async_trait::async_trait;use crate::platforms::traits::PlatformDownloader;-use omniget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo};+use libreget_core::models::media::{DownloadOptions, DownloadResult, MediaInfo};pub struct NoopDownloader;@@ -37,7 +37,7 @@ impl PlatformDownloader for NoopDownloader {&self,_info: &MediaInfo,_opts: &DownloadOptions,- _progress: tokio::sync::mpsc::Sender<omniget_core::models::progress::ProgressUpdate>,+ _progress: tokio::sync::mpsc::Sender<libreget_core::models::progress::ProgressUpdate>,) -> anyhow::Result<DownloadResult> {Err(anyhow::anyhow!("NoopDownloader cannot drive download; this item is driven by an external plugin"diff --git a/src-tauri/src/platforms/p2p/mod.rs b/src-tauri/src/platforms/p2p/mod.rsindex ceb8866e..09468492 100644--- a/src-tauri/src/platforms/p2p/mod.rs+++ b/src-tauri/src/platforms/p2p/mod.rs@@ -1,6 +1,6 @@pub mod words;-use omniget_core::models::progress::ProgressUpdate;+use libreget_core::models::progress::ProgressUpdate;use std::path::PathBuf;use std::sync::Arc;diff --git a/src-tauri/src/platforms/pinterest/mod.rs b/src-tauri/src/platforms/pinterest/mod.rsindex 23b5fb4e..29f11664 100644--- a/src-tauri/src/platforms/pinterest/mod.rs+++ b/src-tauri/src/platforms/pinterest/mod.rs@@ -1,4 +1,4 @@-use omniget_core::models::progress::ProgressUpdate;+use libreget_core::models::progress::ProgressUpdate;use std::sync::LazyLock;use anyhow::anyhow;diff --git a/src-tauri/src/platforms/reddit/mod.rs b/src-tauri/src/platforms/reddit/mod.rsindex 245cf2b9..c7096b90 100644--- a/src-tauri/src/platforms/reddit/mod.rs+++ b/src-tauri/src/platforms/reddit/mod.rs@@ -1,6 +1,6 @@use anyhow::anyhow;use async_trait::async_trait;-use omniget_core::models::progress::ProgressUpdate;+use libreget_core::models::progress::ProgressUpdate;use tokio::sync::mpsc;use crate::core::direct_downloader;diff --git a/src-tauri/src/platforms/tiktok/mod.rs b/src-tauri/src/platforms/tiktok/mod.rsindex f8a8da4e..a77299c6 100644--- a/src-tauri/src/platforms/tiktok/mod.rs+++ b/src-tauri/src/platforms/tiktok/mod.rs@@ -1,4 +1,4 @@-use omniget_core::models::progress::ProgressUpdate;+use libreget_core::models::progress::ProgressUpdate;use std::sync::Arc;use anyhow::anyhow;diff --git a/src-tauri/src/platforms/twitch/mod.rs b/src-tauri/src/platforms/twitch/mod.rsindex 0d6baa50..4ed79406 100644--- a/src-tauri/src/platforms/twitch/mod.rs+++ b/src-tauri/src/platforms/twitch/mod.rs@@ -1,6 +1,6 @@use anyhow::anyhow;use async_trait::async_trait;-use omniget_core::models::progress::ProgressUpdate;+use libreget_core::models::progress::ProgressUpdate;use tokio::sync::mpsc;use crate::core::direct_downloader;diff --git a/src-tauri/src/platforms/twitter/mod.rs b/src-tauri/src/platforms/twitter/mod.rsindex 0a1d1961..fdf19c9a 100644--- a/src-tauri/src/platforms/twitter/mod.rs+++ b/src-tauri/src/platforms/twitter/mod.rs@@ -1,4 +1,4 @@-use omniget_core::models::progress::ProgressUpdate;+use libreget_core::models::progress::ProgressUpdate;use regex::Regex;use std::sync::Arc;@@ -68,7 +68,7 @@ impl TwitterDownloader {fn managed_cookie_string() -> Option<String> {for domain in ["x.com", "twitter.com"] {- let slug = omniget_core::core::log_hook::current_cookie_slug();+ let slug = libreget_core::core::log_hook::current_cookie_slug();let path = crate::cookies::account_path_for_consumer(domain, slug.as_deref()).or_else(|| crate::cookies::account_path_for_consumer(domain, None));let Some(path) = path else {diff --git a/src-tauri/src/platforms/vimeo/mod.rs b/src-tauri/src/platforms/vimeo/mod.rsindex ab748877..d32fcdc0 100644--- a/src-tauri/src/platforms/vimeo/mod.rs+++ b/src-tauri/src/platforms/vimeo/mod.rs@@ -1,4 +1,4 @@-use omniget_core::models::progress::ProgressUpdate;+use libreget_core::models::progress::ProgressUpdate;use std::collections::HashSet;use anyhow::anyhow;diff --git a/src-tauri/src/platforms/youtube/mod.rs b/src-tauri/src/platforms/youtube/mod.rsindex 14589cb8..d1a6bb5e 100644--- a/src-tauri/src/platforms/youtube/mod.rs+++ b/src-tauri/src/platforms/youtube/mod.rs@@ -1,4 +1,4 @@-use omniget_core::models::progress::ProgressUpdate;+use libreget_core::models::progress::ProgressUpdate;use std::collections::HashSet;use anyhow::anyhow;diff --git a/src-tauri/src/plugin_host.rs b/src-tauri/src/plugin_host.rsindex 9b1f6c37..ae28a24b 100644--- a/src-tauri/src/plugin_host.rs+++ b/src-tauri/src/plugin_host.rs@@ -1,6 +1,6 @@use std::path::PathBuf;-use omniget_plugin_sdk::{PluginHost, ProxyConfig};+use libreget_plugin_sdk::{PluginHost, ProxyConfig};use tauri::{AppHandle, Emitter, Runtime};pub struct PluginHostImpl<R: Runtime> {@@ -126,8 +126,8 @@ impl<R: Runtime + 'static> PluginHost for PluginHostImpl<R> {// portable installs keep every file next to the app, so the cache// lives under the app data dir instead of the OS cache dir- let base = if std::env::var("OMNIGET_PORTABLE").is_ok() {- omniget_core::core::paths::app_data_dir()+ let base = if std::env::var("LIBREGET_PORTABLE").is_ok() {+ libreget_core::core::paths::app_data_dir().ok_or_else(|| anyhow::anyhow!("external_data_cache: app data dir unavailable"))?.join("cache")} else {@@ -137,7 +137,7 @@ impl<R: Runtime + 'static> PluginHost for PluginHostImpl<R> {"external_data_cache: OS cache dir unavailable on this platform")})?- .join("com.openselena.omniget")+ .join("com.openselena.libreget")};let dir = base.join("external-cache").join(plugin_id).join(namespace);std::fs::create_dir_all(&dir).map_err(|e| {@@ -154,22 +154,22 @@ impl<R: Runtime + 'static> PluginHost for PluginHostImpl<R> {crate::cookies::account_path_for_consumer(domain, account)}- fn cookie_status(&self, domain: &str) -> omniget_plugin_sdk::CookieStatus {+ fn cookie_status(&self, domain: &str) -> libreget_plugin_sdk::CookieStatus {let registry = crate::cookies::load_registry();let root = crate::cookies::root_domain_of(domain);let bucket = match registry.buckets.get(&root) {Some(b) => b,- None => return omniget_plugin_sdk::CookieStatus::Missing,+ None => return libreget_plugin_sdk::CookieStatus::Missing,};let primary = match bucket.accounts.iter().find(|a| a.slug == "_default") {Some(a) => a,- None => return omniget_plugin_sdk::CookieStatus::Missing,+ None => return libreget_plugin_sdk::CookieStatus::Missing,};let path = match crate::cookies::account_path_for_consumer(&root, None) {Some(p) => p,- None => return omniget_plugin_sdk::CookieStatus::Missing,+ None => return libreget_plugin_sdk::CookieStatus::Missing,};- omniget_plugin_sdk::CookieStatus::Available {+ libreget_plugin_sdk::CookieStatus::Available {path,last_modified_secs: primary.captured_at_ms / 1000,cookie_count: primary.cookie_count,@@ -177,6 +177,6 @@ impl<R: Runtime + 'static> PluginHost for PluginHostImpl<R> {}fn emit_download_log(&self, download_id: u64, line: &str) {- omniget_core::core::log_hook::emit_log(download_id, line);+ libreget_core::core::log_hook::emit_log(download_id, line);}}diff --git a/src-tauri/src/plugin_loader.rs b/src-tauri/src/plugin_loader.rsindex 92d0d9cc..a901b2f0 100644--- a/src-tauri/src/plugin_loader.rs+++ b/src-tauri/src/plugin_loader.rs@@ -3,13 +3,13 @@ use std::fs;use std::path::{Path, PathBuf};use std::sync::Arc;-use omniget_plugin_sdk::{InstalledPlugin, OmnigetPlugin, PluginHost, PluginManifest, ABI_VERSION};+use libreget_plugin_sdk::{InstalledPlugin, LibregetPlugin, PluginHost, PluginManifest, ABI_VERSION};use serde::Serialize;use tracing;pub struct LoadedPlugin {_lib: Option<libloading::Library>,- pub plugin: Box<dyn OmnigetPlugin>,+ pub plugin: Box<dyn LibregetPlugin>,pub manifest: PluginManifest,}@@ -99,7 +99,7 @@ impl PluginManager {pub fn register_builtin(&mut self,manifest: PluginManifest,- mut plugin: Box<dyn OmnigetPlugin>,+ mut plugin: Box<dyn LibregetPlugin>,host: Arc<dyn PluginHost>,) -> Result<(), PluginLoadError> {let id = manifest.id.clone();@@ -354,18 +354,19 @@ fn load_single_plugin()})?;- let abi_fn: libloading::Symbol<extern "C" fn() -> u32> =- unsafe { lib.get(b"omniget_plugin_abi_version") }.map_err(|_| {- PluginLoadError {- message: format!(- "This plugin was built for an older version of OmniGet (no ABI handshake; this version requires ABI v{}). Update the plugin: reinstall it from the Marketplace to get a compatible build.",- ABI_VERSION- ),- kind: "missing_abi_symbol".to_string(),- plugin_abi: None,- expected_abi: Some(ABI_VERSION),- }- })?;+ 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!(+ "This plugin was built for an older version of LibreGet (no ABI handshake; this version requires ABI v{}). Update the plugin: reinstall it from the Marketplace to get a compatible build.",+ ABI_VERSION+ ),+ kind: "missing_abi_symbol".to_string(),+ plugin_abi: None,+ expected_abi: Some(ABI_VERSION),+ })?;let plugin_abi = abi_fn();if plugin_abi != ABI_VERSION {@@ -392,9 +393,13 @@ fn load_single_plugin(// export_plugin! macro also exports a build-info symbol; require it and// require the plugin's rustc fingerprint to match ours exactly.let build_info_fn: libloading::Symbol<extern "C" fn() -> *const std::os::raw::c_char> =- unsafe { lib.get(b"omniget_plugin_build_info") }.map_err(|_| PluginLoadError {+ unsafe {+ lib.get(b"libreget_plugin_build_info")+ .or_else(|_| lib.get(b"omniget_plugin_build_info"))+ }+ .map_err(|_| PluginLoadError {message: format!(- "This plugin was built for an older version of OmniGet (missing toolchain handshake; this version requires ABI v{}). Update the plugin: reinstall it from the Marketplace to get a compatible build.",+ "This plugin was built for an older version of LibreGet (missing toolchain handshake; this version requires ABI v{}). Update the plugin: reinstall it from the Marketplace to get a compatible build.",ABI_VERSION),kind: "abi_mismatch".to_string(),@@ -414,9 +419,9 @@ fn load_single_plugin(.into_owned()}};- let host_info = omniget_plugin_sdk::build_info_str();- let host_rustc = omniget_plugin_sdk::rustc_component(host_info);- let plugin_rustc = omniget_plugin_sdk::rustc_component(&plugin_build_info);+ let host_info = libreget_plugin_sdk::build_info_str();+ let host_rustc = libreget_plugin_sdk::rustc_component(host_info);+ let plugin_rustc = libreget_plugin_sdk::rustc_component(&plugin_build_info);if plugin_rustc.is_none() || plugin_rustc != host_rustc {return Err(PluginLoadError {message: format!(@@ -435,10 +440,13 @@ fn load_single_plugin(host_info);- let init_fn: libloading::Symbol<extern "C" fn() -> *mut dyn OmnigetPlugin> =- unsafe { lib.get(b"omniget_plugin_init") }.map_err(|_| {- PluginLoadError::simple("missing_init_symbol", "Missing omniget_plugin_init symbol")- })?;+ 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")+ })?;// A plugin's init entrypoint runs arbitrary foreign code; convert panics// into load errors instead of aborting the whole app.@@ -507,7 +515,7 @@ fn load_error_hint(detail: &str) -> Option<&'static str> {return None;}if detail.contains("os error 126") {- Some("A library this plugin depends on is missing, usually the Microsoft Visual C++ Redistributable (x64). Install it from https://aka.ms/vs/17/release/vc_redist.x64.exe and restart OmniGet")+ Some("A library this plugin depends on is missing, usually the Microsoft Visual C++ Redistributable (x64). Install it from https://aka.ms/vs/17/release/vc_redist.x64.exe and restart LibreGet")} else if detail.contains("os error 5") || detail.contains("os error 225") {Some("Windows blocked the file. Check Windows Security > Protection history for the plugin DLL and allow it, then reinstall the plugin from the Marketplace")} else if detail.contains("os error 193") {diff --git a/src-tauri/src/tray.rs b/src-tauri/src/tray.rsindex 04c53e42..144895e4 100644--- a/src-tauri/src/tray.rs+++ b/src-tauri/src/tray.rs@@ -92,7 +92,7 @@ fn format_speed(bps: f64, labels: &TrayLabels) -> String {fn tooltip_for(labels: &TrayLabels, count: u32, speed_bps: Option<f64>) -> String {if count == 0 {- return "OmniGet".into();+ return "LibreGet".into();}let mut tooltip = format!("OmniGet — {}{}", count, labels.active_suffix);if let Some(bps) = speed_bps.filter(|bps| *bps > 0.0) {