Explorar o código

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

zhangyong hai 1 ano
pai
achega
d512032c13
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  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))
                 # 获取当前时间