Revert "special treatment for ChessWhiz"
This reverts commit e5f6d6c089
.
This commit is contained in:
parent
04d515e2f1
commit
e261838c90
|
@ -10,8 +10,6 @@ case class StreamOnAir(
|
|||
url: String,
|
||||
streamId: String) {
|
||||
|
||||
def streamerId = streamer.toLowerCase
|
||||
|
||||
val id = url.md5.hex take 8
|
||||
}
|
||||
|
||||
|
|
|
@ -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}")
|
||||
|
|
Loading…
Reference in a new issue