fixed in the way transcode is set up, all scripts in that folder adjusted

This commit is contained in:
2026-04-19 12:36:44 -04:00
parent 69a82ce1b9
commit bb709b2762
3 changed files with 54 additions and 2 deletions
+5 -2
View File
@@ -131,9 +131,12 @@ cleanup_location() {
done < <(find "$location" -type f -mmin +"$max_age" 2>/dev/null)
# Remove empty directories left behind
# Remove empty directories left behind — but NEVER remove transcoding-temp itself
# transcoding-temp must always exist on the ramdisk so Emby finds it there first
# If deleted Emby falls back to the SSD version and all new sessions land on SSD
if [[ "$DRY_RUN" == false ]]; then
find "$location" -mindepth 1 -type d -empty -delete 2>/dev/null
find "$location" -mindepth 1 -type d -empty \
! -name "transcoding-temp" -delete 2>/dev/null
fi
# Format bytes freed for display