-
Notifications
You must be signed in to change notification settings - Fork 811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxError: Invalid regular expression: missing / #1131
Comments
Same here. It was working a few hours ago with the same files and version. |
Seems like player nsig descrambling function
Xka = function (a) {
var b = a.split(""),
c = [function () {
for (var d = 64, e = []; ++d - e.length - 32;) switch (d) {
case 58:
d = 96;
continue;
case 91:
d = 44;
break;
case 65:
d = 47;
continue;
case 46:
d = 153;
case 123:
d -= 58;
default:
e.push(String.fromCharCode(d))
}
return e
},
-179078025, -338229892, 1876903987, 761078276, -2142957496,
function (d, e) {
d = (d % e.length + e.length) % e.length;
e.splice(d, 1)
},
function (d, e, f, h, l) {
return e(f, h, l)
},
1863880563, -1446307769, 1338823641, 418803989,
function (d, e) {
for (d = (d % e.length + e.length) % e.length; d--;) e.unshift(e.pop())
},
794127342, 1631485018, -1367624514, -179078025, "mjVhn", 969121859, 969121859, "while", 1466130806, -1414338504, 1065490076,
function (d, e, f) {
var h = e.length;
f.forEach(function (l, m, n) {
this.push(n[m] = e[(e.indexOf(l) - e.indexOf(this[m]) + m + h--) % e.length])
}, d.split(""))
},
899502571,
function () {
for (var d = 64, e = []; ++d - e.length - 32;) {
switch (d) {
case 91:
d = 44;
continue;
case 123:
d = 65;
break;
case 65:
d -= 18;
continue;
case 58:
d = 96;
continue;
case 46:
d = 95
}
e.push(String.fromCharCode(d))
}
return e
},
-1150284080, ",\",';,[", 1, 3, null, "yzljiC", 761078276, 1899843280, -1083939750, 4, 1673880209, 912775572, 0, 6360865, -774686699, -1792529432, "z6iCy3-", 827595161,
function () {
for (var d = 64, e = []; ++d - e.length - 32;) switch (d) {
case 46:
d = 95;
default:
e.push(String.fromCharCode(d));
case 94:
case 95:
case 96:
break;
case 123:
d -= 76;
case 92:
case 93:
continue;
case 58:
d = 44;
case 91:
}
return e
},
-1381942510, -838334235,
function (d, e, f, h, l, m, n, p, q) {
return f(n, p, q)
},
b, null, 2068888309, -1058121460,
function (d, e, f, h, l, m) {
return e(h, l, m)
},
function (d) {
for (var e = d.length; e;) d.push(d.splice(--e, 1)[0])
},
-2142957496, -1950261783, "6TPG", -561102166,
function (d, e, f, h, l, m, n, p) {
return e(f, h, l, m, n, p)
},
"RooADZ", 1211065044, -1792534961, "Z9F5L", "RooADZ",
function () {
for (var d = 64, e = []; ++d - e.length - 32;) {
switch (d) {
case 58:
d -= 14;
case 91:
case 92:
case 93:
continue;
case 123:
d = 47;
case 94:
case 95:
case 96:
continue;
case 46:
d = 95
}
e.push(String.fromCharCode(d))
}
return e
},
-1929233002, b, /,][}",],()}(\[)/, 2070160835, 1561177444, "WLj5rG", 1466220618, "p3tDqcw", -1111863405,
function (d) {
d.reverse()
},
"GIUiubS", "NHyWmP", b, 6, -2073883908, -1644137405,
function (d, e, f, h, l, m, n) {
return d(l, m, n)
},
-1260056024, 801002042, 217527420, 686947973,
function (d, e, f, h, l, m, n, p, q, t, w) {
return f(m, n, p, q, t, w)
},
function (d, e) {
d = (d % e.length + e.length) % e.length;
e.splice(-d).reverse().forEach(function (f) {
e.unshift(f)
})
},
271858095, null,
function (d, e) {
e = (e % d.length + d.length) % d.length;
var f = d[0];
d[0] = d[e];
d[e] = f
},
242936683, 1954280329,
function (d, e) {
e = (e % d.length + d.length) % d.length;
d.splice(0, 1, d.splice(e, 1, d[0])[0])
},
-933042511, -1827808213, 88251346, 7, 39714317, -1573123642,
function (d, e) {
e.push(d)
},
-367931876, "qOm9j81", -1637137240, "12GRBB"
];
c[31] = c;
c[50] = c;
c[90] = c;
try {
try {
0 < c[36] ? (((0, c[12])(c[25], c[50]), (0, c[40])((0, c[2])(c[Math.pow(4, 1) + 20667 - 20666]), c[18], c[83], c[74]), c[21])(c[64], c[19]), (0, c[21])(c[83], c[73]), c[45])(c[86 + 16 % Math.pow(5, 2)], c[64]) : (0, c[7])((0, c[60])(c[63], c[26]), c[1], (0, c[61])((0, c[42])(c[104], c[Math.pow(6, 5) - 16 - new Date("31 December 1969 19:08:52 MST") / 1E3]), c[78], c[5], (0, c[99])(), c[103]), c[60], (0, c[-19125 + Math.pow(6, 1) + 19180])((0, c[23])(c[21]), c[60], c[18], c[103]), c[52],
c[15]), c[new Date("Wednesday 31 December 1969 20:01:30 EDT") / 1E3] > -590645 - -246 * Math.pow(7, 4) && ((((0, c[61])((0, c[36])(c[29], c[21]), c[104], c[102]), c[69])((0, c[1])(c[45]), c[14], c[1], c[75]), c[104])(c[78]), c[Math.pow(3, 3) % 64 - -8])(c[34], c[96]), (0, c[53])(c[Math.pow(1, 2) - 8228 - -8320], (0, c[29])(), c[56]), (0, c[53])(c[46], (0, c[74])(), c[78])
} catch (d) {
8 >= c[21] && (0, c[17])(c[60], c[87]), 6 >= c[59] && (c[59] <= new Date("December 31 1969 18:00:09 MDT") / 1E3 && ((0, c[79 + Math.pow(3, 2) % 331])((0, c[11])(c[30], c[249 + -31 * Math.pow(2,
3)]), c[82], (0, c[17])(c[102], c[62]), c[14], (0, c[77])((0, c[35])(c[7], c[1]), (0, c[35])(c[67], c[96]), c[14], (0, c[24])(c[103], c[79]), (0, c[17])(c[96], c[39]), (0, c[14])(c[96], c[43]), c[79], c[103]), c[1], c[90]), {}) || (0, c[77])((0, c[78])((0, c[104])(c[1]), c[83], c[102]), (0, c[35])(c[19], c[79]), c[11], ((0, c[14])(c[1], c[16]), c[new Date("1969-12-31T19:00:11.000-05:00") / 1E3])(c[95], c[24]), (0, c[78])((0, c[53])(c[100], (0, c[29])(), c[1]), c[104], c[79]), (0, c[14])(c[79], c[37]), c[52], c[121 - 120 % Math.pow(7, 5)]))
}
try {
5 >= c[65] && ((0, c[10])((0, c[78])((0, c[78])((0, c[104])(c[60]),
c[53], c[93], (0, c[32])(), c[82]), c[71], c[88], c[14 - 260 % Math.pow(2, 3)]), (0, c[89])(c[new Date("January 01 1970 08:15:27 +0815") / 1E3], c[58]), c[28], (0, c[95])(c[81], c[246 * Math.pow(5, 4) + -153740]), (0, c[28])((0, c[53])(c[34], (0, c[32])(), c[105]), c[95], c[40], c[82]), (0, c[89])(c[82], c[30]), c[92], c[new Date("January 01 1970 08:00:10 +0800") / 1E3], c[62]), 1) || (((0, c[65])(c[100], c[82]), c[53])(c[13], (0, c[77])(), c[new Date("1969-12-31T18:00:10.000-06:00") / 1E3]), ((((0, c[2])(c[4]), c[92])(c[4], c[86]), c[65])(c[98], c[4]), (0, c[23])(c[27]),
c[65])(c[83], c[10]), (0, c[Math.pow(7, 5) % 121 + -56])(c[80], (0, c[32])(), c[10]), c[65])(c[64], c[82])
} catch (d) {
(0, c[71])(c[94], c[82])
} finally {
8 >= c[Math.pow(3, 5) - 15857 + 15662] && (1 < c[85] || (((0, c[28])((0, c[18])((0, c[28])((0, c[53])(c[14], (0, c[77])(), c[82]), c[89], c[27], c[97]), c[28], (0, c[89])(c[27], c[35]), c[71], c[75], c[105]), c[71], c[42], c[new Date("Wednesday December 31 1969 17:01:22 MST") / 1E3]), c[24])((0, c[53])(c[1], (0, c[51])(), c[82]), c[95], (0, c[53])(c[45], (0, c[12])(), c[10]), c[21], c[27]) !== (0, c[53])(c[78], (0, c[12])(),
c[82]), null)) && (0, c[18])((0, c[101])(c[Math.pow(7, 4) % 356 + -170], (0, c[24])((0, c[28])((0, c[92])(c[10], c[56]), c[65], c[43], c[46]), c[54], (0, c[60])(c[15], c[76]), c[22], c[92]), (0, c[Math.pow(4, 4) + -22264 + 22091])(c[44], c[22]), (0, c[87])(c[12324 - Math.pow(2, 1) + -12246], c[19]), c[87], c[25 - Math.pow(4, 1) % 357]), c[49], (0, c[9])(c[87], c[48]), c[6], c[43], c[16])
}
try {
1 < c[103] && (2 < c[56] && ((0, c[71])(c[75], (0, c[69])(), c[16]), 1) || (0, c[3])(c[16], c[73])), (0, c[46])((0, c[89])(c[22], c[Math.pow(1, 3) % 132 + 98]), c[71], c[88], (0, c[69])(), c[16])
} catch (d) {
(c[15] <=
new Date("Wednesday 31 December 1969 20:45:06 -0315") / 1E3 || ((0, c[89])(c[Math.pow(7, 2) + 227 % (new Date("1969-12-31T12:31:43.000-11:30") / 1E3) + -19], c[16]), Math.pow(5, 4) + 124 - new Date("Wednesday 31 December 1969 17:12:29 MST") / 1E3)) && (0, c[3])(c[16], c[33])
}
} catch (d) {
return "enhanced_except_o5YB3On-_w8_" + a
}
return b.join("")
}; And |
if this is the issue |
Found a fix: #1111 Same solution as the previous regex errors. |
Yesterday I upgraded from 4.11.0 to 4.11.1 and my program was running smoothly but today when I try the error appears as above |
Same here.
Thanks, it's working. |
The problem is that cutAfterJS() in util.js is not identifying /,][}",],()}(\[)/ as a regular expression, and thus |
What needs to happen for G**gle developers to stop fucking around with the streams? |
Working, thanks
|
So, do we have to wait for a fix or will I have to fix it my self, if so can someone point me in the right direction |
with
|
Doesn't look likely, that was a separate issue 6 days ago, this is another one. Please reopen. |
As mentioned above the fix in PR #1126
Probably just a small tweak is needed. Do not close this issue. |
Whoever is having this issue, please attach base.js file as well. |
The N-transform function from base.js (same as in OP) Xka=function(a){var b=a.split(""),c=[function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 58:d=96;continue;case 91:d=44;break;case 65:d=47;continue;case 46:d=153;case 123:d-=58;default:e.push(String.fromCharCode(d))}return e},
-179078025,-338229892,1876903987,761078276,-2142957496,function(d,e){d=(d%e.length+e.length)%e.length;e.splice(d,1)},
function(d,e,f,h,l){return e(f,h,l)},
1863880563,-1446307769,1338823641,418803989,function(d,e){for(d=(d%e.length+e.length)%e.length;d--;)e.unshift(e.pop())},
794127342,1631485018,-1367624514,-179078025,"mjVhn",969121859,969121859,"while",1466130806,-1414338504,1065490076,function(d,e,f){var h=e.length;f.forEach(function(l,m,n){this.push(n[m]=e[(e.indexOf(l)-e.indexOf(this[m])+m+h--)%e.length])},d.split(""))},
899502571,function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 91:d=44;continue;case 123:d=65;break;case 65:d-=18;continue;case 58:d=96;continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
-1150284080,",\",';,[",1,3,null,"yzljiC",761078276,1899843280,-1083939750,4,1673880209,912775572,0,6360865,-774686699,-1792529432,"z6iCy3-",827595161,function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 46:d=95;default:e.push(String.fromCharCode(d));case 94:case 95:case 96:break;case 123:d-=76;case 92:case 93:continue;case 58:d=44;case 91:}return e},
-1381942510,-838334235,function(d,e,f,h,l,m,n,p,q){return f(n,p,q)},
b,null,2068888309,-1058121460,function(d,e,f,h,l,m){return e(h,l,m)},
function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
-2142957496,-1950261783,"6TPG",-561102166,function(d,e,f,h,l,m,n,p){return e(f,h,l,m,n,p)},
"RooADZ",1211065044,-1792534961,"Z9F5L","RooADZ",function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 58:d-=14;case 91:case 92:case 93:continue;case 123:d=47;case 94:case 95:case 96:continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
-1929233002,b,/,][}",],()}(\[)/,2070160835,1561177444,"WLj5rG",1466220618,"p3tDqcw",-1111863405,function(d){d.reverse()},
"GIUiubS","NHyWmP",b,6,-2073883908,-1644137405,function(d,e,f,h,l,m,n){return d(l,m,n)},
-1260056024,801002042,217527420,686947973,function(d,e,f,h,l,m,n,p,q,t,w){return f(m,n,p,q,t,w)},
function(d,e){d=(d%e.length+e.length)%e.length;e.splice(-d).reverse().forEach(function(f){e.unshift(f)})},
271858095,null,function(d,e){e=(e%d.length+d.length)%d.length;var f=d[0];d[0]=d[e];d[e]=f},
242936683,1954280329,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(0,1,d.splice(e,1,d[0])[0])},
-933042511,-1827808213,88251346,7,39714317,-1573123642,function(d,e){e.push(d)},
-367931876,"qOm9j81",-1637137240,"12GRBB"];c[31]=c;c[50]=c;c[90]=c;try{try{0<c[36]?(((0,c[12])(c[25],c[50]),(0,c[40])((0,c[2])(c[Math.pow(4,1)+20667-20666]),c[18],c[83],c[74]),c[21])(c[64],c[19]),(0,c[21])(c[83],c[73]),c[45])(c[86+16%Math.pow(5,2)],c[64]):(0,c[7])((0,c[60])(c[63],c[26]),c[1],(0,c[61])((0,c[42])(c[104],c[Math.pow(6,5)-16-new Date("31 December 1969 19:08:52 MST")/1E3]),c[78],c[5],(0,c[99])(),c[103]),c[60],(0,c[-19125+Math.pow(6,1)+19180])((0,c[23])(c[21]),c[60],c[18],c[103]),c[52],
c[15]),c[new Date("Wednesday 31 December 1969 20:01:30 EDT")/1E3]>-590645- -246*Math.pow(7,4)&&((((0,c[61])((0,c[36])(c[29],c[21]),c[104],c[102]),c[69])((0,c[1])(c[45]),c[14],c[1],c[75]),c[104])(c[78]),c[Math.pow(3,3)%64- -8])(c[34],c[96]),(0,c[53])(c[Math.pow(1,2)-8228- -8320],(0,c[29])(),c[56]),(0,c[53])(c[46],(0,c[74])(),c[78])}catch(d){8>=c[21]&&(0,c[17])(c[60],c[87]),6>=c[59]&&(c[59]<=new Date("December 31 1969 18:00:09 MDT")/1E3&&((0,c[79+Math.pow(3,2)%331])((0,c[11])(c[30],c[249+-31*Math.pow(2,
3)]),c[82],(0,c[17])(c[102],c[62]),c[14],(0,c[77])((0,c[35])(c[7],c[1]),(0,c[35])(c[67],c[96]),c[14],(0,c[24])(c[103],c[79]),(0,c[17])(c[96],c[39]),(0,c[14])(c[96],c[43]),c[79],c[103]),c[1],c[90]),{})||(0,c[77])((0,c[78])((0,c[104])(c[1]),c[83],c[102]),(0,c[35])(c[19],c[79]),c[11],((0,c[14])(c[1],c[16]),c[new Date("1969-12-31T19:00:11.000-05:00")/1E3])(c[95],c[24]),(0,c[78])((0,c[53])(c[100],(0,c[29])(),c[1]),c[104],c[79]),(0,c[14])(c[79],c[37]),c[52],c[121-120%Math.pow(7,5)]))}try{5>=c[65]&&((0,c[10])((0,c[78])((0,c[78])((0,c[104])(c[60]),
c[53],c[93],(0,c[32])(),c[82]),c[71],c[88],c[14-260%Math.pow(2,3)]),(0,c[89])(c[new Date("January 01 1970 08:15:27 +0815")/1E3],c[58]),c[28],(0,c[95])(c[81],c[246*Math.pow(5,4)+-153740]),(0,c[28])((0,c[53])(c[34],(0,c[32])(),c[105]),c[95],c[40],c[82]),(0,c[89])(c[82],c[30]),c[92],c[new Date("January 01 1970 08:00:10 +0800")/1E3],c[62]),1)||(((0,c[65])(c[100],c[82]),c[53])(c[13],(0,c[77])(),c[new Date("1969-12-31T18:00:10.000-06:00")/1E3]),((((0,c[2])(c[4]),c[92])(c[4],c[86]),c[65])(c[98],c[4]),(0,c[23])(c[27]),
c[65])(c[83],c[10]),(0,c[Math.pow(7,5)%121+-56])(c[80],(0,c[32])(),c[10]),c[65])(c[64],c[82])}catch(d){(0,c[71])(c[94],c[82])}finally{8>=c[Math.pow(3,5)-15857+15662]&&(1<c[85]||(((0,c[28])((0,c[18])((0,c[28])((0,c[53])(c[14],(0,c[77])(),c[82]),c[89],c[27],c[97]),c[28],(0,c[89])(c[27],c[35]),c[71],c[75],c[105]),c[71],c[42],c[new Date("Wednesday December 31 1969 17:01:22 MST")/1E3]),c[24])((0,c[53])(c[1],(0,c[51])(),c[82]),c[95],(0,c[53])(c[45],(0,c[12])(),c[10]),c[21],c[27])!==(0,c[53])(c[78],(0,c[12])(),
c[82]),null))&&(0,c[18])((0,c[101])(c[Math.pow(7,4)%356+-170],(0,c[24])((0,c[28])((0,c[92])(c[10],c[56]),c[65],c[43],c[46]),c[54],(0,c[60])(c[15],c[76]),c[22],c[92]),(0,c[Math.pow(4,4)+-22264+22091])(c[44],c[22]),(0,c[87])(c[12324-Math.pow(2,1)+-12246],c[19]),c[87],c[25-Math.pow(4,1)%357]),c[49],(0,c[9])(c[87],c[48]),c[6],c[43],c[16])}try{1<c[103]&&(2<c[56]&&((0,c[71])(c[75],(0,c[69])(),c[16]),1)||(0,c[3])(c[16],c[73])),(0,c[46])((0,c[89])(c[22],c[Math.pow(1,3)%132+98]),c[71],c[88],(0,c[69])(),c[16])}catch(d){(c[15]<=
new Date("Wednesday 31 December 1969 20:45:06 -0315")/1E3||((0,c[89])(c[Math.pow(7,2)+227%(new Date("1969-12-31T12:31:43.000-11:30")/1E3)+-19],c[16]),Math.pow(5,4)+124-new Date("Wednesday 31 December 1969 17:12:29 MST")/1E3))&&(0,c[3])(c[16],c[33])}}catch(d){return"enhanced_except_o5YB3On-_w8_"+a}return b.join("")}; |
funny... when i did initial tests the following unit-test passed... it('Tolerant to string with regexes', () => {
assert.strictEqual(
utils.cutAfterJS('{"a": "\\"}1", "b": /,][}",],()}(\\[)/ }abcd'),
'{"a": "\\"}1", "b": /,][}",],()}(\\[)/ }',
);
}); also doing sth as simple as worked (and still works) for me require('.')('xxxx').pipe(fs.createWriteStream('test.mkv')) took some time but i now managed to find a unit-test that fails and will try to provide a fix asap it('Tolerant to string with regexes in arrays', () => {
assert.strictEqual(
utils.cutAfterJS('{"a": [-1929233002,b,/,][}",],()}(\\[)/,2070160835,1561177444]}abcd'),
'{"a": [-1929233002,b,/,][}",],()}(\\[)/,2070160835,1561177444]}',
);
}); |
ok... there's is nothing wrong with my approach... i just screwed up the regex and used |
🎉 This issue has been resolved in version 4.11.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Not really sure the reason behind this, started happening after switching to version 4.11.1 from 4.10.0. Switching back to version 4.10.0 fixed the issue. Not sure about other versions.
Any youtube link supplied will output the error above. This is the only ytdl method I have in my code (except for a few ytdl.validateURL methods):
The variable
videoURL
is supplied with this:https://www.youtube.com/watch?v=${res.data.items[0].id}
where${res.data.items[0].id}
is gotten from using the youtube api. I checked if the output ofytdl.validateURL(videoURL)
is true, which it was every time.The text was updated successfully, but these errors were encountered: