Update generate_mp3.sh script

This commit includes changes to the 'generate_mp3.sh' script:
- Removed the commented-out command to open 'handout.md' file.
- Updated the command to open 'handout.html' file using 'am start'.
- Improved comments and formatting in the script.

The changes aim to enhance the script by removing unnecessary code and improving readability.

Note: Ensure that the 'am start' command works as expected with the updated file path.
This commit is contained in:
Ratatoskr 2024-02-13 09:50:36 +01:00
parent e8599fda30
commit b67b4a657b
Signed by: Ratatoskr
GPG Key ID: 28B77439A6D78F4E

View File

@ -26,8 +26,7 @@ mp3_dir="/sdcard/.mp3"
# remove old files
rm -f "$txt_dir"/*complete.txt
# open handout.md file
#am start --user 0 -a android.intent.action.VIEW -d content://pl.solidexplorer2.files/storage/emulated/0/.text/handout.html -t text/html
# open handout.html file
am start --user 0 -n org.bromite.chromium/org.chromium.chrome.browser.ChromeTabbedActivity -d content://pl.solidexplorer2.files/storage/emulated/0/.text/handout.html -t text/html
# Function to create MP3 files