Browse Source

增加其他渠道视频不做处理

zhangyong 1 năm trước cách đây
mục cha
commit
d512032c13
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      single_video/get_vx_message.py

+ 6 - 2
single_video/get_vx_message.py

@@ -57,16 +57,20 @@ class VxMessage():
                     elif "https://v.kuaishou.com" in content:
                         channle = "kuaishou"
                         data = kuaishouVideo.get_videoList(vx_message, channle)
+                    else:
+                        data = "该消息类型不做处理"
                 elif msg_type == 'link':
                     if "mp.weixin.qq.com/s" in content:
                         channle = "gongzhonghao"
                         data = gongzhonghaoVdieo.get_videoList(vx_message, channle)
+                    else:
+                        data = "该消息类型不做处理"
                 elif msg_type == 'channels':
                     if "nickname" in content:
                         channle = "shipinhao"
                         data = shipinhaoVdieo.get_videoList(vx_message, channle)
-                else:
-                    data = "该消息类型不做处理"
+                    else:
+                        data = "该消息类型不做处理"
                 with open('/root/single_video_crawler/id', 'w') as file:
                     file.write(str(id+1))
                 # 获取当前时间