aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-03-04 16:54:55 +0530
committersinanmohd <sinan@sinanmohd.com>2024-03-04 16:54:57 +0530
commit79f01d52d80ac168474fa42aabd2dab84e989ff7 (patch)
treee858ae3584ce50e99e9aac2e5756df839831bd9a /server
parentd6540310e4cd12cba67b0c2e6c666d94dd91f367 (diff)
lib/curl: retire retries
it was mainly used for subscene, which is also retired
Diffstat (limited to 'server')
-rw-r--r--server/opensubtitles.lua7
1 files changed, 3 insertions, 4 deletions
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