-
Notifications
You must be signed in to change notification settings - Fork 2
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
Remove all except cards and endscreens #32
base: master
Are you sure you want to change the base?
Conversation
YouTube removed annotations (except cards and endscreens) on January 15, 2019. Remove unnecessary code
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.
Comments are just on some small things. LGTM
@@ -56,34 +48,17 @@ def json_to_annotations(json) | |||
|
|||
def annotation_class(data) | |||
case data['style'] |
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.
Can these nested conditionals be simplified now? Seems like it could just be
if data['style'] == 'branding'
Annotations::Branding
else
Annotations::Card
end
expect(annotations[3].link[:type]).to be :website | ||
expect(annotations[3].link[:new_window]).to be true | ||
|
||
expect(annotations[4]).to be_a Yt::Annotations::Branding |
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.
This is a preexisting thing, but I'd prefer we tested this via behavior.
closes #30