update connect scripts

This commit is contained in:
Luke Pulverenti 2014-10-27 17:45:50 -04:00
parent 3ccb6bddef
commit 67528a0799
7 changed files with 17 additions and 12 deletions

View File

@ -26,12 +26,12 @@ namespace MediaBrowser.Model.ApiClient
/// Gets the local images.
/// </summary>
/// <returns>IEnumerable&lt;LocalFileInfo&gt;.</returns>
IEnumerable<LocalFileInfo> GetLocalPhotos();
Task<IEnumerable<LocalFileInfo>> GetLocalPhotos();
/// <summary>
/// Gets the local videos.
/// </summary>
/// <returns>IEnumerable&lt;LocalFileInfo&gt;.</returns>
IEnumerable<LocalFileInfo> GetLocalVideos();
Task<IEnumerable<LocalFileInfo>> GetLocalVideos();
/// <summary>
/// Uploads the file.
/// </summary>

View File

@ -922,7 +922,7 @@ namespace MediaBrowser.Server.Implementations.Connect
{
var user = e.Argument;
//await TryUploadUserPreferences(user, CancellationToken.None).ConfigureAwait(false);
await TryUploadUserPreferences(user, CancellationToken.None).ConfigureAwait(false);
}
private async Task TryUploadUserPreferences(User user, CancellationToken cancellationToken)
@ -937,7 +937,7 @@ namespace MediaBrowser.Server.Implementations.Connect
}
var obj = ConnectUserPreferences.FromUserConfiguration(user.Configuration);
var json = _json.SerializeToString(obj);
var json = _json.SerializeToString(new UserPreferencesDto<ConnectUserPreferences> { data = obj });
var url = GetConnectUrl("user/preferences");
url += "?userId=" + user.ConnectUserId;

View File

@ -72,4 +72,9 @@ namespace MediaBrowser.Server.Implementations.Connect
}
}
public class UserPreferencesDto<T>
{
public T data { get; set; }
}
}

View File

@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MediaBrowser.Common.Internal</id>
<version>3.0.500</version>
<version>3.0.501</version>
<title>MediaBrowser.Common.Internal</title>
<authors>Luke</authors>
<owners>ebr,Luke,scottisafool</owners>
@ -12,7 +12,7 @@
<description>Contains common components shared by Media Browser Theater and Media Browser Server. Not intended for plugin developer consumption.</description>
<copyright>Copyright © Media Browser 2013</copyright>
<dependencies>
<dependency id="MediaBrowser.Common" version="3.0.500" />
<dependency id="MediaBrowser.Common" version="3.0.501" />
<dependency id="NLog" version="3.1.0.0" />
<dependency id="SimpleInjector" version="2.6.0" />
<dependency id="sharpcompress" version="0.10.2" />

View File

@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MediaBrowser.Common</id>
<version>3.0.500</version>
<version>3.0.501</version>
<title>MediaBrowser.Common</title>
<authors>Media Browser Team</authors>
<owners>ebr,Luke,scottisafool</owners>

View File

@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>MediaBrowser.Model.Signed</id>
<version>3.0.500</version>
<version>3.0.501</version>
<title>MediaBrowser.Model - Signed Edition</title>
<authors>Media Browser Team</authors>
<owners>ebr,Luke,scottisafool</owners>

View File

@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>MediaBrowser.Server.Core</id>
<version>3.0.500</version>
<version>3.0.501</version>
<title>Media Browser.Server.Core</title>
<authors>Media Browser Team</authors>
<owners>ebr,Luke,scottisafool</owners>
@ -12,7 +12,7 @@
<description>Contains core components required to build plugins for Media Browser Server.</description>
<copyright>Copyright © Media Browser 2013</copyright>
<dependencies>
<dependency id="MediaBrowser.Common" version="3.0.500" />
<dependency id="MediaBrowser.Common" version="3.0.501" />
</dependencies>
</metadata>
<files>