Created
May 24, 2018 09:59
-
-
Save lozbrown/b5d3210600443c38dd17ee1001ebf1bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Deleteing these files:" | |
for file in "*extra*.txt" "*.nfo" "*sample*" "*rarbg*.txt" "rarbg*.mp4" "WWW.YIFY-TORRENTS.COM.jpg" "*torrenting*.txt" "*.sfv" "*screen*.png" "SCREENS " "*cover.jpg" "info.txt" "Code.txt" "Torrent*downloaded*.txt" "Torrent*seeded*.txt" "ETRG.mp4" "To*keep*us*going*please*read.txt" "Seeded*By*.txt" "WWW.YTS.AG.jpg" "www.HDSector.com.txt" "*iExTV*.txt" "*iExTV*.jpg" "*ETTV*.txt" | |
do | |
#echo "Searching for $file" | |
find /media/media1/Unsorted-Downloads -iname $file -print | |
find /media/media1/Unsorted-Downloads -iname $file -delete | |
done | |
/usr/local/bin/tvnamer -br /media/media1/Unsorted-Downloads | |
#echo "Running forced-move on the following files" | |
#find /media/media1/Unsorted-Downloads/ -mindepth 1 -type d -iname "*proper*" -o -iname "*repack*" -print | |
#find /media/media1/Unsorted-Downloads/ -mindepth 1 -type d -iname "*proper*" -o -iname "*repack*" -exec /usr/local/bin/tvnamer -br --force-move {} \; | |
find /media/media1/Unsorted-Downloads/ \( -iname "*proper*" -o -iname "*repack*" \) -exec /bin/echo force move {} \; | |
find /media/media1/Unsorted-Downloads/ \( -iname "*proper*" -o -iname "*repack*" \) -exec /usr/local/bin/tvnamer -r --force-rename --force-move {} \; | |
echo "Deleteing these empty folders:" | |
find /media/media1/Unsorted-Downloads/ -mindepth 1 -type d -empty -print | |
find /media/media1/Unsorted-Downloads/ -mindepth 1 -type d -empty -delete | |
/usr/bin/texturecache.py vscan |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment