public async Task <bool> Merge(VodPlaylist remote) { var hasUpdate = false; if (remote.IsHidden != this.IsHidden) { hasUpdate = true; this.IsHidden = remote.IsHidden; } if (remote.PlaylistUrl != this.PlaylistUrl) { hasUpdate = true; this.PlaylistUrl = remote.PlaylistUrl; } if (remote.SourceType != this.SourceType) { hasUpdate = true; this.SourceType = remote.SourceType; } if (hasUpdate) { await this.UpdateToRepository(ItemUpdateType.None, CancellationToken.None); } return(hasUpdate); }
protected override string GetInternalMetadataPath(string basePath) { return(VodPlaylist.GetInternalMetadataPath(basePath, this.Id)); }