瀏覽代碼

change backup url

luojunhui 8 月之前
父節點
當前提交
32c1693d5e
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      applications/utils/download_video.py

+ 3 - 0
applications/utils/download_video.py

@@ -5,6 +5,7 @@ import os
 import re
 import html
 import cffi
+import traceback
 
 import requests
 from uuid import uuid4
@@ -100,6 +101,7 @@ def download_sph_video(download_url, key):
         return decrypted_path
 
     except Exception as e:
+        print(traceback.format_exc())
         for path in [encrypted_path, decrypted_path]:
             if os.path.exists(path):
                 try:
@@ -137,5 +139,6 @@ def decrypt_sph_video(video_path: str, key: int,  save_path: str) -> None:
             f.write(decrypted_data)
 
     except Exception as e:
+        print(traceback.format_exc())
         raise RuntimeError(f"Decryption failed: {str(e)}") from e