diff --git a/spa/management/commands/tagmix.py b/spa/management/commands/tagmix.py index f09e51a..2abb50d 100644 --- a/spa/management/commands/tagmix.py +++ b/spa/management/commands/tagmix.py @@ -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() diff --git a/spa/models/mix.py b/spa/models/mix.py index ec84203..42f443c 100755 --- a/spa/models/mix.py +++ b/spa/models/mix.py @@ -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(