Permalink
Browse files

Fix tournament threads without a name

  • Loading branch information...
FullLifeGames committed Feb 8, 2018
1 parent 3f944a5 commit a430d472145fe226aed3494410fbb7ab9a8b0618
Showing with 2 additions and 2 deletions.
  1. +2 −2 UsersToTournamentMatches/Tournament.cs
@@ -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\">"))
{

0 comments on commit a430d47

Please sign in to comment.