Add Length Tag to songs

This commit is contained in:
Flamefire committed 2014-03-20 20:09:54 +01:00
1 parent 713f49230b
commit 2f1b2d604a
3 files changed
+6

No files matched your search

+2
View File
@@ -130,6 +130,7 @@ namespace VocaluxeLib.Songs
public string Creator = "";
public string Version = "";
public string Length = ""; //Length set in song file, SHOULD match actual song length but is more a hint
public string Source = "";
public readonly List<String> UnknownTags = new List<string>();
@@ -240,6 +241,7 @@ namespace VocaluxeLib.Songs
Creator = song.Creator;
Version = song.Version;
Length = song.Length;
Source = song.Source;
UnknownTags = new List<string>(song.UnknownTags);
+3
View File
@@ -192,6 +192,9 @@ namespace VocaluxeLib.Songs
case "YOUTUBE":
_Song.Source = value;
break;
case "LENGTH":
_Song.Length = value;
break;
case "MP3":
if (File.Exists(Path.Combine(_Song.Folder, value)))
{
+1
View File
@@ -71,6 +71,7 @@ namespace VocaluxeLib.Songs
_WriteHeaderEntry("ENCODING", _Song.Encoding.GetEncodingName());
_WriteHeaderEntry("CREATOR", _Song.Creator);
_WriteHeaderEntry("VERSION", _Song.Version);
_WriteHeaderEntry("LENGTH", _Song.Length);
_WriteHeaderEntry("SOURCE", _Song.Source);
if (!String.IsNullOrEmpty(_Song._Comment))
{