aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-04-23 22:15:29 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-04-23 22:15:29 -0400
commitdb66b73a4f500230dd0ed4f5b93d02c6c6916973 (patch)
tree692183d5173bdbbfdaf6c3b9e6b1934271dca937 /MediaBrowser.Server.Implementations
parent6f016525208f665502d844d151c31e9ff38fd20a (diff)
updated ImageMagickSharp
Diffstat (limited to 'MediaBrowser.Server.Implementations')
-rw-r--r--MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs21
-rw-r--r--MediaBrowser.Server.Implementations/Sync/CloudSyncProfile.cs18
2 files changed, 26 insertions, 13 deletions
diff --git a/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs b/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs
index bb9e9057a..bf199503b 100644
--- a/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs
+++ b/MediaBrowser.Server.Implementations/Configuration/ServerConfigurationManager.cs
@@ -101,9 +101,22 @@ namespace MediaBrowser.Server.Implementations.Configuration
/// </summary>
private void UpdateMetadataPath()
{
- ((ServerApplicationPaths)ApplicationPaths).InternalMetadataPath = string.IsNullOrEmpty(Configuration.MetadataPath) ?
- GetInternalMetadataPath() :
- Configuration.MetadataPath;
+ string metadataPath;
+
+ if (string.IsNullOrWhiteSpace(Configuration.MetadataPath))
+ {
+ metadataPath = GetInternalMetadataPath();
+ }
+ else if (Configuration.EnableCustomPathSubFolders)
+ {
+ metadataPath = Path.Combine(Configuration.MetadataPath, "metadata");
+ }
+ else
+ {
+ metadataPath = Configuration.MetadataPath;
+ }
+
+ ((ServerApplicationPaths)ApplicationPaths).InternalMetadataPath = metadataPath;
if (Configuration.MergeMetadataAndImagesByName)
{
@@ -130,7 +143,7 @@ namespace MediaBrowser.Server.Implementations.Configuration
((ServerApplicationPaths)ApplicationPaths).TranscodingTempPath = string.IsNullOrEmpty(encodingConfig.TranscodingTempPath) ?
null :
- encodingConfig.TranscodingTempPath;
+ Path.Combine(encodingConfig.TranscodingTempPath, "transcoding-temp");
}
protected override void OnNamedConfigurationUpdated(string key, object configuration)
diff --git a/MediaBrowser.Server.Implementations/Sync/CloudSyncProfile.cs b/MediaBrowser.Server.Implementations/Sync/CloudSyncProfile.cs
index 992f1d16c..0bc527ed5 100644
--- a/MediaBrowser.Server.Implementations/Sync/CloudSyncProfile.cs
+++ b/MediaBrowser.Server.Implementations/Sync/CloudSyncProfile.cs
@@ -1,5 +1,5 @@
-using System.Collections.Generic;
-using MediaBrowser.Model.Dlna;
+using MediaBrowser.Model.Dlna;
+using System.Collections.Generic;
namespace MediaBrowser.Server.Implementations.Sync
{
@@ -31,13 +31,13 @@ namespace MediaBrowser.Server.Implementations.Sync
DirectPlayProfiles = new[]
{
- new DirectPlayProfile
- {
- Container = "mkv",
- VideoCodec = "h264,mpeg4",
- AudioCodec = mkvAudio,
- Type = DlnaProfileType.Video
- },
+ //new DirectPlayProfile
+ //{
+ // Container = "mkv",
+ // VideoCodec = "h264,mpeg4",
+ // AudioCodec = mkvAudio,
+ // Type = DlnaProfileType.Video
+ //},
new DirectPlayProfile
{
Container = "mp4,mov,m4v",