Simplify song-image detection

Store comment as 1 string
This commit is contained in:
Flamefire committed 2013-10-11 14:50:31 +02:00
1 parent 2ec094e734
commit a9b3e1d3f8
3 files changed
+18 -12

No files matched your search

+4 -5
View File
@@ -81,7 +81,7 @@ namespace VocaluxeLib.Songs
_Song.Languages.Clear();
_Song.Genres.Clear();
_Song._Comment.Clear();
_Song._Comment = "";
var headerFlags = new EHeaderFlags();
StreamReader sr = null;
@@ -196,10 +196,9 @@ namespace VocaluxeLib.Songs
_LogWarning("Invalid language");
break;
case "COMMENT":
if (value.Length > 1)
_Song._Comment.Add(value);
else
_LogWarning("Invalid comment");
if (!String.IsNullOrEmpty(_Song._Comment))
_Song._Comment += "\r\n";
_Song._Comment += value;
break;
case "GAP":
if (CHelper.TryParse(value, out _Song.Gap))