fixed patch to not rely on minified variable names

This commit is contained in:
kaitlynkittyy 2024-04-07 15:09:41 -04:00
parent 4152338ecc
commit 03a180636e

View file

@ -63,8 +63,15 @@ addPatch({
{
find: "x-google-max-bitrate",
replacement: {
match: /"x-google-max-bitrate=".concat\(u\);a===S.Codecs.H264&&\(A\+=";/,
replace: '"x-google-max-bitrate=".concat("80_000");a===S.Codecs.H264&&(A+=";b=AS:800000;'
match: /"x-google-max-bitrate=".concat\(*\)/,
replace: '"x-google-max-bitrate=".concat("80_000")'
}
},
{
find: "x-google-max-bitrate",
replacement: {
match: /;level-asymmetry-allowed=1/,
replace: ";b=AS:800000;level-asymmetry-allowed=1"
}
}
],