mirror of
https://github.com/ayasa520/redroid-script.git
synced 2026-11-25 06:14:32 +08:00
小优化,防止安装 widevine 报错
This commit is contained in:
1 parent
3b5d6cb081
commit
b1cba0701f
1 file changed
+2
-1
+2
-1
@@ -46,7 +46,8 @@ class Widevine(General):
|
||||
super().download()
|
||||
|
||||
def copy(self):
|
||||
shutil.rmtree("./widevine")
|
||||
if os.path.exists("./widevine"):
|
||||
shutil.rmtree("./widevine")
|
||||
run(["chmod", "+x", self.extract_to, "-R"])
|
||||
print_color("Copying widevine library files ...", bcolors.GREEN)
|
||||
name = re.findall("([a-zA-Z0-9]+)\.zip", self.dl_link)[0]
|
||||
|
||||
Reference in new issue
Block a user