1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-22 16:08:58 +00:00

[cleanup] Misc

This commit is contained in:
pukkandan
2023-07-06 20:09:42 +05:30
parent fa44802809
commit 337734d4a8
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')