diff options
-rw-r--r-- | lib/curl.lua | 4 | ||||
-rw-r--r-- | server/opensubtitles.lua | 2 | ||||
-rw-r--r-- | server/subscene.lua | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/curl.lua b/lib/curl.lua index c8ae478..a152bd0 100644 --- a/lib/curl.lua +++ b/lib/curl.lua @@ -45,7 +45,7 @@ local get = function (url, headr, args) return fetch, tonumber(hcode) end -local zip_to_local_file = function (url, headr, out, retries) +local zip_link_to_file = function (url, headr, out, retries) local tries, hcode, zip, zcode tries = 0 @@ -66,5 +66,5 @@ end return { get = get, - zip_to_local_file = zip_to_local_file, + zip_link_to_file = zip_link_to_file, } diff --git a/server/opensubtitles.lua b/server/opensubtitles.lua index 6e96703..328e958 100644 --- a/server/opensubtitles.lua +++ b/server/opensubtitles.lua @@ -140,7 +140,7 @@ local search = function (path, out) ohash = util.opensubtitles_hash(path) link = search_ohash(ohash) if link then - return curl.zip_to_local_file(link, nil, out, retries) + return curl.zip_link_to_file(link, nil, out, retries) end end diff --git a/server/subscene.lua b/server/subscene.lua index 43f2e88..24ed4f8 100644 --- a/server/subscene.lua +++ b/server/subscene.lua @@ -181,9 +181,9 @@ local search = function (path, out) return false end - rc = curl.zip_to_local_file(link, headr, out, retries) + rc = curl.zip_link_to_file(link, headr, out, retries) if not rc then - util.error('subscene: sub_fetch') + util.error('subscene: zip_link_to_file') return false end |