예제 #1
0
 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, "");
             }
         }
     }
 }
예제 #2
0
 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;
     }
 }
예제 #3
0
 protected void FormateChannelName(VideoBase video)
 {
     video.ChannelName = video.Main.Name;
 }
예제 #4
0
 protected void FormateImage(VideoBase video)
 {
     video.ResImage = video.BKInfo.CoverPic;
 }