Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc033891

Browse files
authored
fix: Check deleted scenes while matchinf alt sources (#1648)
1 parentd9c16a2 commitc033891

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎pkg/tasks/alternate_scene_source.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,13 @@ func MatchAlternateSources() {
231231
tmpAltSource.Save()
232232
iflen(searchResults.Hits)>0 {
233233
varscene models.Scene
234-
scene.GetIfExist(searchResults.Hits[0].ID)
234+
idx:=0
235+
// check the scene found by search isn't deleted, ie scene.ID == 0
236+
foridx<len(searchResults.Hits)&&scene.ID==0 {
237+
scene.GetIfExist(searchResults.Hits[idx].ID)
238+
idx+=1
239+
}
240+
235241
ifscene.ID>0 {
236242
// check not already linked, if we update unnessarily, it will mess up the sort by "Released on Alternate Sites" sort option
237243
found:=false

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp