File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,14 @@ def n_to_n(js, n):
82
82
# Xka - https://www.youtube.com/s/player/dc0c6770/player_ias.vflset/sv_SE/base.js
83
83
# jma - https://www.youtube.com/s/player/8d9f6215/player_ias.vflset/sv_SE/base.js
84
84
f1 = match1 (js , r',[$\w]+\.length\|\|([$\w]+)\(""\)\)}};' )
85
+
86
+ # Examples:
87
+ # Yla, ida - https://www.youtube.com/s/player/fb725ac8/player-plasma-ias-phone-sv_SE.vflset/base.js
88
+ # Hla, eda - https://www.youtube.com/s/player/2f238d39/player-plasma-ias-phone-en_US.vflset/base.js
89
+ if not f1 :
90
+ f0 = match1 (js , r'c=([$\w]+)\[0\]\(c\),a\.set\(b,c\)' )
91
+ f1 = match1 (js , r'%s=\[([$\w]+)\]' % f0 )
92
+
85
93
f1def = match1 (js , r'\W%s=(function\(\w+\).+?\)});' % re .escape (f1 ))
86
94
n = dukpy .evaljs ('(%s)("%s")' % (f1def , n ))
87
95
return n
@@ -186,7 +194,7 @@ def check_playability_response(self, ytInitialPlayerResponse):
186
194
)
187
195
188
196
def prepare (self , ** kwargs ):
189
- self .ua = 'Mozilla/5.0 (Linux; Android 14 ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127 .0.6533.103 Mobile Safari/537.36'
197
+ self .ua = 'Mozilla/5.0 (Linux; Android 15 ) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130 .0.6723.73 Mobile Safari/537.36'
190
198
191
199
assert self .url or self .vid
192
200
You can’t perform that action at this time.
0 commit comments