fix file extension in m3u file

Use file extension in m3u file rather than container format.
This commit is contained in:
supremesyntax 2018-11-30 08:50:13 +00:00 committed by GitHub
parent 3c7a5f1ac1
commit 13c240ab53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -424,7 +424,7 @@ do
# Playlist creation. # Playlist creation.
duration=$(echo "${chapter_end} - ${chapter_start%?}" | bc) duration=$(echo "${chapter_end} - ${chapter_start%?}" | bc)
echo "#EXTINF:${duration%.*},${title} - ${chapter}" >> "${playlist_file}" echo "#EXTINF:${duration%.*},${title} - ${chapter}" >> "${playlist_file}"
echo "${chapter_title}.${container}" >> "${playlist_file}" echo "${chapter_title}.${extension}" >> "${playlist_file}"
chapternum=$((chapternum + 1 )) chapternum=$((chapternum + 1 ))
# ---- # ----