Skip to content

Commit

Permalink
Merge pull request #1010 from MediaBrowser/dev
Browse files Browse the repository at this point in the history
3.0.5518.3
  • Loading branch information
LukePulverenti committed Feb 11, 2015
2 parents ef2a2ff + 179ff34 commit c0ea228
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
2 changes: 2 additions & 0 deletions MediaBrowser.Server.Implementations/Dto/DtoService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public BaseItemDto GetBaseItemDto(BaseItem item, DtoOptions options, User user =

SetItemByNameInfo(item, dto, libraryItems.ToList(), user);

FillSyncInfo(dto, item, options);
return dto;
}

Expand Down Expand Up @@ -307,6 +308,7 @@ public BaseItemDto GetItemByNameDto<T>(T item, DtoOptions options, List<BaseItem
var dto = GetBaseItemDtoInternal(item, options, user);

SetItemByNameInfo(item, dto, taggedItems, user);
FillSyncInfo(dto, item, options);

return dto;
}
Expand Down
10 changes: 8 additions & 2 deletions MediaBrowser.Server.Implementations/Sync/SyncManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.LiveTv;
using MediaBrowser.Controller.MediaEncoding;
using MediaBrowser.Controller.Playlists;
using MediaBrowser.Controller.Sync;
using MediaBrowser.Controller.TV;
using MediaBrowser.Model.Dlna;
Expand Down Expand Up @@ -207,7 +208,7 @@ internal void OnSyncJobUpdated(SyncJob job)
internal async Task UpdateSyncJobItemInternal(SyncJobItem jobItem)
{
await _repo.Update(jobItem).ConfigureAwait(false);

if (SyncJobUpdated != null)
{
EventHelper.FireEventIfNotNull(SyncJobItemUpdated, this, new GenericEventArgs<SyncJobItem>
Expand Down Expand Up @@ -433,6 +434,11 @@ private string GetSyncProviderId(ISyncProvider provider)

public bool SupportsSync(BaseItem item)
{
if (item is Playlist)
{
return true;
}

if (string.Equals(item.MediaType, MediaType.Video, StringComparison.OrdinalIgnoreCase) ||
string.Equals(item.MediaType, MediaType.Audio, StringComparison.OrdinalIgnoreCase) ||
string.Equals(item.MediaType, MediaType.Photo, StringComparison.OrdinalIgnoreCase) ||
Expand Down Expand Up @@ -461,7 +467,7 @@ public bool SupportsSync(BaseItem item)
{
return false;
}

if (video.IsPlaceHolder)
{
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@

commands.push('refresh');

if (SyncManager.isAvailable(item)) {
if (SyncManager.isAvailable(item, user)) {
commands.push('sync');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
SortOrder: "Ascending",
IncludeItemTypes: "Playlist",
Recursive: true,
Fields: "PrimaryImageAspectRatio,SortName,CumulativeRunTimeTicks,CanDelete",
Fields: "PrimaryImageAspectRatio,SortName,CumulativeRunTimeTicks,CanDelete,SyncInfo",
StartIndex: 0
};

Expand Down
2 changes: 1 addition & 1 deletion MediaBrowser.WebDashboard/dashboard-ui/scripts/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ var Dashboard = {
var urlLower = getWindowUrl().toLowerCase();
var index = urlLower.indexOf('/web');
if (index == -1) {
index = urlLower.index('/dashboard');
index = urlLower.indexOf('/dashboard');
}

if (index != -1) {
Expand Down
2 changes: 1 addition & 1 deletion MediaBrowser.WebDashboard/dashboard-ui/scripts/tvgenres.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
SortOrder: "Ascending",
IncludeItemTypes: "Series",
Recursive: true,
Fields: "DateCreated",
Fields: "DateCreated,SyncInfo",
StartIndex: 0
};

Expand Down
2 changes: 1 addition & 1 deletion SharedVersion.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Reflection;

//[assembly: AssemblyVersion("3.0.*")]
[assembly: AssemblyVersion("3.0.5518.2")]
[assembly: AssemblyVersion("3.0.5518.3")]

0 comments on commit c0ea228

Please sign in to comment.