-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
node-ytsr deprecated and broken for certain inputs #1000
Comments
command was /play https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M |
Apparently the module throwing this error is now deprecated, happy to accept a PR replacing this. Otherwise I may be able to get to it this weekend. |
It does seem to still work for most tracks. |
Distube's fork of |
What's the status on this? I set up the bot yesterday and it crashes after a single song every time. (Would try and PR myself but I currently have no time :/) |
/home/container/node_modules/ytsr/lib/parseItem.js:415
rawItems = (obj.content.verticalListRenderer || obj.content.horizontalMovieListRenderer).items;
^
TypeError: Cannot read properties of undefined (reading 'items')
at parseShelf (/home/container/node_modules/ytsr/lib/parseItem.js:415:94)
at parseItem (/home/container/node_modules/ytsr/lib/parseItem.js:32:14)
at catchAndLogFunc (/home/container/node_modules/ytsr/lib/parseItem.js:90:12)
at module.exports (/home/container/node_modules/ytsr/lib/parseItem.js:119:46)
at (/home/container/node_modules/ytsr/lib/main.js:53:34)
at Array.map ()
at module.exports (/home/container/node_modules/ytsr/lib/main.js:53:25)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at KeyValueCacheProvider.wrap (/home/container/src/services/key-value-cache.ts:53:20)
/********************************************************************************************************************************************************************************************************
failed at func parseItem: Cannot read properties of undefined (reading 'items')
pls post the the files in /home/container/node_modules/ytsr/dumps to https://github.com/TimeForANinja/node-ytsr/issues
os: linux-x64, node.js: v16.20.2, ytsr: 3.8.4
/home/container/node_modules/ytsr/lib/parseItem.js:415
rawItems = (obj.content.verticalListRenderer || obj.content.horizontalMovieListRenderer).items;
^
TypeError: Cannot read properties of undefined (reading 'items')
at parseShelf (/home/container/node_modules/ytsr/lib/parseItem.js:415:94)
at parseItem (/home/container/node_modules/ytsr/lib/parseItem.js:32:14)
at catchAndLogFunc (/home/container/node_modules/ytsr/lib/parseItem.js:90:12)
at module.exports (/home/container/node_modules/ytsr/lib/parseItem.js:119:46)
at (/home/container/node_modules/ytsr/lib/main.js:53:34)
at Array.map ()
at module.exports (/home/container/node_modules/ytsr/lib/main.js:53:25)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at KeyValueCacheProvider.wrap (/home/container/src/services/key-value-cache.ts:53:20)
/
failed at func parseItem: Cannot read properties of undefined (reading 'items')
pls post the the files in /home/container/node_modules/ytsr/dumps to https://github.com/TimeForANinja/node-ytsr/issues
os: linux-x64, node.js: v16.20.2, ytsr: 3.8.4
********************************************************************************************************************************************************************************************************\
The text was updated successfully, but these errors were encountered: