- No more grabbing no directory entries in categories

+ Better video sizing
This commit is contained in:
shockrah committed 2021-10-17 21:26:04 -07:00
1 parent 501916cb57
commit 7f9ff9bb65
3 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -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);