diff options
author | Karol Kosek <krkk@krkk.ct8.pl> | 2021-07-18 21:57:06 +0200 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2021-07-19 10:27:36 +0200 |
commit | 7f02270f01853121eb788e564f80b405f9d2b6ba (patch) | |
tree | 1b6aa90b0076130400323221260dcda8eab5fa19 /Userland/Applications | |
parent | aa6028298e082a4de5b0b62fa1b6985d30ad40fa (diff) | |
download | serenity-7f02270f01853121eb788e564f80b405f9d2b6ba.zip |
SoundPlayer: End M3U tag names with a colon
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/SoundPlayer/M3UParser.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Applications/SoundPlayer/M3UParser.cpp b/Userland/Applications/SoundPlayer/M3UParser.cpp index b2067bf8d9..96624b2c15 100644 --- a/Userland/Applications/SoundPlayer/M3UParser.cpp +++ b/Userland/Applications/SoundPlayer/M3UParser.cpp @@ -62,7 +62,7 @@ NonnullOwnPtr<Vector<M3UEntry>> 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<Vector<M3UEntry>> 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; |