修复默认media未保存到数据库的bug
This commit is contained in:
parent
4c4b38d4a1
commit
b29aec3447
@ -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())) {
|
||||
|
Loading…
Reference in New Issue
Block a user