#123: Sound Monitoring (#125)

110fac70a6 n'est pas lié à #123 (tu peux l'ignorer ici mais rc/aircox#122 (comment))

04f5c3208a : nettoyage d'anciens tests, je ne suis pas parvenu à rétablir le dernier, je l'ai préfixé avec broken_. Il y aurait aussi à supprimer/corriger aircox/tests/management/_test_sound_monitor.py

5a75f42808 : le correctif qui permet d'ajouter des sons dans une émission à l'aide de la commande `sounds_scan`.

Co-authored-by: Christophe Siraut <d@tobald.eu.org>
Reviewed-on: rc/aircox#125
Co-authored-by: Chris Tactic <chris@tacticasbl.be>
Co-committed-by: Chris Tactic <chris@tacticasbl.be>
This commit is contained in:
2023-11-08 18:38:49 +01:00
committed by Thomas Kairos
parent e690953b82
commit fd4c765dc4
4 changed files with 57 additions and 17 deletions

View File

@ -1,5 +1,4 @@
#! /usr/bin/env python3
# TODO: SoundMonitor class
"""Monitor sound files; For each program, check for:
@ -60,10 +59,8 @@ class Command(BaseCommand):
)
def handle(self, *args, **options):
SoundMonitor()
monitor = SoundMonitor()
if options.get("scan"):
self.scan()
# if options.get('quality_check'):
# self.check_quality(check=(not options.get('scan')))
monitor.scan()
if options.get("monitor"):
self.monitor()
monitor.monitor()