This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<spanid="module-searx.engines.dailymotion"></span><h2><aclass="toc-backref"href="#id1"role="doc-backlink">Dailymotion (Videos)</a><aclass="headerlink"href="#dailymotion-videos"title="Link to this heading">¶</a></h2>
<spanclass="sig-prename descclassname"><spanclass="pre">searx.engines.dailymotion.</span></span><spanclass="sig-name descname"><spanclass="pre">safesearch_params</span></span><emclass="property"><spanclass="w"></span><spanclass="p"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="pre">{0:</span><spanclass="pre">{},</span><spanclass="pre">1:</span><spanclass="pre">{'is_created_for_kids':</span><spanclass="pre">'true'},</span><spanclass="pre">2:</span><spanclass="pre">{'is_created_for_kids':</span><spanclass="pre">'true'}}</span></em><aclass="headerlink"href="#searx.engines.dailymotion.safesearch_params"title="Link to this definition">¶</a></dt>
<dd><p>True if this video is “Created for Kids” / intends to target an audience
under the age of 16 (<codeclass="docutils literal notranslate"><spanclass="pre">is_created_for_kids</span></code> in <aclass="reference external"href="https://developers.dailymotion.com/api/#video-filters">Video filters API</a> )</p>
<spanclass="sig-prename descclassname"><spanclass="pre">searx.engines.dailymotion.</span></span><spanclass="sig-name descname"><spanclass="pre">family_filter_map</span></span><emclass="property"><spanclass="w"></span><spanclass="p"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="pre">{0:</span><spanclass="pre">'false',</span><spanclass="pre">1:</span><spanclass="pre">'true',</span><spanclass="pre">2:</span><spanclass="pre">'true'}</span></em><aclass="headerlink"href="#searx.engines.dailymotion.family_filter_map"title="Link to this definition">¶</a></dt>
<dd><p>By default, the family filter is turned on. Setting this parameter to
<codeclass="docutils literal notranslate"><spanclass="pre">false</span></code> will stop filtering-out explicit content from searches and global
contexts (<codeclass="docutils literal notranslate"><spanclass="pre">family_filter</span></code> in <aclass="reference external"href="https://developers.dailymotion.com/api/#global-parameters">Global API Parameters</a> ).</p>
<spanclass="sig-prename descclassname"><spanclass="pre">searx.engines.dailymotion.</span></span><spanclass="sig-name descname"><spanclass="pre">result_fields</span></span><emclass="property"><spanclass="w"></span><spanclass="p"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="pre">['allow_embed',</span><spanclass="pre">'description',</span><spanclass="pre">'title',</span><spanclass="pre">'created_time',</span><spanclass="pre">'duration',</span><spanclass="pre">'url',</span><spanclass="pre">'thumbnail_360_url',</span><spanclass="pre">'id']</span></em><aclass="headerlink"href="#searx.engines.dailymotion.result_fields"title="Link to this definition">¶</a></dt>
<dd><p><aclass="reference external"href="https://developers.dailymotion.com/api/#fields-selection">Fields selection</a>, by default, a few fields are returned. To request more
specific fields, the <codeclass="docutils literal notranslate"><spanclass="pre">fields</span></code> parameter is used with the list of fields
SearXNG needs in the response to build a video result list.</p>
<spanclass="sig-prename descclassname"><spanclass="pre">searx.engines.dailymotion.</span></span><spanclass="sig-name descname"><spanclass="pre">search_url</span></span><emclass="property"><spanclass="w"></span><spanclass="p"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="pre">'https://api.dailymotion.com/videos?'</span></em><aclass="headerlink"href="#searx.engines.dailymotion.search_url"title="Link to this definition">¶</a></dt>
<spanclass="sig-prename descclassname"><spanclass="pre">searx.engines.dailymotion.</span></span><spanclass="sig-name descname"><spanclass="pre">iframe_src</span></span><emclass="property"><spanclass="w"></span><spanclass="p"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="pre">'https://www.dailymotion.com/embed/video/{video_id}'</span></em><aclass="headerlink"href="#searx.engines.dailymotion.iframe_src"title="Link to this definition">¶</a></dt>
<dd><p>URL template to embed video in SearXNG’s result list.</p>
<spanclass="sig-prename descclassname"><spanclass="pre">searx.engines.dailymotion.</span></span><spanclass="sig-name descname"><spanclass="pre">fetch_traits</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">engine_traits</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="../enginelib.html#searx.enginelib.traits.EngineTraits"title="searx.enginelib.traits.EngineTraits"><spanclass="pre">EngineTraits</span></a></span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../../../_modules/searx/engines/dailymotion.html#fetch_traits"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#searx.engines.dailymotion.fetch_traits"title="Link to this definition">¶</a></dt>
<dd><p>Fetch locales & languages from dailymotion.</p>
<p>Locales fetched from <aclass="reference external"href="https://api.dailymotion.com/locales">api/locales</a>.
There are duplications in the locale codes returned from Dailymotion which
<p>The language list <aclass="reference external"href="https://api.dailymotion.com/languages">api/languages</a>
contains over 7000 <em>languages</em> codes (see <aclass="reference external"href="https://github.com/searxng/searxng/pull/1071">PR1071</a>). We use only those