I added the line:
Code: Select all
find "$NZBPP_DIRECTORY" -type f -size -200000k -iname \*sample\* -exec rm {} \; >/dev/null 2>&1
Code: Select all
find "$NZBPP_DIRECTORY" -type f -size -200000k -iname \*sample\* -exec rm {} \; >/dev/null 2>&1
I wanted actually to add this to default Cleanup.sh but didn't have time yet for this. If you have a little free time may be you could help?prinz2311 wrote:I added the line:
to the Cleanup.sh on my setup.Code: Select all
find "$NZBPP_DIRECTORY" -type f -size -200000k -iname \*sample\* -exec rm {} \; >/dev/null 2>&1
Code: Select all
rm *.[pP][aA][rR]2 >/dev/null 2>&1
rm *.nzb >/dev/null 2>&1
rm *.sfv >/dev/null 2>&1
rm *.url >/dev/null 2>&1
Code: Select all
CleanupExt=par2,nzb,sfv,url
I need a sh-script with mentioned features. Cleanup-script is important and I want keep it bash because python is not everywhere available.prinz2311 wrote:clintonhall has added a new Script DeleteSamples.py now.
Code: Select all
# Clean up list. space separated, in single quotes, default '*.nzb *.sfv *.1'
FileCleanUp='*.nzb *.sfv *.1'
Code: Select all
# Clean up list, space separated array from GUI
for word in $FileCleanUp ; do rm $word >/dev/null 2>&1 ; done
Code: Select all
FileCleanUp='*.[nN][zZ][bB] *.[sS][fF][vV] *.1'
The problem with this is the bug in Sickbeard, the main reason this deletion was integrated in the first place. If only a sample File is in the dir for whatever reason, Sickbeard will in many cases overwrite an existing non sample file with the sample file. The probability that a real file has sample in his his name and is below 200 MB is almost zero.clintonhall wrote:the only thing I think I might need to look at is the suggestion you made that it should only delete the ".sample" if another media file exists....
Users browsing this forum: No registered users and 29 guests