diff options
author | sr55 <[email protected]> | 2012-06-07 23:26:48 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-06-07 23:26:48 +0000 |
commit | d2bb3644ceb8862bf4d5d9fdc804d08221f098f7 (patch) | |
tree | c823b650de42068d428e26b7f642618f08dace81 /win/CS | |
parent | d5acd6652ff668e7a391809088cc8fbc698919bb (diff) |
WinGui: Fix in the scan service for scanning folders with spaces.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4719 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/ScanService.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs b/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs index cd9eb834a..a7dffd5fe 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/ScanService.cs @@ -242,7 +242,9 @@ namespace HandBrake.ApplicationServices.Services // Quick fix for "F:\\" style paths. Just get rid of the \\ so the CLI doesn't fall over.
// Sould probably clean up the escaping of the strings later.
- string source = sourcePath.ToString().EndsWith("\\") ? sourcePath.ToString() : "\"" + sourcePath + "\"";
+ string source = sourcePath.ToString().EndsWith("\\")
+ ? "\"" + sourcePath.ToString().TrimEnd('\\') + "\""
+ : "\"" + sourcePath + "\"";
string query = string.Format(@" -i {0} -t{1} {2} -v ", source, title, extraArguments);
this.hbProc = new Process
|