Add media download database support

This commit is contained in:
Rafael Moraes
2025-09-14 11:00:16 -03:00
parent e1f027dcb1
commit e2a96b31db
7 changed files with 117 additions and 26 deletions
+6
View File
@@ -129,6 +129,7 @@ Config file values can be overridden using command-line arguments.
| `--exclude-tags` / `exclude_tags` | Comma-separated tags to exclude. | `null` |
| `--cover-size` / `cover_size` | Cover size. | `1200` |
| `--truncate` / `truncate` | Maximum length of the file/folder names. | `null` |
| `--database-path` / `database_path` | Path to the downloaded media database file. | `null` |
| `--codec-song` / `codec_song` | Song codec. | `aac-legacy` |
| `--synced-lyrics-format` / `synced_lyrics_format` | Synced lyrics format. | `lrc` |
| `--codec-music-video` / `codec_music_video` | Comma-separated music video codec priority. | `h264,h265` |
@@ -245,6 +246,11 @@ The following variables can be used in the template folders/files and/or in the
- `png`: Lossless format.
- `raw`: Raw cover without processing (requires `save_cover` to save separately).
### Database path
You can specify any path for storing a database file of downloaded media.
This is useful if you want to avoid waiting for Gamdl to fetch metadata for checking if a media item has already been downloaded.
## Embedding
Gamdl can be used as a library in Python scripts. Here's a basic example of downloading a song by its ID: