Fix gitlab searx config
This commit is contained in:
parent
e901851d9c
commit
e66e01bbce
|
@ -442,16 +442,17 @@ function create_searx_config {
|
|||
echo ' disabled: True' >> $settings_file
|
||||
echo '' >> $settings_file
|
||||
echo ' - name : gitlab' >> $settings_file
|
||||
echo ' engine : xpath' >> $settings_file
|
||||
echo ' engine : json_engine' >> $settings_file
|
||||
echo ' paging : True' >> $settings_file
|
||||
echo ' search_url : https://gitlab.com/search?page={pageno}&search={query}' >> $settings_file
|
||||
echo ' url_xpath : //li[@class="project-row"]//a[@class="project"]/@href' >> $settings_file
|
||||
echo ' title_xpath : //li[@class="project-row"]//span[contains(@class, "project-full-name")]' >> $settings_file
|
||||
echo ' content_xpath : //li[@class="project-row"]//div[@class="description"]/p' >> $settings_file
|
||||
echo ' search_url : https://gitlab.com/api/v4/projects?search={query}&page={pageno}' >> $settings_file
|
||||
echo ' url_query : web_url' >> $settings_file
|
||||
echo ' title_query : name_with_namespace' >> $settings_file
|
||||
echo ' content_query : description' >> $settings_file
|
||||
echo ' page_size : 20' >> $settings_file
|
||||
echo ' categories : code' >> $settings_file
|
||||
echo ' shortcut : gl' >> $settings_file
|
||||
echo ' timeout : 5.0' >> $settings_file
|
||||
echo ' disabled : True' >> $settings_file
|
||||
echo ' timeout : 10.0' >> $settings_file
|
||||
echo ' disabled : False' >> $settings_file
|
||||
echo '' >> $settings_file
|
||||
echo ' - name : github' >> $settings_file
|
||||
echo ' engine : github' >> $settings_file
|
||||
|
|
Loading…
Reference in New Issue