From d28b3300f5a9d8e27f713e6d9d48b6452644a27a Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Wed, 9 Apr 2014 19:23:45 -0400 Subject: [PATCH] library: Put a space between track length and title If a title began with a number then the number would be read as part of the length, adding extra time. So a track with length "100" and title "42 abcde" would be read back as having length "10042" and title "abcde" Signed-off-by: Anna Schumaker --- lib/library.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/library.cpp b/lib/library.cpp index 938258ae..543bdca2 100644 --- a/lib/library.cpp +++ b/lib/library.cpp @@ -244,7 +244,7 @@ void library :: Track :: write(File &f) { f << library_id << " " << artist_id << " " << album_id << " " << genre_id; f << " " << track << " " << last_year << " " << last_month << " " << last_day; - f << " " << play_count << " " << length; // << std :: endl; + f << " " << play_count << " " << length << " "; // << std :: endl; f << title << std :: endl; f << filepath; }