aboutsummaryrefslogtreecommitdiff
path: root/server/opensubtitles.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/opensubtitles.lua')
-rw-r--r--server/opensubtitles.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/opensubtitles.lua b/server/opensubtitles.lua
index a9f2199..6e96703 100644
--- a/server/opensubtitles.lua
+++ b/server/opensubtitles.lua
@@ -122,7 +122,7 @@ local search_ohash = function (ohash)
repeat
fetch, hcode = curl.get(url, nil, nil)
tries = tries + 1
- until hcode == 200 or tries > retries
+ until hcode == 200 or not hcode or tries > retries
id = fetch:match('/en/subtitleserve/sub/[^\n]*\n[^\n]*iduser%-0')
if id then