updated media.sh

pull/2/head
Hari Sekhon 4 years ago
parent 2ec0bc0f14
commit 9765f1bf98

@ -14,7 +14,16 @@
#
# set the Track number metadata on mp3 files in the order that they are given
# eg. mp3_renumber *.mp3 - assuming the files are in the correct lexical order they will receive the right metadata track order which some apps need
#
# eg. mp3_renumber *.mp3
#
# (*.mp3 simply works if the mp3 files are already in the correct lexical order they will receive the right metadata track order which some apps like Books.app need)
#
#
# If you want to set subdirectories order, eg if you have audiobooks with CD1, CD2 subdirectories you can do this instead but beware not to do this at the root of your MP3 collection or it'll mess up your metadata between unrelated albums:
#
# find . -maxdepth 2 -iname '*.mp3' | { i=0; while read mp3; do ((i+=1)); id3v2 -T $i "$mp3"; done; }
mp3_renumber(){
local i=0
for x in "$@"; do

Loading…
Cancel
Save