Browse Source

change backup url

luojunhui 4 tháng trước cách đây
mục cha
commit
32c1693d5e
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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