mirror of
https://github.com/fergalmoran/dss.git
synced 2026-02-10 18:13:58 +00:00
Added delete failed management command
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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()
|
||||
mix.delete()
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user