-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
API: Add 'authorVerified' field on recommended videos #4562
API: Add 'authorVerified' field on recommended videos #4562
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rv["author_verified"]
is currently returning as a string instead of a bool.
You'll have to modify the video.related_videos
property as well as each attribute under it is currently converted into a string.
invidious/src/invidious/videos.cr
Lines 91 to 93 in 08390ac
def related_videos | |
info["relatedVideos"]?.try &.as_a.map { |h| h.as_h.transform_values &.as_s } || [] of Hash(String, String) | |
end |
Other parts of the code assumes that author_verified is a string so I just switched to checking if it's equal to "true" for the api instead of refactoring |
Yes, the HTML side does |
@syeopite One day this will be refactored, but today is not that day x) |
authorVerified
for recommended videos when using the API
#3323