File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,10 @@ def track_distance(
208
208
if item .mb_trackid :
209
209
dist .add_expr ("track_id" , item .mb_trackid != track_info .track_id )
210
210
211
+ # Penalize mismatching disc numbers.
212
+ if track_info .medium and item .disc :
213
+ dist .add_expr ("medium" , item .disc != track_info .medium )
214
+
211
215
# Plugins.
212
216
dist .update (plugins .track_distance (item , track_info ))
213
217
Original file line number Diff line number Diff line change @@ -207,6 +207,7 @@ match:
207
207
track_index : 1.0
208
208
track_length : 2.0
209
209
track_id : 5.0
210
+ medium : 1.0
210
211
preferred :
211
212
countries : []
212
213
media : []
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ Bug fixes:
17
17
* Check if running python from the Microsoft Store and provide feedback to install
18
18
from python.org.
19
19
:bug: `5467 `
20
+ * Fix bug where matcher doesn't consider medium number when importing. This makes
21
+ it difficult to import hybrid SACDs and other releases with duplicate tracks.
22
+ :bug: `5148 `
20
23
21
24
For packagers:
22
25
You can’t perform that action at this time.
0 commit comments