From 6ce43d035c390ed2cb5a8d6b67d32dce5f821119 Mon Sep 17 00:00:00 2001 From: josdion Date: Sat, 26 Oct 2024 10:54:58 +0300 Subject: [PATCH] WIP: subdl --- Providers/SubDl.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Providers/SubDl.cs b/Providers/SubDl.cs index 7761c7c..9a9cafe 100644 --- a/Providers/SubDl.cs +++ b/Providers/SubDl.cs @@ -222,6 +222,11 @@ protected async Task> Search(SearchInfo si, string apiKey, Ca string subInfoBase = ((resItem.Year ?? 0) > 0) ? $"{resItem.Name} ({resItem.Year})
{subItem.Release}" : $"{resItem.Name}
{subItem.Release}"; + // remove extension from subtitle download link + int fileExtPos = subItem.Url.LastIndexOf("."); + if (fileExtPos >= 0) + subItem.Url = subItem.Url.Substring(0, fileExtPos); + var link = new Http.RequestSub { Url = DownloadUrl + subItem.Url,