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 <anna@ocarinaproject.net>
This commit is contained in:
Anna Schumaker 2014-04-09 19:23:45 -04:00
parent 163d823c19
commit d28b3300f5
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}