From 9779d4ad2710a4b231e08a03ce078d01ad22239d Mon Sep 17 00:00:00 2001 From: Kang-Kyu Lee Date: Thu, 22 Sep 2016 12:36:41 -0700 Subject: [PATCH] add regionCode=US --- lib/yt/annotations/for.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/yt/annotations/for.rb b/lib/yt/annotations/for.rb index a4e127e..078d99a 100644 --- a/lib/yt/annotations/for.rb +++ b/lib/yt/annotations/for.rb @@ -12,7 +12,7 @@ module Yt module Annotations module For def for(video_id) - request = Net::HTTP::Get.new "/annotations_invideo?video_id=#{video_id}" + request = Net::HTTP::Get.new "/annotations_invideo?video_id=#{video_id}®ionCode=US" options = ['www.youtube.com', 443, {use_ssl: true}] response = Net::HTTP.start(*options) {|http| http.request request} xml_to_annotations(Hash.from_xml response.body).sort_by &:starts_at