From b1cba0701fb5ef4cfc807d27666d1c264a05c4c9 Mon Sep 17 00:00:00 2001 From: A lucky guy <79245287+tom-snow@users.noreply.github.com> Date: Sun, 19 Feb 2023 16:27:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E4=BC=98=E5=8C=96=EF=BC=8C=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E5=AE=89=E8=A3=85=20widevine=20=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stuffs/widevine.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stuffs/widevine.py b/stuffs/widevine.py index df0b88a..bbe3750 100644 --- a/stuffs/widevine.py +++ b/stuffs/widevine.py @@ -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]