1
0
Fork 0

[cleanup] Misc

This commit is contained in:
pukkandan 2023-07-06 20:09:42 +05:30
commit 337734d4a8
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
10 changed files with 13 additions and 13 deletions

View file

@ -22,7 +22,7 @@ class VShareIE(InfoExtractor):
packed = self._search_regex(
r'(eval\(function.+)', webpage, 'packed code')
unpacked = decode_packed_codes(packed)
digits = self._search_regex(r'\[((?:\d+,?)+)\]', unpacked, 'digits')
digits = self._search_regex(r'\[([\d,]+)\]', unpacked, 'digits')
digits = [int(digit) for digit in digits.split(',')]
key_digit = self._search_regex(
r'fromCharCode\(.+?(\d+)\)}', unpacked, 'key digit')