Skip to content

Commit 1af9045

Browse files
authored
[AI Tagger] Minor fix (#423)
1 parent 97999c1 commit 1af9045

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

plugins/AITagger/ai_tagger.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,13 @@ async def __tag_images(images):
172172
finally:
173173
increment_progress()
174174
for temp_file in temp_files:
175-
if os.path.isdir(temp_file):
176-
shutil.rmtree(temp_file)
177-
else:
178-
os.remove(temp_file)
175+
try:
176+
if os.path.isdir(temp_file):
177+
shutil.rmtree(temp_file)
178+
else:
179+
os.remove(temp_file)
180+
except Exception as e:
181+
log.debug(f"Failed to remove temp file {temp_file}: {e}")
179182

180183
# ----------------- Scene Processing -----------------
181184

plugins/AITagger/tag_mappings.csv

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Vibrating,Vibrating_AI,10,6,20s,0.5
3838
Ass,Ass_AI,-1,6,20s,0.5
3939
Asshole,Asshole_AI,-1,6,20s,0.5
4040
Anal Gape,Anal Gape_AI,10,6,20s,0.5
41+
Balls,Balls_AI,-1,6,20s,0.5
4142
Boobs,Boobs_AI,-1,6,20s,0.5
4243
Cum,Cum_AI,10,6,20s,0.5
4344
Dick,Dick_AI,-1,6,20s,0.5
@@ -53,4 +54,4 @@ Pussy,Pussy_AI,-1,6,20s,0.5
5354
Pussy Gape,Pussy Gape_AI,10,6,20s,0.5
5455
Spit,Spit_AI,10,6,20s,0.5
5556
Oiled,Oiled_AI,10,6,20s,0.5
56-
Wet (Water),Wet (Water)_AI,10,6,20s,0.5
57+
Wet (Water),Wet (Water)_AI,10,6,20s,0.5

0 commit comments

Comments
 (0)