diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-03-08 02:24:30 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-08 02:24:30 -0500 |
| commit | 23010f2980381a4b56e05620d4604cafc0e00043 (patch) | |
| tree | 418b4ad6964c84d17ff9c33fa88b0e1a8bcacd34 /Emby.Server.Implementations/Devices/DeviceManager.cs | |
| parent | 0ac0a09c806112ce82dcd23f43c7df9ff8b5531d (diff) | |
| parent | 314b84ae9ef5a692144b0a3a178ddcbd393c9fb9 (diff) | |
Merge pull request #2516 from MediaBrowser/beta
Beta
Diffstat (limited to 'Emby.Server.Implementations/Devices/DeviceManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Devices/DeviceManager.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/Devices/DeviceManager.cs b/Emby.Server.Implementations/Devices/DeviceManager.cs index 88c0ea203..588b42a09 100644 --- a/Emby.Server.Implementations/Devices/DeviceManager.cs +++ b/Emby.Server.Implementations/Devices/DeviceManager.cs @@ -195,13 +195,12 @@ namespace Emby.Server.Implementations.Devices } var config = _config.GetUploadOptions(); - if (!string.IsNullOrWhiteSpace(config.CameraUploadPath)) + var path = config.CameraUploadPath; + if (string.IsNullOrWhiteSpace(path)) { - return config.CameraUploadPath; + path = DefaultCameraUploadsPath; } - var path = DefaultCameraUploadsPath; - if (config.EnableCameraUploadSubfolders) { path = Path.Combine(path, _fileSystem.GetValidFilename(device.Name)); |
