ソースを参照

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'],