mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-25 04:48:37 -06:00
chg: Remove unreliable parts
This commit is contained in:
parent
53e2b21d9d
commit
b96561e6a4
1 changed files with 0 additions and 29 deletions
|
@ -12,35 +12,6 @@ if [ "$3" == "add" ]; then
|
||||||
elif [ "$3" == "fin" ]; then
|
elif [ "$3" == "fin" ]; then
|
||||||
size="$(echo $2 | numfmt --to=iec --format %.2f)B"
|
size="$(echo $2 | numfmt --to=iec --format %.2f)B"
|
||||||
message="Finished: [$size] $name"
|
message="Finished: [$size] $name"
|
||||||
|
|
||||||
if [ "$4" == "movie" ]; then
|
|
||||||
cd /downloads/.config/
|
|
||||||
item=${5/\/downloads\//\.\.\/}
|
|
||||||
if [ -f "$item" ]; then
|
|
||||||
cp -l "$item" ../Temp/
|
|
||||||
cd ../Temp/
|
|
||||||
old=$(ls)
|
|
||||||
../.config/movie-rename -l *
|
|
||||||
new=$(ls)
|
|
||||||
../.config/folderify.py
|
|
||||||
[ "$old" != "$new" ] && mv * ../Movies/
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d "$item" ]; then
|
|
||||||
cp -lr "$item" ../Temp/
|
|
||||||
cd ../Temp/
|
|
||||||
cd *
|
|
||||||
find . -name "*.srt" | tail -n 1 | xargs -I{} mv {} .
|
|
||||||
../.config/rename-subs en
|
|
||||||
find . -type d -exec rm -rf "{}" \;
|
|
||||||
find . \! \( -name "*.mp4" -o -name "*.srt" -o -name "*.mkv" \) -exec rm -f "{}" \;
|
|
||||||
old=$(ls)
|
|
||||||
cd ..
|
|
||||||
../.config/movie-rename -ld "$item"
|
|
||||||
new=$(ls)
|
|
||||||
[ "$old" != "$new" ] && mv * ../Movies/
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue