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