wangkun 2 年之前
父節點
當前提交
dd2e1a6645
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      main/shipinhao_get_url.py

+ 6 - 2
main/shipinhao_get_url.py

@@ -44,8 +44,8 @@ class GetUrl:
         print('退出')
         driver.quit()
 
-        windows = driver.window_handles
-        driver.switch_to.window(windows[0])
+        # windows = driver.window_handles
+        # driver.switch_to.window(windows[0])
 
     @classmethod
     def get_url(cls, log_type):
@@ -88,6 +88,10 @@ class GetUrl:
                     cover_url = cover_url_list[0]['host']+cover_url_list[0]['path']+'?'+cover_url_list[0]['query']
                     head_url = cover_url
 
+                    print(f'video_url:{video_url}')
+                    print(f'cover_url:{cover_url}')
+                    print(f'head_url:{head_url}')
+
                     return video_url, cover_url, head_url
                 else:
                     Common.logger(log_type).info("未找到 url,10s后重新获取")