lib/onebox/engine/youtube_onebox.rb in onebox-1.8.70 vs lib/onebox/engine/youtube_onebox.rb in onebox-1.8.71

- old
+ new

@@ -129,9 +129,12 @@ if params.include?('loop') p['loop'] = 1 p['playlist'] = video_id end + # https://developers.google.com/youtube/player_parameters#rel + p['rel'] = 0 if params.include?('rel') + URI.encode_www_form(p) end def parse_timestring(string) if string =~ /(\d+h)?(\d+m)?(\d+s?)?/