Files
ohrwurm/src/metadata.rs
Johannes Heuel 0bee437e53
All checks were successful
tests / fmt (push) Successful in 1m12s
tests / clippy (push) Successful in 1m12s
tests / pre-commit (push) Successful in 1m14s
tests / build (push) Successful in 1m30s
tests / test (push) Successful in 1m44s
save media source in metadata typemap
2024-06-17 17:06:59 +02:00

16 lines
364 B
Rust

use songbird::{input::YoutubeDl, typemap::TypeMapKey};
use std::time::Duration;
#[derive(Clone)]
pub(crate) struct Metadata {
pub(crate) title: Option<String>,
pub(crate) duration: Option<Duration>,
pub(crate) url: String,
pub(crate) src: YoutubeDl,
}
pub(crate) struct MetadataMap;
impl TypeMapKey for MetadataMap {
type Value = Metadata;
}