Skip to content

Commit

Permalink
Stream link Undefined in getMatch method #47
Browse files Browse the repository at this point in the history
  • Loading branch information
gigobyte committed May 2, 2018
1 parent 72f8873 commit ea6ea0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/endpoints/getMatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const getMatch = (config: HLTVConfig) => async ({ id }: { id: number }): Promise
}
}

const streams: Stream[] = toArray($('.stream-box')).filter(E.hasChild('.flagAlign')).map(streamEl => ({
const streams: Stream[] = toArray($('.stream-box-embed')).filter(E.hasChild('.flagAlign')).map(streamEl => ({
name: streamEl.find('.flagAlign').text(),
link: streamEl.attr('data-stream-embed'),
viewers: Number(streamEl.find('.viewers').text())
Expand Down

0 comments on commit ea6ea0b

Please sign in to comment.