Browse Source

[feat] implementation of the movie database

Bnyro 1 year ago
parent
commit
140125e641
1 changed files with 12 additions and 0 deletions
  1. 12 0
      searx/settings.yml

+ 12 - 0
searx/settings.yml

@@ -1449,6 +1449,18 @@ engines:
     shortcut: ts
     disabled: true
 
+  - name: tmdb
+    engine: xpath
+    paging: true
+    search_url: https://www.themoviedb.org/search?page={pageno}&query={query}
+    results_xpath: //div[contains(@class,"movie") or contains(@class,"tv")]//div[contains(@class,"card")]
+    url_xpath: .//div[contains(@class,"poster")]/a/@href
+    thumbnail_xpath: .//img/@src
+    title_xpath: .//div[contains(@class,"title")]//h2
+    content_xpath: .//div[contains(@class,"overview")]
+    shortcut: tm
+    disabled: true
+
   # Requires Tor
   - name: torch
     engine: xpath