diff --git a/core/utils/waveform.py b/core/utils/waveform.py index 5e2c0e2..636936f 100644 --- a/core/utils/waveform.py +++ b/core/utils/waveform.py @@ -16,7 +16,7 @@ def generate_waveform(input_file, output_file): print "Starting waveform generation" #print "%s -m -l -i %s -o -b 000000 %s" % (settings.DSS_WAVE_PATH, working_file, output_file) #subprocess.call([settings.DSS_WAVE_PATH, "-t", "-m", "-l", "-i", working_file, "-o", output_file]) - ret = subprocess.call(["/usr/local/bin/wav2png", "-w", "800", "-h", "120", "-o", output_file, working_file], stderr=subprocess.PIPE, stdout=subprocess.PIPE) + ret = subprocess.call(["/usr/local/bin/wav2png", "--foreground-color", "00000000", "--background-color", "2e4562ff", "-w", "800", "-h", "120", "-o", output_file, working_file], stderr=subprocess.PIPE, stdout=subprocess.PIPE) if os.path.isfile(output_file): os.remove(working_file) print "Generated waveform" diff --git a/spa/management/commands/deletefailed.py b/spa/management/commands/deletefailed.py index 6c70b29..609509e 100644 --- a/spa/management/commands/deletefailed.py +++ b/spa/management/commands/deletefailed.py @@ -4,7 +4,7 @@ from spa.models import Mix class Command(NoArgsCommand): def handle(self, *args, **options): - candidates = Mix.objects.filter(waveform_generated=True) + candidates = Mix.objects.filter(waveform_generated=False) for mix in candidates: print "Deleting: %s" % mix.title - #candidates.delete() \ No newline at end of file + mix.delete() diff --git a/static/css/com.podnoms.player.css b/static/css/com.podnoms.player.css index 03197bb..9b35be0 100644 --- a/static/css/com.podnoms.player.css +++ b/static/css/com.podnoms.player.css @@ -98,9 +98,14 @@ div.player-body ul.player-controls a { z-index: 9999; } +.waveform{ + background-color: #404040 +} + .waveform img { width: 100%; height: 90px; + opacity: 0.4; } .download-progress-overlay {