aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Devices/DeviceService.cs
diff options
context:
space:
mode:
authordkanada <dkanada@users.noreply.github.com>2020-04-13 14:38:19 +0900
committerdkanada <dkanada@users.noreply.github.com>2020-04-13 14:38:19 +0900
commitcb2523e2efb3c91862e035c1ce969e6d069775cd (patch)
treecc74c5ac997fe67ed2f4dcd0f9fcb789212122e9 /MediaBrowser.Api/Devices/DeviceService.cs
parentff065df9863f30a4eec52a95d260cdadcced7b1e (diff)
parent9a0a4575adbba04b6b7f3294e70175a98b864a90 (diff)
merge branch master into plugin
Diffstat (limited to 'MediaBrowser.Api/Devices/DeviceService.cs')
-rw-r--r--MediaBrowser.Api/Devices/DeviceService.cs16
1 files changed, 7 insertions, 9 deletions
diff --git a/MediaBrowser.Api/Devices/DeviceService.cs b/MediaBrowser.Api/Devices/DeviceService.cs
index 8b63decd2..7004a2559 100644
--- a/MediaBrowser.Api/Devices/DeviceService.cs
+++ b/MediaBrowser.Api/Devices/DeviceService.cs
@@ -155,16 +155,14 @@ namespace MediaBrowser.Api.Devices
Id = id
});
}
- else
+
+ return _deviceManager.AcceptCameraUpload(deviceId, request.RequestStream, new LocalFileInfo
{
- return _deviceManager.AcceptCameraUpload(deviceId, request.RequestStream, new LocalFileInfo
- {
- MimeType = Request.ContentType,
- Album = album,
- Name = name,
- Id = id
- });
- }
+ MimeType = Request.ContentType,
+ Album = album,
+ Name = name,
+ Id = id
+ });
}
}
}