use std::path::Path;
use std::time::SystemTime;
#[derive(Debug, Clone)]
pub struct Playlist<'a> {
pub meta: PlaylistMeta,
pub tracks: Vec<&'a Track<'a>>,
}
#[derive(Debug, Clone)]
pub struct PlaylistMeta {
pub name: String,
pub timestamp: SystemTime,
pub playlist_source: PlaylistSource,
}
#[derive(Debug, Clone)]
pub enum DownloadSource {
MyFreeMp3,
}
#[derive(Debug, Clone)]
pub enum PlaylistSource {
Soundcloud,
Spotify,
}
#[derive(Debug, Clone)]
pub struct Track<'a> {
pub tags: IDv3Tags,
pub meta: &'a TrackMeta<'a>,
}
#[derive(Debug, Clone)]
pub struct IDv3Tags {
pub title: String,
pub artists: Vec<String>,
}
#[derive(Debug, Clone)]
pub struct TrackMeta<'a> {
pub timestamp: SystemTime,
pub dl_info: Option<TrackDownloadInfo<'a>>,
}
#[derive(Debug, Clone)]
pub struct TrackDownloadInfo<'a> {
pub cache_dir: &'a Path,
pub dl_source: DownloadSource,
}