From 7f02270f01853121eb788e564f80b405f9d2b6ba Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Sun, 18 Jul 2021 21:57:06 +0200 Subject: [PATCH] SoundPlayer: End M3U tag names with a colon --- Userland/Applications/SoundPlayer/M3UParser.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Userland/Applications/SoundPlayer/M3UParser.cpp b/Userland/Applications/SoundPlayer/M3UParser.cpp index b2067bf8d93..96624b2c159 100644 --- a/Userland/Applications/SoundPlayer/M3UParser.cpp +++ b/Userland/Applications/SoundPlayer/M3UParser.cpp @@ -62,7 +62,7 @@ NonnullOwnPtr> M3UParser::parse(bool include_extended_info) line = line.trim_whitespace(); M3UEntry entry {}; if (line.starts_with('#') && has_exteded_info_tag) { - if (line.starts_with("#EXTINF")) { + if (line.starts_with("#EXTINF:")) { auto data = line.substring_view(8); auto separator = data.find(','); VERIFY(separator.has_value()); @@ -73,23 +73,23 @@ NonnullOwnPtr> M3UParser::parse(bool include_extended_info) VERIFY(!display_name.is_empty() && !display_name.is_null() && !display_name.is_empty()); metadata_for_next_file.track_display_title = display_name; //TODO: support the alternative, non-standard #EXTINF value of a key=value dictionary - } else if (line.starts_with("#PLAYLIST")) { + } else if (line.starts_with("#PLAYLIST:")) { auto name = line.substring_view(10); VERIFY(!name.is_empty()); m_parsed_playlist_title = name; - } else if (line.starts_with("#EXTGRP")) { + } else if (line.starts_with("#EXTGRP:")) { auto name = line.substring_view(8); VERIFY(!name.is_empty()); metadata_for_next_file.group_name = name; - } else if (line.starts_with("#EXTALB")) { + } else if (line.starts_with("#EXTALB:")) { auto name = line.substring_view(8); VERIFY(!name.is_empty()); metadata_for_next_file.album_title = name; - } else if (line.starts_with("#EXTART")) { + } else if (line.starts_with("#EXTART:")) { auto name = line.substring_view(8); VERIFY(!name.is_empty()); metadata_for_next_file.album_artist = name; - } else if (line.starts_with("#EXTGENRE")) { + } else if (line.starts_with("#EXTGENRE:")) { auto name = line.substring_view(10); VERIFY(!name.is_empty()); metadata_for_next_file.album_genre = name;