Updated Grid
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user