@property
def size(self) -> float:
+ """If file at .full_path, return its megabytes size, else -1."""
if not self.full_path.is_file():
return -1
return self.full_path.stat().st_size / (1024 * 1024)
def _send_files_index(self, filter_: ParamsStr, show_absent: bool) -> None:
conn = DbConnection()
files = [f for f in VideoFile.get_all(conn)
- if filter_ in str(f.rel_path) and (show_absent or f.present)]
+ if filter_.lower() in str(f.rel_path).lower()
+ and (show_absent or f.present)]
conn.commit_close()
files.sort(key=lambda t: t.rel_path)
self._send_rendered_template(