Commit bc00b344 authored by fred's avatar fred

reduce verbosity when creating tracks

parent d4dd05e7
......@@ -35,14 +35,15 @@ class Command(BaseCommand):
for nonstopfile in NonstopFile.objects.filter(**kwargs):
filepath = nonstopfile.filepath.replace(REMOTE_BASE_PATH, LOCAL_BASE_PATH)
if self.verbose:
print filepath[len(LOCAL_BASE_PATH):]
if 'SPOTS/' in filepath:
short_filepath = filepath[len(LOCAL_BASE_PATH):]
if short_filepath.startswith('SPOTS'):
if not os.path.exists(filepath):
if self.verbose:
if self.verbose and short_filepath.startswith('Tranches'):
print 'missing file:', filepath[len(LOCAL_BASE_PATH):]
if self.verbose:
print short_filepath
metadata = mutagen.File(filepath, easy=True)
if not metadata or not metadata.get('artist') or not metadata.get('title'):
if self.verbose:
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