Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Add isVerified boolean to channel info #11

Merged
merged 1 commit into from
Jan 11, 2021
Merged

Conversation

chrrs
Copy link
Contributor

@chrrs chrrs commented Dec 31, 2020

I needed this for a personal project, and thought why not contribute it to the main repository.

Anyways, this PR adds a boolean to the channel info for if the channel is verified, by looking at the returned json's badges and checking if there's one that says 'Verified'.

I looked at modifying the tests for this change, but it seems those are a bit out of date, so I didn't do that. I did update the README though.

Copy link
Member

@PrestonN PrestonN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the delays on this. Thank you very much for the contribution. I'll get this published to NPM here shortly.

@PrestonN PrestonN merged commit 745e96f into FreeTubeApp:master Jan 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants