Skip to content

Commit

Permalink
Merge pull request #57 from gatecrasher777/bugfix
Browse files Browse the repository at this point in the history
Bugfix - n-transform extraction ambiguity
  • Loading branch information
gatecrasher777 authored Jul 13, 2023
2 parents ad93ccd + 1b16ebe commit 2e298ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Player extends Model {
extractNCode() {
let fname = ut.pinch(this.data, '&&(b=a.get("n"))&&(b=', '(b)', 0, 0, '', false);
if (fname.indexOf('[') !== -1) {
fname = ut.pinch(this.data, `${fname.split('[')[0]}=[`, ']', 0, 0, '', false);
fname = ut.pinch(this.data, `var ${fname.split('[')[0]}=[`, ']', 0, 0, '', false);
}
let ffunc = `${fname}=function(a)`;
ffunc = `var ${ut.traverse(this.data, ffunc)}`;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ytcog",
"version": "2.5.0",
"version": "2.5.1",
"description": "YouTube innertube class library for node-js; session, player, searches, channels, playlists, videos and downloads.",
"main": "./lib/index.js",
"repository": {
Expand Down

0 comments on commit 2e298ae

Please sign in to comment.