Skip to content
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

5.8.0 header.subtitle failed due to header being undefined in Playlist constructor #464

Closed
4 tasks done
PikachuEXE opened this issue Aug 6, 2023 · 0 comments · Fixed by #465
Closed
4 tasks done
Labels
bug Something isn't working

Comments

@PikachuEXE
Copy link

PikachuEXE commented Aug 6, 2023

Steps to reproduce

  • Save following script into a file e.g. script.js
  • Install youtube.js (I did this in FreeTube project folder)
  • node script.js
const { Innertube } = require('youtubei.js')

async function createInnertube(options = { withPlayer: false, location: undefined, safetyMode: false, clientType: undefined, generateSessionLocally: true }) {
  return await Innertube.create({
    enable_safety_mode: false,
    generate_session_locally: !!options.generateSessionLocally
  })
}

(async () => {
  const innertube = await createInnertube()
  let playlist = await innertube.getPlaylist('PLKkxnBwFOJGKYQo3EGYjE4FhJUbBq_2U5')

  const videos = playlist.items

  while (playlist.has_continuation) {
    playlist = await playlist.getContinuation()

    videos.push(...playlist.items)
  }

  console.info('Done!', videos.length)
})()

Original steps for FT dev

Failure Logs

See Current behavior

Expected behavior

No error thrown

Current behavior

image

Version

Default

Anything else?

Using node 18.6.1 not 18.7.0 due to https://github.com/nodejs/node/issues/48855

Checklist

  • I am running the latest version.
  • I checked the documentation and found no answer.
  • I have searched the existing issues and made sure this is not a duplicate.
  • I have provided sufficient information.
@PikachuEXE PikachuEXE added the bug Something isn't working label Aug 6, 2023
@PikachuEXE PikachuEXE changed the title 5.8.0 <title> 5.8.0 header.subtitle failed due to header being undefined in Playlist constructor Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant