Fix Track Index Problem
This commit is contained in:
@@ -311,7 +311,7 @@ class iTunesPlugin(BeetsPlugin):
|
||||
info.copyright = album.copyright if hasattr(album, 'copyright') else None
|
||||
return info
|
||||
|
||||
def make_track_info(self, track, index):
|
||||
def make_track_info(self, track, index=None):
|
||||
track_name = track.track_censored_name if self.use_censored_names and hasattr(track, 'track_censored_name') else track.track_name
|
||||
collection_name = track.collection_censored_name if self.use_censored_names and hasattr(track, 'collection_censored_name') else track.collection_name
|
||||
info = TrackInfo(track_name,
|
||||
@@ -319,7 +319,7 @@ class iTunesPlugin(BeetsPlugin):
|
||||
artist = track.artist_name,
|
||||
artist_id = track.artist_id,
|
||||
length = track.track_time / 1000 if hasattr(track, 'track_time') else None,
|
||||
index = index,
|
||||
index = index if index else track.track_number,
|
||||
medium = track.disc_number,
|
||||
medium_index = track.track_number,
|
||||
medium_total = track.track_count,
|
||||
|
||||
Reference in New Issue
Block a user