Browse Source

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

frankdelange 6 years ago
parent
commit
b895fbb72b
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      searx/engines/recoll.py

+ 3
- 3
searx/engines/recoll.py View File

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