瀏覽代碼

- recoll.py: type -> ttype (tag type)

frankdelange 7 年之前
父節點
當前提交
b895fbb72b
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      searx/engines/recoll.py

+ 3
- 3
searx/engines/recoll.py 查看文件

23
 dl_prefix = None
23
 dl_prefix = None
24
 
24
 
25
 # embedded
25
 # embedded
26
-embedded_url = '<{type} controls height="166px" ' +\
27
-    'src="{url}" type="{mtype}"></{type}>'
26
+embedded_url = '<{ttype} controls height="166px" ' +\
27
+    'src="{url}" type="{mtype}"></{ttype}>'
28
 
28
 
29
 
29
 
30
 # helper functions
30
 # helper functions
91
 
91
 
92
             if mtype in ['audio', 'video']:
92
             if mtype in ['audio', 'video']:
93
                 item['embedded'] = embedded_url.format(
93
                 item['embedded'] = embedded_url.format(
94
-                    type=type,
94
+                    ttype=mtype,
95
                     url=quote(url.encode('utf8'), '/:'),
95
                     url=quote(url.encode('utf8'), '/:'),
96
                     mtype=result['mtype'])
96
                     mtype=result['mtype'])
97
 
97