bakapear / ytt

YouTubeTools
MIT License
6 stars 1 forks source link

query continuation not working anymore #7

Closed bakapear closed 3 years ago

bakapear commented 3 years ago

search.items.continuation is always false:

let search = await ytt.query('ducks making very weird noises')
console.log(search.items.length) // 20
if (search.items.continuation) await search.items.more()
console.log(search.items.length) // 20

Because continuations[0].nextContinuationData.continuation does not exist anymore:

https://github.com/bakapear/ytt/blob/5c8c63442f809fd23192bb136d7e087afb3de44f/src/lib/builder.js#L57 https://github.com/bakapear/ytt/blob/5c8c63442f809fd23192bb136d7e087afb3de44f/src/lib/builder.js#L268

We could replace it with continuationItemRenderer.continuationCommand.token, however currently it gives the same items back and not the next ones.

Scrolling down the YouTube results page reveals that they've changed the way results get fetched. The request uses the offical YouTube API now and requires an API key. (disable_polymer not working anymore either)

Looking for possible workarounds...

(playlist continuation works fine though, because a continuations object is provided)