feat(downloads): add qBittorrent integration
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 0s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
- Rust client for the WebUI API: password/API-key auth, categories, magnet and .torrent add, sync polling, pause/resume/delete - downloads page with progress, speed, ETA, filters, notifications and per-torrent actions - settings page with OS keyring storage, self-signed TLS, Jellyfin refresh and polling options - cross-platform keyring setup for Windows, macOS and Linux
This commit is contained in:
1 parent
fe30c4f1f9
commit
87315d9679
22 files changed
+4031
-21
No files matched your search
+20
-3
@@ -1,7 +1,10 @@
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
|
||||
use tauri::Manager;
|
||||
use tauri_plugin_log::{fern::colors::ColoredLevelConfig, Target, TargetKind};
|
||||
|
||||
mod qbittorrent;
|
||||
|
||||
fn main() {
|
||||
let builder = tauri::Builder::default();
|
||||
|
||||
@@ -14,18 +17,32 @@ fn main() {
|
||||
);
|
||||
|
||||
builder
|
||||
.setup(|_app| {
|
||||
.setup(|app| {
|
||||
app.manage(qbittorrent::QbState::load(app.handle()));
|
||||
|
||||
// Frameless window outside macOS. macOS uses the native overlay
|
||||
// titlebar with its traffic lights.
|
||||
#[cfg(not(target_os = "macos"))]
|
||||
{
|
||||
use tauri::Manager;
|
||||
if let Some(window) = _app.get_webview_window("main") {
|
||||
if let Some(window) = app.get_webview_window("main") {
|
||||
window.set_decorations(false)?;
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
})
|
||||
.invoke_handler(tauri::generate_handler![
|
||||
qbittorrent::qb_get_settings,
|
||||
qbittorrent::qb_save_settings,
|
||||
qbittorrent::qb_forget_secret,
|
||||
qbittorrent::qb_test_connection,
|
||||
qbittorrent::qb_categories,
|
||||
qbittorrent::qb_add_torrent,
|
||||
qbittorrent::qb_poll,
|
||||
qbittorrent::qb_pause,
|
||||
qbittorrent::qb_resume,
|
||||
qbittorrent::qb_delete,
|
||||
qbittorrent::qb_set_category,
|
||||
])
|
||||
.plugin(tauri_plugin_shell::init())
|
||||
.plugin(tauri_plugin_global_shortcut::Builder::new().build())
|
||||
.plugin(tauri_plugin_window_state::Builder::new().build())
|
||||
|
||||
Reference in new issue
Block a user