From 0009db0ea92bb8f93706065d4cbff020f2b6ee22 Mon Sep 17 00:00:00 2001 From: Lyra Date: Thu, 17 Sep 2026 03:55:27 -0400 Subject: [PATCH] Merge video_quality to types + prevent downloader from throwing warnings while im working in it + add todos + tweak the about and settings windows --- src/app.rs | 4 ++-- src/downloader.rs | 12 ++++++++++++ src/main.rs | 1 - src/top_bar_layer.rs | 10 +++++++++- src/types.rs | 36 +++++++++++++++++++++++++++++++++++- src/video_quality.rs | 36 ------------------------------------ 6 files changed, 58 insertions(+), 41 deletions(-) delete mode 100644 src/video_quality.rs diff --git a/src/app.rs b/src/app.rs index 6f4838a..6122f34 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1,6 +1,5 @@ use crate::args::ArgsConfig; -use crate::types::{Playlist, Video}; -use crate::video_quality::VideoDownloadQuality; +use crate::types::{Playlist, Video, VideoDownloadQuality}; use eframe::egui::{Context, Ui}; use eframe::{CreationContext, Frame, Storage}; use serde::{Deserialize, Serialize}; @@ -18,6 +17,7 @@ pub struct AppSettings { pub(crate) use_firefox_cookies: bool, pub(crate) use_chrome_cookies: bool, pub(crate) save_thumbnails: bool, + pub(crate) reencode_videos: bool, pub(crate) video_download_quality: VideoDownloadQuality, } diff --git a/src/downloader.rs b/src/downloader.rs index f58630e..3ee4c52 100644 --- a/src/downloader.rs +++ b/src/downloader.rs @@ -1,3 +1,7 @@ +// TODO: Remove once downloader is done +#![allow(dead_code)] +#![allow(unused)] + use crate::app::Application; use crate::layer::Layer; use crate::types::{Playlist, Video}; @@ -11,6 +15,7 @@ use yt_dlp::client::LibraryInstaller; pub(crate) struct Downloader { video_queue: Vec