Commit f6d554c8 authored by fred's avatar fred

replace tabs

parent 843e845d
......@@ -18,13 +18,13 @@ class Command(BaseCommand):
print filepath[len(LOCAL_BASE_PATH):]
if 'SPOTS/' in filepath:
continue
metadata = mutagen.File(filepath, easy=True)
metadata = mutagen.File(filepath, easy=True)
if not metadata or not metadata.get('artist') or not metadata.get('title'):
if self.verbose:
print 'skipping', filepath
continue
artist, created = Artist.objects.get_or_create(name=metadata.get('artist')[0])
track, created = Track.objects.get_or_create(title=metadata.get('title')[0],
artist, created = Artist.objects.get_or_create(name=metadata.get('artist')[0])
track, created = Track.objects.get_or_create(title=metadata.get('title')[0],
artist=artist)
if ' FR' in filepath:
track.language = 'fr'
......
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