Make the codebase mypy-clean, drop dead media_utils and Pillow, rewrite README
This commit is contained in:
@@ -26,7 +26,6 @@ Filmotéka tree.
|
||||
| [`src/core/jellyfin.py`](modules/core.jellyfin.md) | Jellyfin server API client — thin, hybrid integration. |
|
||||
| [`src/core/legacy_meta.py`](modules/core.legacy_meta.md) | Readers for Curator's *pre-index* metadata layouts. |
|
||||
| [`src/core/list_manager.py`](modules/core.list_manager.md) | Sorting of file lists by name or by date added. |
|
||||
| [`src/core/media_utils.py`](modules/core.media_utils.md) | Helpers around media files: loading small icons for Qt widgets and detecting the vertical video resolution with `ffprobe`, mapping it to a `Rozlišení/<height>p` tag. |
|
||||
| [`src/core/migrate.py`](modules/core.migrate.md) | One-off migration of an existing pool to the Jellyfin naming convention. |
|
||||
| [`src/core/movie.py`](modules/core.movie.md) | The movie object — metadata first, files second. |
|
||||
| [`src/core/naming.py`](modules/core.naming.md) | Pool file naming convention. |
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
# `src/core/media_utils.py`
|
||||
|
||||
Helpers around media files: loading small icons for Qt widgets and detecting the vertical video resolution with `ffprobe`, mapping it to a `Rozlišení/<height>p` tag.
|
||||
|
||||
Source: [`src/core/media_utils.py`](../../src/core/media_utils.py)
|
||||
|
||||
## Functions
|
||||
|
||||
### `load_icon`
|
||||
|
||||
*function · line 14*
|
||||
|
||||
```python
|
||||
load_icon(path) -> ImageTk.PhotoImage
|
||||
```
|
||||
|
||||
Load an image file and scale it to 16×16 px as a Qt-compatible icon.
|
||||
|
||||
### `add_video_resolution_tag`
|
||||
|
||||
*function · line 19*
|
||||
|
||||
```python
|
||||
add_video_resolution_tag(file_obj: File, tagmanager: TagManager)
|
||||
```
|
||||
|
||||
Read the vertical resolution of a video with `ffprobe` and tag the file with `Rozlišení/<height>p`. Needs FFmpeg on the PATH.
|
||||
Reference in New Issue
Block a user