Playlist Creation: Erroneous Additional Line Breaks In .m3u and .m3u8 Files

On files with certain metadata, creating a playlist (using File -> Playlist (all files)) causes LF line breaks to be inserted into the .m3u8 playlist. This occurs when the Write extended info setting is enabled in the Playlist section of the Options menu.
The EXTINF duration and metadata should be on a single line with the filename following on the next line. Trying to open one of these created playlist files in foobar2000 causes the player to see these additional lines as additional files that don't exist.

Example files here.

Using just 01 track 1.flac as an example. Note that the erroneous line breaks use only line feed characters while the intended line breaks use both carriage return and line feed characters.

.m3u8 file created by Mp3tag:
#EXTM3U[CR][LF]
#EXTINF:288,Azumi Waki - ใƒˆใƒฉใƒƒใ‚ฏ 1 [LF]
ไป™็‹ใ•ใ‚“ใซ [LF]
่ตทใ“ใ—ใฆใ‚‚ใ‚‰ใฃใฆ [LF]
ใ„ใฃใ—ใ‚‡ใซใ”ใฏใ‚“๏ผ[CR][LF]
01 track 1.flac[CR][LF]

.m3u8 file created by foobar2000:
#EXTM3U[CR][LF]
#EXTINF:288,Azumi Waki - ใƒˆใƒฉใƒƒใ‚ฏ 1 ไป™็‹ใ•ใ‚“ใซ ่ตทใ“ใ—ใฆใ‚‚ใ‚‰ใฃใฆ ใ„ใฃใ—ใ‚‡ใซใ”ใฏใ‚“๏ผ[CR][LF]
01 track 1.flac[CR][LF]

Please fix this bug and ensure that generated playlists do not include erroneous line breaks.

1 Like

Thanks for reporting and the test case! I'll make sure to remove those newline characters before they're written to the playlist with the next release.

Fixed with Mp3tag v2.99b.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.