1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-17 15:02:34 +02:00

MediaInfo should use ParseSpeed > 0.2 for .ts files to get accurate readings.

Fixes #742
This commit is contained in:
Taloth Saldono 2015-08-15 12:34:54 +02:00
parent 211863d55d
commit 1a402a9cf4

View File

@ -39,7 +39,14 @@ public MediaInfoModel GetMediaInfo(string filename)
mediaInfo = new MediaInfo();
_logger.Debug("Getting media info from {0}", filename);
mediaInfo.Option("ParseSpeed", "0.0");
if (filename.ToLower().EndsWith(".ts"))
{
mediaInfo.Option("ParseSpeed", "0.3");
}
else
{
mediaInfo.Option("ParseSpeed", "0.0");
}
int open;