mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
重构 UgreenCrypto 模块路径至 app.modules.ugreen 并更新相关引用
This commit is contained in:
@@ -7,7 +7,7 @@ from urllib.parse import urlsplit, urlunsplit
|
|||||||
from requests import Session
|
from requests import Session
|
||||||
|
|
||||||
from app.log import logger
|
from app.log import logger
|
||||||
from app.utils.ugreen_crypto import UgreenCrypto
|
from app.modules.ugreen.crypto import UgreenCrypto
|
||||||
from app.utils.url import UrlUtils
|
from app.utils.url import UrlUtils
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ if __name__ == "__main__" and __package__ is None:
|
|||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from app.utils.ugreen_crypto import UgreenCrypto
|
from app.modules.ugreen.crypto import UgreenCrypto
|
||||||
|
|
||||||
|
|
||||||
class UgreenLoginError(Exception):
|
class UgreenLoginError(Exception):
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import unittest
|
|||||||
from cryptography.hazmat.primitives import serialization
|
from cryptography.hazmat.primitives import serialization
|
||||||
from cryptography.hazmat.primitives.asymmetric import padding, rsa
|
from cryptography.hazmat.primitives.asymmetric import padding, rsa
|
||||||
|
|
||||||
from app.utils.ugreen_crypto import UgreenCrypto
|
from app.modules.ugreen.crypto import UgreenCrypto
|
||||||
|
|
||||||
|
|
||||||
def _generate_rsa_keys() -> tuple[str, rsa.RSAPrivateKey]:
|
def _generate_rsa_keys() -> tuple[str, rsa.RSAPrivateKey]:
|
||||||
|
|||||||
Reference in New Issue
Block a user