Skip to content

Commit af0d17e

Browse files
committed
Cleanup public
1 parent f0b2e23 commit af0d17e

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/watch.rs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,8 @@ fn index(
8383
}}
8484
img {{
8585
max-width: 800px;
86-
border: 1px solid transparent;
87-
}}
88-
img:hover {{
89-
border-color: black;
86+
max-height: 80vh;
87+
border: 1px solid black;
9088
}}
9189
audio {{
9290
width: 800px;
@@ -164,12 +162,10 @@ fn remove_old_files(args: &Arguments, timestamp: u64) {
164162
if !path.is_file() {
165163
continue;
166164
}
167-
if let Some(extension) = path.extension() {
168-
if extension == "mp4" {
169-
let filename = path.file_name().unwrap().to_str().unwrap();
170-
if !filename.contains(&format!("_{}", timestamp)) {
171-
std::fs::remove_file(path).unwrap();
172-
}
165+
if let Some(_extension) = path.extension() {
166+
let filename = path.file_name().unwrap().to_str().unwrap();
167+
if !filename.contains(&format!("_{}", timestamp)) {
168+
std::fs::remove_file(path).unwrap();
173169
}
174170
}
175171
}

0 commit comments

Comments
 (0)