Skip to content

Commit

Permalink
Handle both types of linebreaks
Browse files Browse the repository at this point in the history
Fixes #54
  • Loading branch information
laurencee committed Nov 18, 2023
1 parent 71d5209 commit dd55833
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Livestream.Monitor/Model/ApiClients/TwitchApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ public async Task<List<VodDetails>> GetVods(VodQuery vodQuery)
var secs = match.Groups["secs"].Value;
var timespan = new TimeSpan(hours.ToInt(), mins.ToInt(), secs.ToInt());
var singleLineTitle = video.Title.TrimEnd().Replace('\n', ' ');
var singleLineDesc = video.Description.TrimEnd().Replace('\n', ' ');
var singleLineTitle = video.Title.TrimEnd().Replace("\r\n", " ").Replace('\n', ' ');
var singleLineDesc = video.Description.TrimEnd().Replace("\r\n", " ").Replace('\n', ' ');
return new VodDetails
{
Expand Down

0 comments on commit dd55833

Please sign in to comment.