aboutsummaryrefslogtreecommitdiff
path: root/tests.lua
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-03-04 11:15:04 +0530
committersinanmohd <sinan@sinanmohd.com>2024-03-04 12:20:54 +0530
commit55e49cb31744c2fef297f2531fa914bd1b402ccf (patch)
treef453eab32b932e6ea75f092ac9afd5b34194c951 /tests.lua
parent6a704f60d47e51c32622dbb4689ebf9459bf1063 (diff)
server/subscene: retire
unreliable server and poor database
Diffstat (limited to 'tests.lua')
-rwxr-xr-xtests.lua23
1 files changed, 0 insertions, 23 deletions
diff --git a/tests.lua b/tests.lua
index 99aadcb..a9803f8 100755
--- a/tests.lua
+++ b/tests.lua
@@ -1,32 +1,10 @@
#!/usr/bin/env lua
-local subscene = require 'server.subscene'
local opensubtitles = require 'server.opensubtitles'
local util = require 'lib.util'
local errs = 0
-local test_subscene = function ()
- local out, ohash, path, rc
-
- out = os.tmpname()
- path = './dir/Fight Club (1999) (1080p BluRay x265 10bit Tigole) [QxR].mp4'
- ohash = 'ffec132e13e08f4c'
-
- rc = subscene.search(path, out)
- if not rc then
- util.error('subscene: fetch failed')
- errs = errs + 1
- end
-
- if rc and ohash ~= util.opensubtitles_hash(out) then
- util.error('subscene: hash mismatch')
- errs = errs + 1
- end
-
- os.remove(out)
-end
-
local test_opensubtitles = function ()
local ohash, name, id, new_id
@@ -44,7 +22,6 @@ local test_opensubtitles = function ()
end
end
-test_subscene()
test_opensubtitles()
if errs == 0 then