update connect scripts
This commit is contained in:
parent
3ccb6bddef
commit
67528a0799
|
@ -26,12 +26,12 @@ namespace MediaBrowser.Model.ApiClient
|
||||||
/// Gets the local images.
|
/// Gets the local images.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>IEnumerable<LocalFileInfo>.</returns>
|
/// <returns>IEnumerable<LocalFileInfo>.</returns>
|
||||||
IEnumerable<LocalFileInfo> GetLocalPhotos();
|
Task<IEnumerable<LocalFileInfo>> GetLocalPhotos();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the local videos.
|
/// Gets the local videos.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>IEnumerable<LocalFileInfo>.</returns>
|
/// <returns>IEnumerable<LocalFileInfo>.</returns>
|
||||||
IEnumerable<LocalFileInfo> GetLocalVideos();
|
Task<IEnumerable<LocalFileInfo>> GetLocalVideos();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Uploads the file.
|
/// Uploads the file.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -922,7 +922,7 @@ namespace MediaBrowser.Server.Implementations.Connect
|
||||||
{
|
{
|
||||||
var user = e.Argument;
|
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)
|
private async Task TryUploadUserPreferences(User user, CancellationToken cancellationToken)
|
||||||
|
@ -937,7 +937,7 @@ namespace MediaBrowser.Server.Implementations.Connect
|
||||||
}
|
}
|
||||||
|
|
||||||
var obj = ConnectUserPreferences.FromUserConfiguration(user.Configuration);
|
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");
|
var url = GetConnectUrl("user/preferences");
|
||||||
url += "?userId=" + user.ConnectUserId;
|
url += "?userId=" + user.ConnectUserId;
|
||||||
|
|
|
@ -72,4 +72,9 @@ namespace MediaBrowser.Server.Implementations.Connect
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class UserPreferencesDto<T>
|
||||||
|
{
|
||||||
|
public T data { get; set; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>MediaBrowser.Common.Internal</id>
|
<id>MediaBrowser.Common.Internal</id>
|
||||||
<version>3.0.500</version>
|
<version>3.0.501</version>
|
||||||
<title>MediaBrowser.Common.Internal</title>
|
<title>MediaBrowser.Common.Internal</title>
|
||||||
<authors>Luke</authors>
|
<authors>Luke</authors>
|
||||||
<owners>ebr,Luke,scottisafool</owners>
|
<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>
|
<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>
|
<copyright>Copyright © Media Browser 2013</copyright>
|
||||||
<dependencies>
|
<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="NLog" version="3.1.0.0" />
|
||||||
<dependency id="SimpleInjector" version="2.6.0" />
|
<dependency id="SimpleInjector" version="2.6.0" />
|
||||||
<dependency id="sharpcompress" version="0.10.2" />
|
<dependency id="sharpcompress" version="0.10.2" />
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>MediaBrowser.Common</id>
|
<id>MediaBrowser.Common</id>
|
||||||
<version>3.0.500</version>
|
<version>3.0.501</version>
|
||||||
<title>MediaBrowser.Common</title>
|
<title>MediaBrowser.Common</title>
|
||||||
<authors>Media Browser Team</authors>
|
<authors>Media Browser Team</authors>
|
||||||
<owners>ebr,Luke,scottisafool</owners>
|
<owners>ebr,Luke,scottisafool</owners>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>MediaBrowser.Model.Signed</id>
|
<id>MediaBrowser.Model.Signed</id>
|
||||||
<version>3.0.500</version>
|
<version>3.0.501</version>
|
||||||
<title>MediaBrowser.Model - Signed Edition</title>
|
<title>MediaBrowser.Model - Signed Edition</title>
|
||||||
<authors>Media Browser Team</authors>
|
<authors>Media Browser Team</authors>
|
||||||
<owners>ebr,Luke,scottisafool</owners>
|
<owners>ebr,Luke,scottisafool</owners>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>MediaBrowser.Server.Core</id>
|
<id>MediaBrowser.Server.Core</id>
|
||||||
<version>3.0.500</version>
|
<version>3.0.501</version>
|
||||||
<title>Media Browser.Server.Core</title>
|
<title>Media Browser.Server.Core</title>
|
||||||
<authors>Media Browser Team</authors>
|
<authors>Media Browser Team</authors>
|
||||||
<owners>ebr,Luke,scottisafool</owners>
|
<owners>ebr,Luke,scottisafool</owners>
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
<description>Contains core components required to build plugins for Media Browser Server.</description>
|
<description>Contains core components required to build plugins for Media Browser Server.</description>
|
||||||
<copyright>Copyright © Media Browser 2013</copyright>
|
<copyright>Copyright © Media Browser 2013</copyright>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency id="MediaBrowser.Common" version="3.0.500" />
|
<dependency id="MediaBrowser.Common" version="3.0.501" />
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</metadata>
|
</metadata>
|
||||||
<files>
|
<files>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user