Przeglądaj źródła

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

frankdelange 6 lat temu
rodzic
commit
b895fbb72b
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3
    3
      searx/engines/recoll.py

+ 3
- 3
searx/engines/recoll.py Wyświetl plik

@@ -23,8 +23,8 @@ mount_prefix = None
23 23
 dl_prefix = None
24 24
 
25 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 30
 # helper functions
@@ -91,7 +91,7 @@ def response(resp):
91 91
 
92 92
             if mtype in ['audio', 'video']:
93 93
                 item['embedded'] = embedded_url.format(
94
-                    type=type,
94
+                    ttype=mtype,
95 95
                     url=quote(url.encode('utf8'), '/:'),
96 96
                     mtype=result['mtype'])
97 97