Преглед на файлове

fixed ad filter to prevent recognizing all audios fingerprinted in box

Gamaliel Espinoza преди 7 години
родител
ревизия
90576eb210
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  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'],