private List <ParamItem> GetEntryTags(AsxItem item) { return(item.Tags .Where(t => t.Key != TagNames.Path && t.Key != TagNames.Author && t.Key != TagNames.Copyright && t.Key != TagNames.Title) .Select(itemTags => new ParamItem { Name = itemTags.Key, Value = itemTags.Value }).ToList()); }
private void AddItems(AsxPlaylist playlist, IEnumerable <Entry> entries) { foreach (var item in entries) { var asxItem = new AsxItem(item.Ref?.Href) { Title = item.Title, Author = item.Author, Copyright = item.Copyright }; foreach (var itemTags in item.Param) { asxItem.Tags[itemTags.Name] = itemTags.Value; } playlist.Add(asxItem); } }