浏览代码

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 = []
     results = []
     for path, name, ts in iterate_audios(date, station):
     for path, name, ts in iterate_audios(date, station):
         print(path)
         print(path)
-        for match in dejavu.recognize(recognizer, path, 5):
+        for match in dejavu.recognize(recognizer, path, 5,
+                                      ads_filter=[md5hash]):
             try:
             try:
                 results.append({
                 results.append({
                     'confidence': match['confidence'],
                     'confidence': match['confidence'],