Revert "special treatment for ChessWhiz"

This reverts commit e5f6d6c089.
This commit is contained in:
Thibault Duplessis 2015-02-03 18:14:16 +01:00
parent 04d515e2f1
commit e261838c90
2 changed files with 2 additions and 5 deletions

View file

@ -10,8 +10,6 @@ case class StreamOnAir(
url: String,
streamId: String) {
def streamerId = streamer.toLowerCase
val id = url.md5.hex take 8
}

View file

@ -44,10 +44,9 @@ private final class Streaming(
.get() map { res =>
res.json.asOpt[Twitch.Result] match {
case Some(data) => data.streamsOnAir filter { stream =>
authorizedStreamers contains stream.streamerId
authorizedStreamers contains stream.streamer.toLowerCase
} filter { stream =>
stream.streamerId == "chesswhiz" ||
stream.name.contains(keyword)
stream.name contains keyword
} take max
case None =>
logger.warn(s"twitch ${res.status} ${~res.body.lines.toList.headOption}")