Browse Source

change backup url

luojunhui 3 months ago
parent
commit
e6553fa567
1 changed files with 1 additions and 2 deletions
  1. 1 2
      applications/utils/download_video.py

+ 1 - 2
applications/utils/download_video.py

@@ -132,8 +132,7 @@ def decrypt_sph_video(video_path: str, key: int,  save_path: str) -> None:
             encrypted_data = f.read()
 
         c_data = ffi.new('unsigned char[]', list(encrypted_data))
-        print(type(key))
-        lib.decrypt(c_data, 2 ** 17, key)
+        lib.decrypt(c_data, 2 ** 17, int(key))
         decrypted_data = bytes(ffi.buffer(c_data, len(encrypted_data))[:])
 
         with open(save_path, 'wb') as f: