修复默认media未保存到数据库的bug

pull/174/head
648540858 2021-09-26 11:45:03 +08:00
parent 2ee12e5bdf
commit 2766373632
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ public class ZLMRunner implements CommandLineRunner {
public ZLMServerConfig getMediaServerConfig(MediaServerItem mediaServerItem) {
if (startGetMedia == null) { return null;}
if (mediaServerService.getOne(mediaServerItem.getId()) == null) {
if (!mediaServerItem.isDefaultServer() && mediaServerService.getOne(mediaServerItem.getId()) == null) {
return null;
}
if ( startGetMedia.get(mediaServerItem.getId()) == null || !startGetMedia.get(mediaServerItem.getId())) {