Migrate from Poetry and pyenv to uv

This commit is contained in:
2026-10-12 15:48:26 +02:00
parent c399a6aed3
commit c69f5f9166
93 changed files with 13068 additions and 2401 deletions
+27
View File
@@ -0,0 +1,27 @@
# `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.