From 210df982c56cd77855e5ef2507e3f913061afd41 Mon Sep 17 00:00:00 2001 From: Tontonnow <122251963+Tontonnow@users.noreply.github.com> Date: Fri, 27 Oct 2023 20:57:11 +0800 Subject: [PATCH] Add files via upload --- iqy.py | 4 ++-- yk.py | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/iqy.py b/iqy.py index 6ff7c5d..d39ac9f 100644 --- a/iqy.py +++ b/iqy.py @@ -4,8 +4,8 @@ import time from urllib import parse import requests from tabulate import tabulate -from pywidevineb.L3.cdm import deviceconfig -from pywidevineb.L3.decrypt.wvdecryptcustom import WvDecrypt +from pywidevine.L3.cdm import deviceconfig +from pywidevine.L3.decrypt.wvdecryptcustom import WvDecrypt from tools import dealck, md5, get_size, get_pssh diff --git a/yk.py b/yk.py index a97f59b..a3daaef 100644 --- a/yk.py +++ b/yk.py @@ -5,8 +5,8 @@ from urllib.parse import parse_qsl, urlsplit import base64 from Crypto.Cipher import AES from tabulate import tabulate -from pywidevineb.L3.cdm import deviceconfig -from pywidevineb.L3.decrypt.wvdecryptcustom import WvDecrypt +from pywidevine.L3.cdm import deviceconfig +from pywidevine.L3.decrypt.wvdecryptcustom import WvDecrypt from tools import get_pssh, dealck requests = requests.Session() @@ -142,10 +142,10 @@ class YouKu: cmd = f"{common_args} --key {key} -M format=mp4" else: txt = f''' - #OUT,{savepath} - #DECMETHOD,ECB - #KEY,{key} - {title}_{resolution}_{size},{m3u8_url} +#OUT,{savepath} +#DECMETHOD,ECB +#KEY,{key} +{title}_{resolution}_{size},{m3u8_url} ''' with open("{}.txt".format(title), "a", encoding="gbk") as f: f.write(txt)