just checked the source, and it is using the depreciated APIv5, so this will need to be rewritten to use the new API.
Do you have a link for where you found the code ?
EDIT:
found it here:
https://github.com/PatrickRorth/Twitch.TV
also found this one:
https://github.com/davismiculis/TwitchTV-WebOS
might take a look at these this weekend