From c44a4296e8913080bff7ca0ee1b65356ed34ec3d Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 24 三月 2021 19:17:45 +0800
Subject: [PATCH] 集成优酷/腾讯搜索

---
 src/main/java/com/yeshi/buwan/util/factory/VideoInfoFactory.java |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/yeshi/buwan/util/factory/VideoInfoFactory.java b/src/main/java/com/yeshi/buwan/util/factory/VideoInfoFactory.java
index 1a454dc..15df4b4 100644
--- a/src/main/java/com/yeshi/buwan/util/factory/VideoInfoFactory.java
+++ b/src/main/java/com/yeshi/buwan/util/factory/VideoInfoFactory.java
@@ -1,13 +1,14 @@
 package com.yeshi.buwan.util.factory;
 
-import com.yeshi.buwan.domain.SolrVideo;
+import com.yeshi.buwan.domain.solr.SolrAlbumVideo;
 import com.yeshi.buwan.domain.VideoInfo;
 import com.yeshi.buwan.domain.VideoType;
+import com.yeshi.buwan.pptv.PPTVUtil;
 
 public class VideoInfoFactory {
 
 
-    public static VideoInfo create(SolrVideo solrVideo) {
+    public static VideoInfo create(SolrAlbumVideo solrVideo) {
         VideoInfo video = new VideoInfo();
         video.setMainActor(solrVideo.getMainactor());
         video.setShow(solrVideo.getShow() + "");
@@ -30,6 +31,11 @@
         video.setName(solrVideo.getName());
         video.setUpdatetime(solrVideo.getUpdatetime());
         video.setVideoType(new VideoType(solrVideo.getRootVideoType()));
+        //PPTV鏉ユ簮闇�瑕佽繑鍥為珮娓呮爣璇�
+        if (solrVideo.getResourceIds()!=null&&solrVideo.getResourceIds().contains(PPTVUtil.RESOURCE_ID + ""))
+            video.setDefinition(1);
+        else
+            video.setDefinition(0);
 
         return video;
     }

--
Gitblit v1.8.0