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.
This commit is contained in:
Robert Honz
2025-08-12 19:36:41 +02:00
parent d6b1cae1ff
commit f16165558c
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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