Fixed song time on songs shorter than 1 minute
This commit is contained in:
parent
fad0b908c8
commit
f1a4a88730
@ -341,7 +341,7 @@ namespace NadekoBot.Services.Music
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
TimeSpan time;
|
TimeSpan time;
|
||||||
if (!TimeSpan.TryParseExact(data[4], new[] { "m\\:ss", "mm\\:ss", "h\\:mm\\:ss", "hh\\:mm\\:ss", "hhh\\:mm\\:ss" }, CultureInfo.InvariantCulture, out time))
|
if (!TimeSpan.TryParseExact(data[4], new[] { "ss", "m\\:ss", "mm\\:ss", "h\\:mm\\:ss", "hh\\:mm\\:ss", "hhh\\:mm\\:ss" }, CultureInfo.InvariantCulture, out time))
|
||||||
time = TimeSpan.FromHours(24);
|
time = TimeSpan.FromHours(24);
|
||||||
|
|
||||||
return new SongInfo()
|
return new SongInfo()
|
||||||
|
Loading…
Reference in New Issue
Block a user