File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1213,7 +1213,7 @@ def metadata_write(
1213
1213
album_peak_amplitude = media_stream .album_peak_amplitude ,
1214
1214
track_replay_gain = media_stream .track_replay_gain ,
1215
1215
track_peak_amplitude = media_stream .track_peak_amplitude ,
1216
- url_share = track .share_url if track .share_url else "" ,
1216
+ url_share = track .share_url if track .share_url and self . settings . data . metadata_write_url else "" ,
1217
1217
replay_gain_write = self .settings .data .metadata_replay_gain ,
1218
1218
upc = track .album .upc if track .album and track .album .upc else "" ,
1219
1219
)
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ class Settings:
45
45
symlink_to_track : bool = False
46
46
playlist_create : bool = False
47
47
metadata_replay_gain : bool = True
48
+ metadata_write_url : bool = True
48
49
49
50
50
51
@dataclass_json
@@ -99,6 +100,7 @@ class HelpSettings:
99
100
)
100
101
playlist_create : str = "Creates a '_playlist.m3u8' file for downloaded albums, playlists and mixes."
101
102
metadata_replay_gain : str = "Replay gain information will be written to metadata."
103
+ metadata_write_url : str = "URL of the media file will be written to metadata."
102
104
103
105
104
106
@dataclass_json
You can’t perform that action at this time.
0 commit comments