Skip to content

Commit

Permalink
WIP: subdl
Browse files Browse the repository at this point in the history
  • Loading branch information
josdion committed Oct 26, 2024
1 parent 0259b84 commit 6ce43d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Providers/SubDl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ protected async Task<List<SubtitleInfo>> Search(SearchInfo si, string apiKey, Ca
string subInfoBase = ((resItem.Year ?? 0) > 0) ?
$"{resItem.Name} ({resItem.Year})<br>{subItem.Release}" : $"{resItem.Name}<br>{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,
Expand Down

0 comments on commit 6ce43d0

Please sign in to comment.