aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2023-10-08 14:59:12 +0530
committersinanmohd <sinan@sinanmohd.com>2023-10-08 16:04:07 +0530
commitc9896341cc71759ba8ea7906125dc8f6c7ce5d5a (patch)
treec951fe0603a7372d85165e8f15ca9b484b648b76 /server
parentca1ed6c1fffbdbcaac4a8953954bada9df36383e (diff)
server/opensubtitles: more error logs
Diffstat (limited to 'server')
-rw-r--r--server/opensubtitles.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/opensubtitles.lua b/server/opensubtitles.lua
index d5b36e4..4897554 100644
--- a/server/opensubtitles.lua
+++ b/server/opensubtitles.lua
@@ -175,7 +175,7 @@ local search_ohash = function (ohash, name)
id = attr.fuzzy(name, ids_fetch(fetch))
if hcode and not id then
- util.error('opensubtitles: search_ohash')
+ util.error('opensubtitles: search_ohash failed')
end
if id then
@@ -200,6 +200,10 @@ local search_filesize = function (filesize, name)
end
id = attr.fuzzy(name, ids_fetch(fetch))
+ if hcode and not id then
+ util.error('opensubtitles: search_filesize failed')
+ end
+
if id then
return domain .. '/en/subtitleserve/sub/' .. id
end