mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-25 04:48:37 -06:00
fix: Remove extension for mkv
This commit is contained in:
parent
7cc78461f3
commit
25e6944fc9
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
for f in *.mp4 *.mkv; do
|
for f in *.mp4 *.mkv; do
|
||||||
if [ -f "$f" ]; then
|
if [ -f "$f" ]; then
|
||||||
h=$(basename "$f" .mp4)
|
h="${f%.*}"
|
||||||
echo "Renaming the subtitle (if any) accompanying $h.mp4..."
|
echo "Renaming the subtitle (if any) accompanying $h.mp4..."
|
||||||
n=$(find . -maxdepth 2 -name "*.srt" -printf '.' | wc -m)
|
n=$(find . -maxdepth 2 -name "*.srt" -printf '.' | wc -m)
|
||||||
if [ $n -eq 1 ] && ! [ -f "$h.srt" ]; then
|
if [ $n -eq 1 ] && ! [ -f "$h.srt" ]; then
|
||||||
|
|
Loading…
Reference in a new issue