Merge pull request #99 from dalbodeule/develop

chzzkHandler fix
This commit is contained in:
JinU Choi 2024-08-15 17:37:40 +09:00 committed by GitHub
commit 599a532d81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,7 +94,6 @@ object ChzzkHandler {
val streamInfo = getStreamInfo(it.channel.channelId) val streamInfo = getStreamInfo(it.channel.channelId)
if (streamInfo.content?.status == "OPEN" && !it.isActive) { if (streamInfo.content?.status == "OPEN" && !it.isActive) {
try { try {
if(it.channel.isBroadcasting)
it.isActive(true, streamInfo) it.isActive(true, streamInfo)
} catch(e: Exception) { } catch(e: Exception) {
logger.info("Exception: ${e.stackTraceToString()}") logger.info("Exception: ${e.stackTraceToString()}")
@ -123,7 +122,6 @@ object ChzzkHandler {
val streamInfo = getStreamInfo(it.channel.channelId) val streamInfo = getStreamInfo(it.channel.channelId)
if (streamInfo.content?.status == "OPEN" && !it.isActive) { if (streamInfo.content?.status == "OPEN" && !it.isActive) {
try { try {
if(it.channel.isBroadcasting)
it.isActive(true, streamInfo) it.isActive(true, streamInfo)
} catch(e: Exception) { } catch(e: Exception) {
logger.info("Exception: ${e.stackTraceToString()}") logger.info("Exception: ${e.stackTraceToString()}")