(covers_dir: Path)
| 29 | |
| 30 | |
| 31 | def load_cover_names(covers_dir: Path): |
| 32 | names = [] |
| 33 | if not covers_dir.exists(): |
| 34 | return names |
| 35 | for p in covers_dir.iterdir(): |
| 36 | if not p.is_file(): |
| 37 | continue |
| 38 | names.append(p.name.upper()) |
| 39 | return names |
| 40 | |
| 41 | |
| 42 | def format_percent(available: int, total: int) -> str: |