Commit 11ac959f authored by fred's avatar fred

do not display anything unless verbosity is asked

parent 02207c48
......@@ -20,7 +20,8 @@ class Command(BaseCommand):
metadata = mutagen.File(filepath, easy=True)
if not metadata or not metadata.get('artist') or not metadata.get('title'):
print 'skipping', filepath
if self.verbose:
print 'skipping', filepath
artist, created = Artist.objects.get_or_create(name=metadata.get('artist')[0])
track, created = Track.objects.get_or_create(title=metadata.get('title')[0],
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment