mirror of
https://github.com/LSPosed/MagiskOnWSALocal.git
synced 2025-05-06 14:56:36 +08:00
Format code
This commit is contained in:
parent
fd51bd872b
commit
6649117eeb
@ -45,6 +45,7 @@ class Prop(OrderedDict):
|
|||||||
def get(self, key: str) -> str:
|
def get(self, key: str) -> str:
|
||||||
return self[key]
|
return self[key]
|
||||||
|
|
||||||
|
|
||||||
logging.captureWarnings(True)
|
logging.captureWarnings(True)
|
||||||
arch = sys.argv[1]
|
arch = sys.argv[1]
|
||||||
|
|
||||||
@ -97,7 +98,7 @@ for node in doc.getElementsByTagName('ExtendedUpdateInfo')[0].getElementsByTagNa
|
|||||||
for node_file in node_files[0].getElementsByTagName('File'):
|
for node_file in node_files[0].getElementsByTagName('File'):
|
||||||
if node_file.hasAttribute('InstallerSpecificIdentifier') and node_file.hasAttribute('FileName'):
|
if node_file.hasAttribute('InstallerSpecificIdentifier') and node_file.hasAttribute('FileName'):
|
||||||
filenames[node.getElementsByTagName('ID')[0].firstChild.nodeValue] = (f"{node_file.attributes['InstallerSpecificIdentifier'].value}_{node_file.attributes['FileName'].value}",
|
filenames[node.getElementsByTagName('ID')[0].firstChild.nodeValue] = (f"{node_file.attributes['InstallerSpecificIdentifier'].value}_{node_file.attributes['FileName'].value}",
|
||||||
node_xml.getElementsByTagName('ExtendedProperties')[0].attributes['PackageIdentityName'].value)
|
node_xml.getElementsByTagName('ExtendedProperties')[0].attributes['PackageIdentityName'].value)
|
||||||
|
|
||||||
identities = {}
|
identities = {}
|
||||||
for node in doc.getElementsByTagName('NewUpdates')[0].getElementsByTagName('UpdateInfo'):
|
for node in doc.getElementsByTagName('NewUpdates')[0].getElementsByTagName('UpdateInfo'):
|
||||||
@ -121,6 +122,7 @@ if not download_dir.is_dir():
|
|||||||
|
|
||||||
tmpdownlist = open(download_dir/tempScript, 'a')
|
tmpdownlist = open(download_dir/tempScript, 'a')
|
||||||
|
|
||||||
|
|
||||||
def send_req(i, v, out_file, out_file_name):
|
def send_req(i, v, out_file, out_file_name):
|
||||||
out = session.post(
|
out = session.post(
|
||||||
'https://fe3.delivery.mp.microsoft.com/ClientWebService/client.asmx/secured',
|
'https://fe3.delivery.mp.microsoft.com/ClientWebService/client.asmx/secured',
|
||||||
@ -136,6 +138,7 @@ def send_req(i, v, out_file, out_file_name):
|
|||||||
tmpdownlist.writelines(f' dir={download_dir}\n')
|
tmpdownlist.writelines(f' dir={download_dir}\n')
|
||||||
tmpdownlist.writelines(f' out={out_file_name}\n')
|
tmpdownlist.writelines(f' out={out_file_name}\n')
|
||||||
|
|
||||||
|
|
||||||
threads = []
|
threads = []
|
||||||
for filename, values in identities.items():
|
for filename, values in identities.items():
|
||||||
if re.match(f"Microsoft\.UI\.Xaml\..*_{arch}_.*\.appx", filename):
|
if re.match(f"Microsoft\.UI\.Xaml\..*_{arch}_.*\.appx", filename):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user