Add files via upload

old
Tontonnow 1 year ago committed by GitHub
parent 4ab9965c21
commit 210df982c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      iqy.py
  2. 12
      yk.py

@ -4,8 +4,8 @@ import time
from urllib import parse from urllib import parse
import requests import requests
from tabulate import tabulate from tabulate import tabulate
from pywidevineb.L3.cdm import deviceconfig from pywidevine.L3.cdm import deviceconfig
from pywidevineb.L3.decrypt.wvdecryptcustom import WvDecrypt from pywidevine.L3.decrypt.wvdecryptcustom import WvDecrypt
from tools import dealck, md5, get_size, get_pssh from tools import dealck, md5, get_size, get_pssh

12
yk.py

@ -5,8 +5,8 @@ from urllib.parse import parse_qsl, urlsplit
import base64 import base64
from Crypto.Cipher import AES from Crypto.Cipher import AES
from tabulate import tabulate from tabulate import tabulate
from pywidevineb.L3.cdm import deviceconfig from pywidevine.L3.cdm import deviceconfig
from pywidevineb.L3.decrypt.wvdecryptcustom import WvDecrypt from pywidevine.L3.decrypt.wvdecryptcustom import WvDecrypt
from tools import get_pssh, dealck from tools import get_pssh, dealck
requests = requests.Session() requests = requests.Session()
@ -142,10 +142,10 @@ class YouKu:
cmd = f"{common_args} --key {key} -M format=mp4" cmd = f"{common_args} --key {key} -M format=mp4"
else: else:
txt = f''' txt = f'''
#OUT,{savepath} #OUT,{savepath}
#DECMETHOD,ECB #DECMETHOD,ECB
#KEY,{key} #KEY,{key}
{title}_{resolution}_{size},{m3u8_url} {title}_{resolution}_{size},{m3u8_url}
''' '''
with open("{}.txt".format(title), "a", encoding="gbk") as f: with open("{}.txt".format(title), "a", encoding="gbk") as f:
f.write(txt) f.write(txt)

Loading…
Cancel
Save