Skip to content

Commit

Permalink
Fixed Hearthstone-Decks import (fixes HearthSim#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperGouge committed May 3, 2015
1 parent c058cd9 commit 8384df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hearthstone Deck Tracker/DeckImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private static async Task<Deck> ImportHearthstoneDecks(string url)
var doc = await GetHtmlDoc(url);
var deck = new Deck
{
Name = HttpUtility.HtmlDecode(doc.DocumentNode.SelectSingleNode("//*[@id='content']/div[3]/h3").InnerText).Trim()
Name = HttpUtility.HtmlDecode(doc.DocumentNode.SelectSingleNode("//*[@id='content']/div[contains(@class, 'deck')]/h1").InnerText).Trim()
};

var nodes = doc.DocumentNode.SelectNodes("//a[@real_id]");
Expand Down

0 comments on commit 8384df0

Please sign in to comment.