protected void FormateChannelName(AuthNode plat, VideoBase video) { if (!string.IsNullOrEmpty(plat.FormateName)) { int index = video.Main.Name.LastIndexOf(plat.FormateName); if (index >= 0) video.ChannelName = video.Main.Name.Substring(0, index); else video.ChannelName = video.Main.Name; } else { video.ChannelName = video.Main.Name; } var v = video as VideoNode; if (v != null) //是点播 { if (!string.IsNullOrEmpty(plat.ReplaceName)) { string[] names = plat.ReplaceName.Split(SplitArray.DHArray, StringSplitOptions.RemoveEmptyEntries); foreach (string n in names) { video.ChannelName = video.ChannelName.Replace(n, ""); } } } }
protected void FormateImage(AuthNode plat, VideoBase video) { if (!string.IsNullOrEmpty(plat.FormateImage)) { video.ResImage = video.BKInfo.CoverPic.Replace("75X100", plat.FormateImage); } else { video.ResImage = video.BKInfo.CoverPic; } }
public override bool Equals(object obj) { AuthNode o = obj as AuthNode; if (this == o) { return(true); } if (o == null) { return(false); } return(o.PlatformName == PlatformName && o.IsVisable == IsVisable && o.NotContainsNames == NotContainsNames); }