Fixed mp3 tagging management command

This commit is contained in:
Fergal Moran
2014-02-25 21:15:48 +00:00
parent 717acb0a8d
commit 15dce51093
2 changed files with 3 additions and 3 deletions

View File

@@ -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()

View File

@@ -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(