wangkun 2 yıl önce
ebeveyn
işleme
e8e6637d8b
1 değiştirilmiş dosya ile 9 ekleme ve 7 silme
  1. 9 7
      main/kdjsfq.py

+ 9 - 7
main/kdjsfq.py

@@ -200,11 +200,11 @@ class Recommend:
 
                     # 下载视频
                     Common.download_method(log_type, 'video', video_title, video_url)
-                    # 获取视频时长
-                    video_info = cls.get_video_info_from_local(log_type, "./videos/" + video_title + "/video.mp4")
-                    video_width = str(video_info[0])
-                    video_height = str(video_info[1])
-                    duration = video_info[2]
+                    # # 获取视频时长
+                    # video_info = cls.get_video_info_from_local(log_type, "./videos/" + video_title + "/video.mp4")
+                    # video_width = str(video_info[0])
+                    # video_height = str(video_info[1])
+                    # duration = video_info[2]
                     # 下载封面
                     Common.download_method(log_type, 'cover', video_title, cover_url)
                     # 保存视频信息至 "./videos/{download_video_title}/info.txt"
@@ -246,8 +246,10 @@ class Recommend:
                                "推荐榜",
                                video_title,
                                our_video_link,
-                               int(duration),
-                               str(video_width) + '*' + str(video_height),
+                               # int(duration),
+                               # str(video_width) + '*' + str(video_height),
+                               '',
+                               '',
                                cover_url,
                                video_url]]
                     time.sleep(1)