mirror of
https://github.com/fergalmoran/dss.git
synced 2026-01-06 17:04:30 +00:00
Fixed mp3 tagging management command
This commit is contained in:
@@ -7,8 +7,8 @@ class Command(NoArgsCommand):
|
||||
|
||||
def handle_noargs(self, **options):
|
||||
print "Tagging audio files"
|
||||
#mixes = Mix.objects.filter(uid='3af66ac3-ff29-4b24-85a6-ae6ac774ca07')
|
||||
mixes = Mix.objects.all()
|
||||
mixes = Mix.objects.filter(uid='1fb5bd5d-e32a-4e0d-9321-014587d53327')
|
||||
#mixes = Mix.objects.all()
|
||||
for mix in mixes:
|
||||
print "Tagging: %s" % mix.title
|
||||
mix.create_mp3_tags()
|
||||
|
||||
@@ -94,7 +94,7 @@ class Mix(_BaseModel):
|
||||
|
||||
super(Mix, self).save(force_insert, force_update, using, update_fields)
|
||||
|
||||
def create_mp3_tags(self):
|
||||
def create_mp3_tags(self, prefix=""):
|
||||
try:
|
||||
image = get_thumbnail(self.mix_image, '300x300', crop='center')
|
||||
tag_mp3(
|
||||
|
||||
Reference in New Issue
Block a user