aboutsummaryrefslogtreecommitdiff
path: root/tests.lua
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2023-10-08 14:36:33 +0530
committersinanmohd <sinan@sinanmohd.com>2023-10-08 14:36:33 +0530
commitf04e77faa68095bfe7fbe8883aad59aff157da02 (patch)
tree4baabb13b078bcc09d368cf4f53db92a1619fc4c /tests.lua
parent48700c12403ea1fc77d4fa6bd84ce1a208b876b0 (diff)
server/opensubtitles/search_ohash: use the new fuzzy search algorithm
Diffstat (limited to 'tests.lua')
-rwxr-xr-xtests.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests.lua b/tests.lua
index f519964..cffcfc9 100755
--- a/tests.lua
+++ b/tests.lua
@@ -28,11 +28,12 @@ local test_subscene = function ()
end
local test_opensubtitles = function ()
- local ohash, id, new_id
+ local ohash, name, id, new_id
ohash = '395787dbe5b42001'
+ name = 'Fight.Club.1999.REMASTERED.720p.BRRip.XviD.AC3-RARBG'
id = '5449593'
- new_id = opensubtitles.search_ohash(ohash)
+ new_id = opensubtitles.search_ohash(ohash, name)
if new_id then
new_id = new_id:match('%d*$')
end