Merge video_quality to types + prevent downloader from throwing warnings while im working in it + add todos + tweak the about and settings windows
/ Build Release Binary (ubuntu-latest) (push) Successful in 1m42s
/ Build Release Binary (windows-latest) (push) Successful in 5m14s

This commit is contained in:
2026-09-17 03:55:27 -04:00
parent 1e13df0d6f
commit 0009db0ea9
6 changed files with 58 additions and 41 deletions
+12
View File
@@ -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<Video>,
playlists_queue: Vec<Playlist>,
added_queue: Vec<String>,
yt_downloader: Option<yt_dlp::Downloader>,
tokio_handle: Handle,
@@ -22,12 +27,19 @@ pub(crate) struct Downloader {
rejected_ffmpeg_install: bool,
}
// TODO: Create a queue manager
// TODO: Create task to download videos
// TODO: Create task to process playlists
// TODO: Create task to process added urls
// TODO: Create function to recreate the yt_dlp::Downloader
impl Downloader {
pub fn new() -> Self {
let yt_downloader = None;
Self {
video_queue: Vec::new(),
playlists_queue: Vec::new(),
added_queue: Vec::new(),
yt_downloader,
tokio_handle: Handle::current(),
yt_dlp_installed: false,