From 9070d55b82eea33c009b792ae2fd10d6ba686050 Mon Sep 17 00:00:00 2001 From: sceext Date: Thu, 24 Sep 2015 15:32:56 +0800 Subject: [PATCH] [iqiyi] simplify mix() function --- src/you_get/extractors/iqiyi.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/you_get/extractors/iqiyi.py b/src/you_get/extractors/iqiyi.py index b34cd67a..53f7e9a8 100644 --- a/src/you_get/extractors/iqiyi.py +++ b/src/you_get/extractors/iqiyi.py @@ -45,14 +45,10 @@ bid meaning for quality ''' def mix(tvid): - enc = [] - enc.append('eac64f22daf001da6ba9aa8da4d501508bbe90a4d4091fea3b0582a85b38c2cc') + salt = 'a6f2a01ab9ad4510be0449fab528b82c' tm = str(randint(2000,4000)) - src = 'eknas' - enc.append(str(tm)) - enc.append(tvid) - sc = hashlib.new('md5',bytes(("".join(enc))[1:64:2]+tm+tvid,'utf-8')).hexdigest() - return tm,sc,src + sc = hashlib.new('md5', bytes(salt + tm + tvid, 'utf-8')).hexdigest() + return tm, sc, 'eknas' def getVRSXORCode(arg1,arg2): loc3=arg2 %3