- Make SourceName a bit smarter when dealing with autonaming and folders. If Video_TS folder is the selected source, autoname will now use the upper level folder name instead. (thanks slaingod)
git-svn-id: svn://localhost/HandBrake/trunk@3009
b64f7644-9d1e-0410-96f1-
a4d463321fa5
{\r
return this.dvdDriveLabel;\r
}\r
{\r
return this.dvdDriveLabel;\r
}\r
+ \r
+ if(Path.GetFileNameWithoutExtension(this.sourcePath) != "VIDEO_TS")\r
+ return Path.GetFileNameWithoutExtension(this.sourcePath);\r
- return Path.GetFileNameWithoutExtension(this.sourcePath);\r
+ return Path.GetFileNameWithoutExtension(Path.GetDirectoryName(this.sourcePath));\r