fix sync status display
This commit is contained in:
parent
69888991f3
commit
7694f33c82
|
@ -79,7 +79,8 @@ namespace MediaBrowser.Server.Implementations.News
|
||||||
var requestOptions = new HttpRequestOptions
|
var requestOptions = new HttpRequestOptions
|
||||||
{
|
{
|
||||||
Url = "http://emby.media/community/index.php?/blog/rss/1-media-browser-developers-blog",
|
Url = "http://emby.media/community/index.php?/blog/rss/1-media-browser-developers-blog",
|
||||||
Progress = new Progress<double>()
|
Progress = new Progress<double>(),
|
||||||
|
UserAgent = "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.42 Safari/537.36"
|
||||||
};
|
};
|
||||||
|
|
||||||
using (var stream = await _httpClient.Get(requestOptions).ConfigureAwait(false))
|
using (var stream = await _httpClient.Get(requestOptions).ConfigureAwait(false))
|
||||||
|
|
|
@ -178,9 +178,13 @@ namespace MediaBrowser.Server.Implementations.Sync
|
||||||
job.Progress = null;
|
job.Progress = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (jobItems.All(i => i.Status == SyncJobItemStatus.Queued))
|
if (jobItems.Any(i => i.Status == SyncJobItemStatus.Transferring))
|
||||||
{
|
{
|
||||||
job.Status = SyncJobStatus.Queued;
|
job.Status = SyncJobStatus.Transferring;
|
||||||
|
}
|
||||||
|
else if (jobItems.Any(i => i.Status == SyncJobItemStatus.Converting))
|
||||||
|
{
|
||||||
|
job.Status = SyncJobStatus.Converting;
|
||||||
}
|
}
|
||||||
else if (jobItems.All(i => i.Status == SyncJobItemStatus.Failed))
|
else if (jobItems.All(i => i.Status == SyncJobItemStatus.Failed))
|
||||||
{
|
{
|
||||||
|
@ -194,14 +198,6 @@ namespace MediaBrowser.Server.Implementations.Sync
|
||||||
{
|
{
|
||||||
job.Status = SyncJobStatus.ReadyToTransfer;
|
job.Status = SyncJobStatus.ReadyToTransfer;
|
||||||
}
|
}
|
||||||
else if (jobItems.All(i => i.Status == SyncJobItemStatus.Transferring))
|
|
||||||
{
|
|
||||||
job.Status = SyncJobStatus.Transferring;
|
|
||||||
}
|
|
||||||
else if (jobItems.Any(i => i.Status == SyncJobItemStatus.Converting))
|
|
||||||
{
|
|
||||||
job.Status = SyncJobStatus.Converting;
|
|
||||||
}
|
|
||||||
else if (jobItems.All(i => i.Status == SyncJobItemStatus.Cancelled || i.Status == SyncJobItemStatus.Failed || i.Status == SyncJobItemStatus.Synced || i.Status == SyncJobItemStatus.RemovedFromDevice))
|
else if (jobItems.All(i => i.Status == SyncJobItemStatus.Cancelled || i.Status == SyncJobItemStatus.Failed || i.Status == SyncJobItemStatus.Synced || i.Status == SyncJobItemStatus.RemovedFromDevice))
|
||||||
{
|
{
|
||||||
if (jobItems.Any(i => i.Status == SyncJobItemStatus.Failed))
|
if (jobItems.Any(i => i.Status == SyncJobItemStatus.Failed))
|
||||||
|
|
|
@ -182,6 +182,9 @@
|
||||||
<Content Include="dashboard-ui\components\paperdialoghelper.js">
|
<Content Include="dashboard-ui\components\paperdialoghelper.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="dashboard-ui\components\prompt.js">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
<Content Include="dashboard-ui\cordova\android\localsync.js">
|
<Content Include="dashboard-ui\cordova\android\localsync.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
@ -204,6 +207,9 @@
|
||||||
<Content Include="dashboard-ui\cordova\localassetmanager.js">
|
<Content Include="dashboard-ui\cordova\localassetmanager.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="dashboard-ui\cordova\prompt.js">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
<Content Include="dashboard-ui\cordova\searchmenu.js">
|
<Content Include="dashboard-ui\cordova\searchmenu.js">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user