Jelajahi Sumber

change backup url

luojunhui 3 bulan lalu
induk
melakukan
e6553fa567
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  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: