do not load songs if the mp3 does not exists
This commit is contained in:
1 parent
35d32272a2
commit
41afaca2b8
1 file changed
+8
@@ -237,6 +237,11 @@ namespace Vocaluxe.Lib.Song
|
|||||||
this.MP3FileName = Value;
|
this.MP3FileName = Value;
|
||||||
HeaderFlags |= EHeaderFlags.MP3;
|
HeaderFlags |= EHeaderFlags.MP3;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
CLog.LogError("Can't find audio file: " + Path.Combine(this.Folder, Value));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case "BPM":
|
case "BPM":
|
||||||
if (CHelper.TryParse(Value, out this.BPM))
|
if (CHelper.TryParse(Value, out this.BPM))
|
||||||
@@ -283,6 +288,9 @@ namespace Vocaluxe.Lib.Song
|
|||||||
case "VIDEO":
|
case "VIDEO":
|
||||||
if (File.Exists(Path.Combine(this.Folder, Value)))
|
if (File.Exists(Path.Combine(this.Folder, Value)))
|
||||||
this.VideoFileName = Value;
|
this.VideoFileName = Value;
|
||||||
|
else
|
||||||
|
CLog.LogError("Can't find video file: " + Path.Combine(this.Folder, Value));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case "VIDEOGAP":
|
case "VIDEOGAP":
|
||||||
CHelper.TryParse(Value, out this.VideoGap);
|
CHelper.TryParse(Value, out this.VideoGap);
|
||||||
|
|||||||
Reference in new issue
Block a user