Explorar o código

修复,没有判断 embyhelper nil 的问题

Signed-off-by: allan716 <[email protected]>
allan716 %!s(int64=4) %!d(string=hai) anos
pai
achega
53e3ebb805
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      downloader.go

+ 5 - 0
downloader.go

@@ -91,6 +91,11 @@ func (d *Downloader) GetUpdateVideoListFromEmby(movieRootDir, seriesRootDir stri
 }
 }
 
 
 func (d Downloader) RefreshEmbySubList() error {
 func (d Downloader) RefreshEmbySubList() error {
+
+	if d.embyHelper == nil {
+		return nil
+	}
+
 	bRefresh := false
 	bRefresh := false
 	defer func() {
 	defer func() {
 		if bRefresh == true {
 		if bRefresh == true {