Take audio files that are already in standard order, with each chapter as a separate mp3 file, and rename them to be in the desired chronological order.
-
The first script generates the list of audio files in a folder.
bible-mp3-generate-list.py
-
The second script uses the generated list to rename the audio files.
bible-books-rename.py
-
Edit the
bible-mp3-generate-list.py
file, and change the folder location to where your audio files are saved.os.chdir('/home/user/bible/')
-
Run the script to output the list.
python3 bible-mp3-generated-list.py
-
Copy/paste the list into a temp file and manually re-order the list so it's in the desired chronological order. An example is here.
-
Replace the
chapters
list at the top of thebible-books-rename.py
file with your new chronological list.chapters = [ ["01 Genesis","01"], ["01 Genesis","02"], ["01 Genesis","03"] etc...
-
Edit the
bible-books-rename.py
file, and change the folder location.os.chdir('/home/user/bible/')
-
Comment out the following line to only see a preview of what will be renamed.
# os.rename(file, file_renamed)
-
Run the script to see a preview. Un-comment the line above and re-run the script to rename the files.
python3 bible-books.rename.py