Parse single-byte track ids properly

This commit is contained in:
jacqueline
2024-07-25 09:50:31 +10:00
parent 2afad172bd
commit be9564d1c7
+1 -1
View File
@@ -238,7 +238,7 @@ auto ParseIndexKey(const leveldb::Slice& slice) -> std::optional<IndexKey> {
std::string id_str =
key_data.substr(header_length + 1 + buffer.str().size() + 1);
if (id_str.size() > 1) {
if (id_str.size() > 0) {
result.track = BytesToTrackId(id_str);
}