aboutsummaryrefslogtreecommitdiff
path: root/server/opensubtitles.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/opensubtitles.lua')
-rw-r--r--server/opensubtitles.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/opensubtitles.lua b/server/opensubtitles.lua
index 328e958..e9caf7b 100644
--- a/server/opensubtitles.lua
+++ b/server/opensubtitles.lua
@@ -129,6 +129,10 @@ local search_ohash = function (ohash)
id = id:match('/en/subtitleserve/sub/%d*')
end
+ if hcode and not id then
+ util.error('opensubtitles: search_ohash')
+ end
+
if id then
return domain .. id
end