[music] Add albums to tracks and utility to condense tracks
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
from django.core.management.base import BaseCommand
|
||||
from vrobbler.apps.scrobbles.utils import deduplicate_tracks
|
||||
from vrobbler.apps.music.utils import deduplicate_tracks
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
@ -14,5 +14,7 @@ class Command(BaseCommand):
|
||||
commit = False
|
||||
if options["commit"]:
|
||||
commit = True
|
||||
else:
|
||||
print("No changes will be saved, use --commit to save")
|
||||
dups = deduplicate_tracks(commit=commit)
|
||||
print(f"Deduplicated {dups} music tracks")
|
||||
|
||||
Reference in New Issue
Block a user