Updated Grid

This commit is contained in:
2026-04-08 09:15:01 -04:00
parent ca95582d92
commit a900e5e96a
45 changed files with 2731 additions and 429 deletions

View File

@@ -32,4 +32,11 @@ impl YtDlpItem {
YtDlpItem::VideoItem { webpage_url, .. } => webpage_url,
}
}
pub fn get_duration(&self) -> Option<f64> {
match self {
YtDlpItem::PlaylistItem { duration, .. } => *duration,
YtDlpItem::VideoItem { duration, .. } => *duration,
}
}
}