Skip to content

Commit

Permalink
Fix tournament threads without a name
Browse files Browse the repository at this point in the history
  • Loading branch information
FullLifeGames committed Feb 8, 2018
1 parent 3f944a5 commit a430d47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UsersToTournamentMatches/Tournament.cs
Expand Up @@ -238,8 +238,8 @@ private void HandleLine(string url, int pageCount, ref bool blockStarted, ref st
{
if(line.Contains("<h1 class=\"p-title-value\">"))
{
thread.name = line.Substring(line.IndexOf(">") + 1);
thread.name = thread.name.Substring(0, thread.name.IndexOf("<"));
thread.name = line.Substring(0, line.LastIndexOf("<"));
thread.name = thread.name.Substring(thread.name.LastIndexOf(">") + 1);
}
else if(line.Contains("<dd class=\"blockStatus-message blockStatus-message--locked\">"))
{
Expand Down

0 comments on commit a430d47

Please sign in to comment.