Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 protected override string GetInternalMetadataPath(string basePath)
 {
     return(VodPlaylist.GetInternalMetadataPath(basePath, this.Id));
 }