- No more grabbing no directory entries in categories
+ Better video sizing
This commit is contained in:
@@ -26,7 +26,9 @@ pub fn get_category_dirs(path: &str) -> std::io::Result<Vec<DirEntry>> {
|
||||
let mut ret: Vec<DirEntry> = Vec::new();
|
||||
for entry in std::fs::read_dir(path)? {
|
||||
if let Ok(entry) = entry {
|
||||
ret.push(entry)
|
||||
if entry.path().is_dir() {
|
||||
ret.push(entry)
|
||||
}
|
||||
}
|
||||
}
|
||||
return Ok(ret);
|
||||
|
||||
Reference in New Issue
Block a user