if (task.Height.HasValue && task.Height != 0) query += string.Format(" -l {0}", task.Height);\r
}\r
\r
- if (task.HasCropping)\r
- {\r
+ //if (task.HasCropping)\r
+ //{\r
query += string.Format(" --crop {0}:{1}:{2}:{3}", task.Cropping.Top, task.Cropping.Bottom, task.Cropping.Left, task.Cropping.Right);\r
- }\r
+ //}\r
\r
switch (task.Anamorphic)\r
{\r
}\r
\r
// The title that is selected has a source name. This means it's part of a batch scan.\r
- if (selectedTitle != null && !string.IsNullOrEmpty(selectedTitle.SourceName))\r
+ if (selectedTitle != null && !string.IsNullOrEmpty(selectedTitle.SourceName) && !selectedTitle.SourceName.EndsWith("\\"))\r
{\r
return Path.GetFileNameWithoutExtension(selectedTitle.SourceName);\r
}\r
{\r
foreach (DriveInformation item in GeneralUtilities.GetDrives())\r
{\r
- if (item.RootDirectory.Contains(this.ScannedSource.ScanPath))\r
+ if (item.RootDirectory.Contains(this.ScannedSource.ScanPath.Replace("\\\\", "\\")))\r
{\r
return item.VolumeLabel;\r
}\r