From c9896341cc71759ba8ea7906125dc8f6c7ce5d5a Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sun, 8 Oct 2023 14:59:12 +0530 Subject: server/opensubtitles: more error logs --- server/opensubtitles.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'server') 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 -- cgit v1.2.3