diff options
| author | Robert Honz <exislow+github@gmail.com> | 2025-08-12 19:36:41 +0200 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2025-08-12 19:36:41 +0200 |
| commit | f16165558ce505d80cfa446283ff16db398d2bea (patch) | |
| tree | f92011c9da81da9d73c2c05aa3c0a8fdd5f07bed /tidal_dl_ng/model/cfg.py | |
| parent | d6b1cae1fff67f5dc0f722815a21dddda65494cd (diff) | |
| download | tidal-dl-ng-f16165558ce505d80cfa446283ff16db398d2bea.tar.gz | |
feat: add metadata_write_url setting for conditional URL metadata writing
Introduces a new configuration option, `metadata_write_url`, to control whether the media file URL is included in metadata. Updates logic to respect this setting.
- ✨ **Feature**: Adds `metadata_write_url` to enable/disable URL writing in metadata.
- 🔧 **Logic Update**: Adjusts URL handling to check the new setting before including it.
- 📝 **Documentation**: Updates help descriptions to explain the new option.
This change improves flexibility in metadata customization.
Diffstat (limited to 'tidal_dl_ng/model/cfg.py')
| -rw-r--r-- | tidal_dl_ng/model/cfg.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tidal_dl_ng/model/cfg.py b/tidal_dl_ng/model/cfg.py index 8166050..438e8dd 100644 --- a/tidal_dl_ng/model/cfg.py +++ b/tidal_dl_ng/model/cfg.py @@ -45,6 +45,7 @@ class Settings: symlink_to_track: bool = False playlist_create: bool = False metadata_replay_gain: bool = True + metadata_write_url: bool = True @dataclass_json @@ -99,6 +100,7 @@ class HelpSettings: ) playlist_create: str = "Creates a '_playlist.m3u8' file for downloaded albums, playlists and mixes." metadata_replay_gain: str = "Replay gain information will be written to metadata." + metadata_write_url: str = "URL of the media file will be written to metadata." @dataclass_json |
