summaryrefslogtreecommitdiff
path: root/searx/engines/dailymotion.py
AgeCommit message (Collapse)Author
2022-05-07[format.python] based on bugfix in 9ed626130Markus Heiser
2022-04-16dailymotion: send valid value for the language parameterAlexandre Flament
2022-04-16[fix] dailymotion engine: filter by language & countryMarkus Heiser
- fix the issue of fetching more the 7000 *languages* - improve the request function and filter by language & country - implement time_range_support & safesearch - add more fields to the response from dailymotion (allow_embed, length) - better clean up of HTML tags in the 'content' field. This is more or less a complete rework based on the '/videos' API from [1]. This patch cleans up the language list in SearXNG that has been polluted by the ISO-639-3 2 and 3 letter codes from dailymotion languages which have never been used. [1] https://developers.dailymotion.com/tools/ Closes: https://github.com/searxng/searxng/issues/1065 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-18[mod] templates: rename field for <iframe> URL to iframe_srcMarkus Heiser
Rename result field data_src to iframe_src Suggested-by: @dalf https://github.com/searxng/searxng/pull/882#issuecomment-1037997402 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-13[mod] result_templates/videos.html: replace embedded HTML by data_srcMarkus Heiser
Embedded HTML breaks SearXNG architecture. To modularize, HTML is generated in the templates (oscar & simple) and result parameter 'embedded' is replaced by 'data_src', an URL for embedded content (<iframe>). Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-12-27[format.python] initial formatting of the python codeMarkus Heiser
This patch was generated by black [1]:: make format.python [1] https://github.com/psf/black Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-02-01[mod] dynamically set language_support variableAlexandre Flament
The language_support variable is set to True by default, and set to False in only 5 engines. Except the documentation and the /config URL, this variable is not used. This commit remove the variable definition in the engines, and set value according to supported_languages length: False when the length is 0, True otherwise. Close #2485
2021-01-14[enh] engines: add about variableAlexandre Flament
move meta information from comment to the about variable so the preferences, the documentation can show these information
2020-09-10Drop Python 2 (1/n): remove unicode string and url_utilsDalf
2019-07-31[fix] dailymotion engine: remove HTML tags from the descriptionDalf
2019-07-13embedded iframe (youtube, dailymotion, vimeo): use httpsDalf
2019-01-07Revert "remove 'all' option from search languages"Noémi Ványi
This reverts commit 4d1770398a6af8902e75c0bd885781584d39e796.
2018-03-27refactor engine's search language handlingMarc Abonce Seguin
Add match_language function in utils to match any user given language code with a list of engine's supported languages. Also add language_aliases dict on each engine to translate standard language codes into the custom codes used by the engine.
2017-12-06remove 'all' option from search languagesmarc
2017-05-15[enh] py3 compatibilityAdam Tauber
2016-12-15tests for _fetch_supported_languages in enginesmarc
and refactor method to make it testable without making requests
2016-12-13[mod] fetch supported languages for several enginesmarc
utils/fetch_languages.py gets languages supported by each engine and generates engines_languages.json with each engine's supported language.
2016-12-13Add language support for more engines.marc
2016-12-09[mod] do not escape html content in enginesAdam Tauber
2015-05-02Merge pull request #308 from dalf/versions_upgradeAdam Tauber
update versions.cfg to use the current up-to-date packages
2015-05-02update versions.cfg to use the current up-to-date packagesAlexandre Flament
2015-05-02[enh] reduce the number of http outgoing connections.Alexandre Flament
engines that still use http : gigablast, bing image for thumbnails, 1x and dbpedia autocompleter
2015-01-05Integrated media in results + Deezer EngineCqoicebordel
New "embedded" item for the results, allow to give an iframe to display the media directly in the results. Note that the attributes src of the iframes are not set, but instead data-src is set, allowing to only load the iframe when clicked. Deezer engine based on public API (no key).
2014-12-07[fix] pep8 : engines (errors E121, E127, E128 and E501 still exist)dalf
2014-09-07[enh] dailymotion engine: add language supportDalf
2014-09-01fix dailymotion engine and add comments to itThomas Pointhuber
2014-02-05Improves PEP8 compatibility.Gabor Nagy
2014-01-30[enh] paging support for dailymotionasciimoo
2014-01-20[fix] pep/flake8 compatibilityasciimoo
2014-01-20fix: robot fw, entry points, some flake8, package searx eggMatej Cotman
2014-01-19[enh] results favico handlingasciimoo
2014-01-05[fix] dailymotion engine : no more html tag in the descriptionDalf
2013-12-30add dailymotion enginedalf