nficano commited on
Commit
c7216c9
·
1 Parent(s): c810084
Files changed (1) hide show
  1. pytube/cipher.py +5 -3
pytube/cipher.py CHANGED
@@ -190,9 +190,11 @@ def map_functions(js_func):
190
  ('{\w\.splice\(0,\w\)}', splice),
191
  # function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c}
192
  ('{var\s\w=\w\[0\];\w\[0\]=\w\[\w\%\w.length\];\w\[\w\]=\w}', swap),
193
- # function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}
194
- ('{var\s\w=\w\[0\];\w\[0\]=\w\[\w\%\w.length\];\w\[\w\%\w.length\]=\w}', swap),
195
-
 
 
196
  )
197
 
198
  for pattern, fn in mapper:
 
190
  ('{\w\.splice\(0,\w\)}', splice),
191
  # function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c}
192
  ('{var\s\w=\w\[0\];\w\[0\]=\w\[\w\%\w.length\];\w\[\w\]=\w}', swap),
193
+ # function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}
194
+ (
195
+ '{var\s\w=\w\[0\];\w\[0\]=\w\[\w\%\w.length\];'
196
+ '\w\[\w\%\w.length\]=\w}', swap,
197
+ ),
198
  )
199
 
200
  for pattern, fn in mapper: