File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ func (c *Emby) SearchSongs(tracks []*models.Track) error {
142142 break
143143 }
144144
145- if len (item .Artists ) > 0 &&
145+ if track . File != "" && len (item .Artists ) > 0 &&
146146 strings .Contains (strings .ToLower (item .Artists [0 ]), strings .ToLower (track .MainArtist )) &&
147147 strings .Contains (strings .ToLower (item .Path ), strings .ToLower (track .File )) {
148148 track .ID = item .ID
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ func (c *Jellyfin) SearchSongs(tracks []*models.Track) error {
151151 break
152152 }
153153
154- if len (item .Artists ) > 0 &&
154+ if track . File != "" && len (item .Artists ) > 0 &&
155155 strings .Contains (strings .ToLower (item .Artists [0 ]), strings .ToLower (track .MainArtist )) &&
156156 strings .Contains (strings .ToLower (item .Path ), strings .ToLower (track .File )) {
157157 track .ID = item .ID
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ func (c *Subsonic) SearchSongs(tracks []*models.Track) error {
143143 break
144144 }
145145
146- if durationMatch && pathMatch {
146+ if track . File != "" && durationMatch && pathMatch {
147147 track .ID = song .ID
148148 track .Present = true
149149 break
You can’t perform that action at this time.
0 commit comments