From 7ae563276799394440b2e390cfee80aecf7a9141 Mon Sep 17 00:00:00 2001 From: redzumi Date: Thu, 17 Nov 2016 03:53:50 +0300 Subject: [PATCH] LIVE/Finished fix. --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 3952b5f1..333b28f9 100644 --- a/src/index.js +++ b/src/index.js @@ -104,8 +104,8 @@ class HLTV extends ParsingTools { match.team2 = $team2.text().trim() match.team1Id = this._getTeamId($team1) match.team2Id = this._getTeamId($team2) - match.live = (match.matchTime === 'LIVE') - match.finished = (match.matchTime === 'Finished') + match.live = (match.time === 'LIVE') + match.finished = (match.time === 'Finished') match.format = $($liveInfo[0]).text().trim() match.label = $elem.find('div[style="text-align: center;width: 80%;float: left;"]').text() match.id = $elem.find('.matchActionCell > a').attr('href').replace('/match/', '')