Procházet zdrojové kódy

fixed ad filter to prevent recognizing all audios fingerprinted in box

Gamaliel Espinoza před 7 roky
rodič
revize
90576eb210
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      ondemand/service.py

+ 2 - 1
ondemand/service.py

@@ -99,7 +99,8 @@ def process_segment(item):
     results = []
     for path, name, ts in iterate_audios(date, station):
         print(path)
-        for match in dejavu.recognize(recognizer, path, 5):
+        for match in dejavu.recognize(recognizer, path, 5,
+                                      ads_filter=[md5hash]):
             try:
                 results.append({
                     'confidence': match['confidence'],