Skip to content

Commit

Permalink
WIP: subdl
Browse files Browse the repository at this point in the history
  • Loading branch information
josdion committed Oct 27, 2024
1 parent 76af64f commit ef4767f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Providers/SubBuzz.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private static void FormatInfoNoHtml(SubtitleInfo s, string provider)

var regex = new System.Text.RegularExpressions.Regex(@"<br.*?>",
System.Text.RegularExpressions.RegexOptions.IgnoreCase);
s.Comment = regex.Replace(s.Comment, brRepl);
s.Comment = regex.Replace(s.Comment, brRepl).Replace(brRepl+ brRepl, brRepl).Replace(brRepl + brRepl, brRepl);

var parser = new AngleSharp.Html.Parser.HtmlParser();
var nodeList = parser.ParseFragment(s.Comment, null);
Expand Down
2 changes: 1 addition & 1 deletion Providers/YifySubtitles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ protected async Task<List<SubtitleInfo>> ParseHtml(System.IO.Stream html, Search

string subInfoBase = linkTag.InnerHtml;
var regexInfo = new Regex(@"<span.*/span>");
subInfoBase = regexInfo.Replace(subInfoBase, "").Trim().Replace("\n", " ");
subInfoBase = regexInfo.Replace(subInfoBase, "").Trim();
string subInfo = subTitle + (subInfoBase.IsNullOrWhiteSpace() ? "" : "<br>" + subInfoBase);
subInfo += string.Format("<br>{0}", subUploader);

Expand Down

0 comments on commit ef4767f

Please sign in to comment.