50 """Assemble request for the SepiaSearch API"""
56 eng_lang = traits.get_language(params[
'searxng_locale'],
None)
60 +
"/api/v1/search/videos?"
64 'start': (params[
'pageno'] - 1) * 10,
68 'nsfw': safesearch_table[params[
'safesearch']],
73 if eng_lang
is not None:
74 params[
'url'] +=
'&languageOneOf[]=' + eng_lang
75 params[
'url'] +=
'&boostLanguages[]=' + eng_lang
77 if params[
'time_range']
in time_range_table:
78 time = datetime.now().date() + time_range_table[params[
'time_range']]
79 params[
'url'] +=
'&startDate=' + time.isoformat()