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

Add game_info to getInfo() and category to getBasicInfo() #333

Merged
merged 1 commit into from
Mar 3, 2023
Merged

Add game_info to getInfo() and category to getBasicInfo() #333

merged 1 commit into from
Mar 3, 2023

Conversation

Rydann
Copy link
Contributor

@Rydann Rydann commented Mar 3, 2023

Description

Adds game info support to getInfo() and the in my opinion missing basic info category to getBasicInfo().

const yt = await Innertube.create({ cache: new UniversalCache(false), generate_session_locally: true });
const info = await yt.getInfo('bhpwmmr_aEQ');

console.log(info?.game_info?.title.toString(), info?.game_info?.release_year.toString());

Output:

Yu-Gi-Oh! Master Duel 2022

Type of change

  • [ x ] New feature (non-breaking change which adds functionality)

Checklist:

  • [ x ] My code follows the style guidelines of this project
  • [ x ] I have performed a self-review of my own code
  • [ x ] My changes generate no new warnings
  • [ x ] I have checked my code and corrected any misspellings

@LuanRT
Copy link
Owner

LuanRT commented Mar 3, 2023

Thanks!

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.

2 participants