From 79f01d52d80ac168474fa42aabd2dab84e989ff7 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 4 Mar 2024 16:54:55 +0530 Subject: lib/curl: retire retries it was mainly used for subscene, which is also retired --- server/opensubtitles.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'server') diff --git a/server/opensubtitles.lua b/server/opensubtitles.lua index 6cbec88..3817ff8 100644 --- a/server/opensubtitles.lua +++ b/server/opensubtitles.lua @@ -5,7 +5,6 @@ local util = require 'lib.util' local attr = require 'lib.attr' local domain = 'https://www.opensubtitles.org' -local tries = 10 local ids_fetch = function (page) local iter, no_name, line, id, name, tab @@ -64,7 +63,7 @@ local search_ohash = function (ohash, name, lang) url = domain .. '/en' .. '/search/sublanguageid-' .. lang .. '/moviehash-' .. ohash - fetch, hcode = curl.get(url, nil, nil, tries) + fetch, hcode = curl.get(url, nil, nil) id = attr.fuzzy(name, ids_fetch(fetch)) if hcode and not id then @@ -87,7 +86,7 @@ local search_filesize = function (filesize, name, lang) end url = url .. '/moviebytesize-' .. filesize - fetch, hcode = curl.get(url, nil, nil, tries) + fetch, hcode = curl.get(url, nil, nil) if not hcode then return nil end @@ -117,7 +116,7 @@ local search = function (path, out, info) end if link then - return curl.zip_link_to_file(link, nil, out, tries) + return curl.zip_link_to_file(link, nil, out) end end -- cgit v1.2.3