Skip to content

Commit

Permalink
修正音乐视频扫描
Browse files Browse the repository at this point in the history
  • Loading branch information
fengqi committed Dec 23, 2023
1 parent c7550ff commit 190a124
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions music_videos/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"os"
"path/filepath"
"runtime"
"strings"
"time"
)

Expand Down Expand Up @@ -160,8 +159,7 @@ func (c *Collector) videoProcessor(video *MusicVideo) {
return
}

split := strings.Split(video.BaseDir, "/")
kodi.Rpc.AddScanTask(split[len(split)-1])
kodi.Rpc.AddScanTask(video.BaseDir)
}

// 运行扫描器
Expand Down

0 comments on commit 190a124

Please sign in to comment.