Merge video_quality to types + prevent downloader from throwing warnings while im working in it + add todos + tweak the about and settings windows
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user