fixing some things....
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
Chris Cochrun 2025-09-24 10:39:28 -05:00
parent 77daa03db6
commit a56ff6a022
4 changed files with 15 additions and 26 deletions

View file

@ -37,9 +37,10 @@ impl From<&Video> for Value {
impl From<PathBuf> for Video {
fn from(value: PathBuf) -> Self {
let title: String = value.file_name().map_or_else(|| "Video".into(), |filename| {
filename.to_str().unwrap_or("Video").into()
});
let title: String = value.file_name().map_or_else(
|| "Video".into(),
|filename| filename.to_str().unwrap_or("Video").into(),
);
Self {
title,
path: value,