Parse single-byte track ids properly

custom
jacqueline 9 months ago
parent 2afad172bd
commit be9564d1c7
  1. 2
      src/tangara/database/records.cpp

@ -238,7 +238,7 @@ auto ParseIndexKey(const leveldb::Slice& slice) -> std::optional<IndexKey> {
std::string id_str = std::string id_str =
key_data.substr(header_length + 1 + buffer.str().size() + 1); 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); result.track = BytesToTrackId(id_str);
} }

Loading…
Cancel
Save