1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-22 16:02:43 +00:00

Fixed: Another runtime parsing issue for .ts files

This commit is contained in:
Mark McDowall 2013-11-22 23:45:22 -08:00
parent 41e02208d7
commit 061da0573a

View file

@ -123,7 +123,7 @@ public TimeSpan GetRunTime(string filename)
if (open != 0) if (open != 0)
{ {
int runTime; int runTime;
Int32.TryParse(mediaInfo.Get(StreamKind.General, 0, "PlayTime"), out runTime); Int32.TryParse(mediaInfo.Get(StreamKind.Video, 0, "PlayTime"), out runTime);
mediaInfo.Close(); mediaInfo.Close();
return TimeSpan.FromMilliseconds(runTime); return TimeSpan.FromMilliseconds(runTime);