URL for live stream from helix API data

Thanks Andrew! Great info on the second method.

I was doing the following by grabbing the username from the thumbnail_url and appending it to twitch.tv but your method seems more legit.

//entry is a single object returned from the /helix/streams API
begin = entry.thumbnail_url.indexOf('live_user_') + 10; //10 is the length of 'live_user_'
end = entry.thumbnail_url.lastIndexOf('-\{width\}');
username = entry.thumbnail_url.slice(begin, end);
url = 'https://www.twitch.tv/' + username;