diff options
author | Rogério Brito <rbrito@ime.usp.br> | 2017-10-19 15:23:56 -0200 |
---|---|---|
committer | Rogério Brito <rbrito@ime.usp.br> | 2017-10-19 15:23:56 -0200 |
commit | 4eb7d8923b3bad26edab01df0fd2650b0563ea8b (patch) | |
tree | 81f0d88e27bf31e2b6946f914f904136a720d06a /youtube_dl/extractor/theplatform.py | |
parent | 00368b4c3a5d4e909e1b7ecfc4030bf28da020f3 (diff) | |
download | youtube-dl-4eb7d8923b3bad26edab01df0fd2650b0563ea8b.zip youtube-dl-4eb7d8923b3bad26edab01df0fd2650b0563ea8b.tar.gz youtube-dl-4eb7d8923b3bad26edab01df0fd2650b0563ea8b.tar.bz2 |
New upstream version 2017.10.15.1
Diffstat (limited to 'youtube_dl/extractor/theplatform.py')
-rw-r--r-- | youtube_dl/extractor/theplatform.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/theplatform.py b/youtube_dl/extractor/theplatform.py index de236bb..b1a985f 100644 --- a/youtube_dl/extractor/theplatform.py +++ b/youtube_dl/extractor/theplatform.py @@ -216,7 +216,7 @@ class ThePlatformIE(ThePlatformBaseIE, AdobePassIE): def hex_to_bytes(hex): return binascii.a2b_hex(hex.encode('ascii')) - relative_path = re.match(r'https?://link.theplatform.com/s/([^?]+)', url).group(1) + relative_path = re.match(r'https?://link\.theplatform\.com/s/([^?]+)', url).group(1) clear_text = hex_to_bytes(flags + expiration_date + str_to_hex(relative_path)) checksum = hmac.new(sig_key.encode('ascii'), clear_text, hashlib.sha1).hexdigest() sig = flags + expiration_date + checksum + str_to_hex(sig_secret) |