diff --git a/BilibiliLive/Module/DLNA/BiliBiliUpnpDMR.swift b/BilibiliLive/Module/DLNA/BiliBiliUpnpDMR.swift index 0ce994d..05ebf1a 100644 --- a/BilibiliLive/Module/DLNA/BiliBiliUpnpDMR.swift +++ b/BilibiliLive/Module/DLNA/BiliBiliUpnpDMR.swift @@ -257,7 +257,7 @@ class BiliBiliUpnpDMR: NSObject { func handlePlay(json: JSON) { let roomId = json["roomId"].stringValue - if roomId.count > 0, let room = Int(roomId) { + if roomId.count > 0, let room = Int(roomId), room > 0 { playLive(roomID: room) } else { playVideo(json: json)