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

feat(parser): Add EomSettingsDisclaimer node #703

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

dnicolson
Copy link
Contributor

This is needed when the cookie option is used in Node.js:

const youtube = await Innertube.create({
	cookie: 'xxx',
});

const history = await youtube.getHistory()
console.log(history.feed_actions.contents.at(-1))
EomSettingsDisclaimer {
  type: 'EomSettingsDisclaimer',
  disclaimer: Text {
    runs: [ [TextRun], [TextRun], [TextRun] ],
    text: 'These settings are not available because of your current cookies selections. If you prefer to turn on your watch & search history, you can do so by managing your cookies at any time.'
  },
  info_icon: { icon_type: 'INFO' },
  usage_scenario: 'EOM_EXIT'
}

Interestingly, valid browser cookies give a different response but no history:

EomSettingsDisclaimer {
  type: 'EomSettingsDisclaimer',
  disclaimer: Text {
    runs: [ [TextRun], [TextRun], [TextRun] ],
    text: 'You can manage your cookies, including rejecting them, at any time'
  },
  info_icon: { icon_type: 'INFO' },
  usage_scenario: 'EOM_REENTRY'
}

@LuanRT LuanRT changed the title Add EomSettingsDisclaimer parser feat(parser): Add EomSettingsDisclaimer parser Jul 26, 2024
@LuanRT LuanRT changed the title feat(parser): Add EomSettingsDisclaimer parser feat(parser): Add EomSettingsDisclaimer node Jul 26, 2024
@LuanRT LuanRT merged commit a9bf225 into LuanRT:main Jul 26, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants