File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments