fixed in the way transcode is set up, all scripts in that folder adjusted
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user