Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkfkan committed Jul 25, 2024
1 parent 6db2b40 commit 5312f62
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 17 deletions.
6 changes: 3 additions & 3 deletions bundle/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -14741,7 +14741,7 @@ __name(sha1Hash, "sha1Hash");
// dist/package.json
var package_default = {
name: "volumio-youtubei.js",
version: "0.3.7",
version: "0.3.8",
description: "Modified version of YouTube.js library for use with Volumio's YouTube Music plugin.",
type: "module",
types: "./dist/src/platform/lib.d.ts",
Expand Down Expand Up @@ -21020,9 +21020,9 @@ var Player = class {
return `function descramble_sig(a) { a = a.split(""); let ${obj_name}={${functions}}${calls} return a.join("") } descramble_sig(sig);`;
}
static extractNSigSourceCode(data2) {
let sc = getStringBetweenStrings(data2, 'b=a.split("")', '}return b.join("")}');
let sc = getStringBetweenStrings(data2, 'b=String.prototype.split.call(a,"")', '}return b.join("")}');
if (sc)
return `function descramble_nsig(a) { let b=a.split("")${sc}} return b.join(""); } descramble_nsig(nsig)`;
return `function descramble_nsig(a) { let b=String.prototype.split.call(a,"")${sc}} return b.join(""); } descramble_nsig(nsig)`;
sc = getStringBetweenStrings(data2, 'b=String.prototype.split.call(a,"")', '}return Array.prototype.join.call(b,"")}');
if (sc)
return `function descramble_nsig(a) { let b=String.prototype.split.call(a, "")${sc}} return Array.prototype.join.call(b, ""); } descramble_nsig(nsig)`;
Expand Down
2 changes: 1 addition & 1 deletion bundle/browser.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions bundle/browser.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/browser.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions bundle/node.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -23016,9 +23016,9 @@ var Player = class {
return `function descramble_sig(a) { a = a.split(""); let ${obj_name}={${functions}}${calls} return a.join("") } descramble_sig(sig);`;
}
static extractNSigSourceCode(data) {
let sc = getStringBetweenStrings(data, 'b=a.split("")', '}return b.join("")}');
let sc = getStringBetweenStrings(data, 'b=String.prototype.split.call(a,"")', '}return b.join("")}');
if (sc)
return `function descramble_nsig(a) { let b=a.split("")${sc}} return b.join(""); } descramble_nsig(nsig)`;
return `function descramble_nsig(a) { let b=String.prototype.split.call(a,"")${sc}} return b.join(""); } descramble_nsig(nsig)`;
sc = getStringBetweenStrings(data, 'b=String.prototype.split.call(a,"")', '}return Array.prototype.join.call(b,"")}');
if (sc)
return `function descramble_nsig(a) { let b=String.prototype.split.call(a, "")${sc}} return Array.prototype.join.call(b, ""); } descramble_nsig(nsig)`;
Expand Down
2 changes: 1 addition & 1 deletion bundle/node.cjs.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/src/core/Player.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/core/Player.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions src/core/Player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,10 @@ export default class Player {
}

static extractNSigSourceCode(data: string): string {
let sc = getStringBetweenStrings(data, 'b=a.split("")', '}return b.join("")}');

let sc = getStringBetweenStrings(data, 'b=String.prototype.split.call(a,"")', '}return b.join("")}');
if (sc)
return `function descramble_nsig(a) { let b=a.split("")${sc}} return b.join(""); } descramble_nsig(nsig)`;

return `function descramble_nsig(a) { let b=String.prototype.split.call(a,"")${sc}} return b.join(""); } descramble_nsig(nsig)`
sc = getStringBetweenStrings(data, 'b=String.prototype.split.call(a,"")', '}return Array.prototype.join.call(b,"")}');

if (sc)
Expand Down

0 comments on commit 5312f62

Please sign in to comment.