YPBT 0.2.4 → 0.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b3eb896c148e353a917eb3092313b07fe930d4a2
4
- data.tar.gz: 1fe174698eef603e55b78fe858e85cec50b9e21e
2
+ SHA256:
3
+ metadata.gz: 8f5a5e3017e93113351a930caa0ab2a4b9396811694be80d18cadb63d287fa45
4
+ data.tar.gz: 113d7b3ca7401f81fc15f81bc4d7a67c1b9f0cee6307fca4fb76a31fc3b8100e
5
5
  SHA512:
6
- metadata.gz: aa3bc18521d1586bea0bd6cb783756f79e79d7fff7457c357010df89ff288ea54a258bf0e48bc98cb9d82f587548fa5668d4144059608c47ef31ea4708ddc9da
7
- data.tar.gz: aaa676c788b5ae0b7bfd410e4eb12703db85e17950e00f73ca4a4383c7ed7ef73d71ea21608c0532e99d3f4f02851e4d382a1ef7883738e21bd6a95510bc83f5
6
+ metadata.gz: a84b7080d72c75a725b6b2f18835e0ab10336fe6b8c521b4f8193335f01593a494a67c6fc9728882947588c8383701a3bab9580756261615dddd8a88ea81997e
7
+ data.tar.gz: 06a1e0c2f3d2441f8ca0afcfaa1c9391e152007f6ad9824f28055c14a7b0b2fd673403572a1e2f0b44883567ff1f63a6571717383e704c1cf7c3c00f5ec2ea98
@@ -18,6 +18,8 @@ Gem::Specification.new do |s|
18
18
  s.test_files = `git ls-files -- spec/*`.split("\n")
19
19
  s.executables << 'YPBT'
20
20
 
21
+ s.required_ruby_version = '>= 2.6'
22
+
21
23
  s.add_runtime_dependency 'http', '~> 2.0'
22
24
  s.add_runtime_dependency 'ruby-duration', '~>3.2.3'
23
25
  s.add_development_dependency 'minitest', '~> 5.9'
@@ -16,6 +16,7 @@ module YoutubeVideo
16
16
  end
17
17
 
18
18
  def self.output_info(video)
19
+ return 'Nothing found. (Invalid video id or api-key)' if video.nil?
19
20
  title = video.title
20
21
  separator = Array.new(video.title.length) { '-' }.join
21
22
  video_info =
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module YoutubeVideo
4
- VERSION = '0.2.4'
4
+ VERSION = '0.2.10'
5
5
  end
@@ -6,16 +6,21 @@ module YoutubeVideo
6
6
  # Main class to setup a Video
7
7
  class Video
8
8
  attr_reader :title, :description, :dislike_count, :like_count,
9
- :comment_count, :view_count, :duration, :id
9
+ :comment_count, :view_count, :duration, :id, :channel_id,
10
+ :thumbnail_url, :category_id
10
11
 
11
12
  def initialize(data:)
12
13
  @id = data['id']
13
14
  @title = data['snippet']['title']
15
+ @channel_id = data['snippet']['channelId']
14
16
  @description = data['snippet']['description']
17
+ @category_id = data['snippet']['categoryId']
18
+ @thumbnail_url = data['snippet']['thumbnails']['medium']['url']
15
19
  @dislike_count = data['statistics']['dislikeCount'].to_i
16
20
  @like_count = data['statistics']['likeCount'].to_i
17
21
  @view_count = data['statistics']['viewCount'].to_i
18
22
  @duration = data['contentDetails']['duration']
23
+ @is_channel = false
19
24
  end
20
25
 
21
26
  def comments
@@ -25,6 +30,21 @@ module YoutubeVideo
25
30
  @comments = raw_comments.map { |comment| Comment.new(data: comment) }
26
31
  end
27
32
 
33
+ def channel_title
34
+ load_channel_info unless @is_channel
35
+ @channel_title
36
+ end
37
+
38
+ def channel_image_url
39
+ load_channel_info unless @is_channel
40
+ @channel_image_url
41
+ end
42
+
43
+ def channel_description
44
+ load_channel_info unless @is_channel
45
+ @channel_description
46
+ end
47
+
28
48
  def embed_url
29
49
  return @embed_url if @embed_url
30
50
  @embed_url = "https://www.youtube.com/embed/#{@id}"
@@ -34,5 +54,20 @@ module YoutubeVideo
34
54
  video_data = YtApi.video_info(video_id)
35
55
  new(data: video_data) if video_data
36
56
  end
57
+
58
+ def self.find_popular(max_results: 25)
59
+ videos_data = YtApi.popular_videos_info(max_results)
60
+ videos_data.map { |data| new(data: data) } unless videos_data.empty?
61
+ end
62
+
63
+ private
64
+
65
+ def load_channel_info
66
+ channel_data = YtApi.channel_info @channel_id
67
+ @channel_title = channel_data['title'] if channel_data
68
+ @channel_image_url = channel_data['image_url'] if channel_data
69
+ @channel_description = channel_data['description'] if channel_data
70
+ @is_channel = true
71
+ end
37
72
  end
38
73
  end
@@ -5,7 +5,7 @@ require 'json'
5
5
  module YoutubeVideo
6
6
  # Service for all Youtube API calls
7
7
  class YtApi
8
- YT_URL = 'https://www.googleapis.com'
8
+ YT_URL = 'https://youtube.googleapis.com'
9
9
  YT_COMPANY = 'youtube'
10
10
  YT_COMPANY_URL = URI.join(YT_URL, "#{YT_COMPANY}/")
11
11
  API_VER = 'v3'
@@ -21,16 +21,34 @@ module YoutubeVideo
21
21
  end
22
22
 
23
23
  def self.video_info(video_id)
24
- field = 'items(id,snippet(channelId,description,publishedAt,title),'\
24
+ field = 'items(id,'\
25
+ 'snippet(thumbnails(medium),channelId,description,'\
26
+ 'publishedAt,title,categoryId),'\
25
27
  'statistics(likeCount,dislikeCount,viewCount),'\
26
28
  'contentDetails(duration))'
27
29
  video_response = HTTP.get(yt_resource_url('videos'),
28
30
  params: { id: video_id,
29
31
  key: api_key,
30
- part: 'snippet,statistics,
31
- contentDetails',
32
+ part: 'snippet,statistics,'\
33
+ 'contentDetails',
32
34
  fields: field })
33
- JSON.parse(video_response.to_s)['items'].first
35
+ JSON.parse(video_response.to_s)['items']&.first
36
+ end
37
+
38
+ def self.popular_videos_info(max_results = 25)
39
+ field = 'items(id,'\
40
+ 'snippet(thumbnails(medium),channelId,description,'\
41
+ 'publishedAt,title,categoryId),'\
42
+ 'statistics(likeCount,dislikeCount,viewCount),'\
43
+ 'contentDetails(duration))'
44
+ video_response = HTTP.get(yt_resource_url('videos'),
45
+ params: { chart: 'mostpopular',
46
+ key: api_key,
47
+ maxResults: max_results,
48
+ part: 'snippet,statistics,'\
49
+ 'contentDetails',
50
+ fields: field })
51
+ JSON.parse(video_response.to_s)['items']
34
52
  end
35
53
 
36
54
  def self.comment_info(comment_id)
@@ -58,6 +76,23 @@ module YoutubeVideo
58
76
  [next_page_token, comments]
59
77
  end
60
78
 
79
+ def self.channel_info(channel_id)
80
+ fields = 'items(id,snippet(title,description,thumbnails(default(url))))'
81
+ channel_response = HTTP.get(yt_resource_url('channels'),
82
+ params: { id: channel_id,
83
+ key: api_key,
84
+ part: 'snippet',
85
+ fields: fields })
86
+ channel_data = JSON.parse(channel_response.to_s)['items'].first
87
+ if channel_data
88
+ {
89
+ 'title' => channel_data['snippet']['title'],
90
+ 'description' => channel_data['snippet']['description'],
91
+ 'image_url' => channel_data['snippet']['thumbnails']['default']['url']
92
+ }
93
+ end
94
+ end
95
+
61
96
  def self.extract_comment(comment_threads)
62
97
  comments = comment_threads['items'].map do |item|
63
98
  comment = item['snippet']['topLevelComment']['snippet']
@@ -56,5 +56,18 @@ describe 'YtApi specifications' do
56
56
  comments[0].must_be_instance_of Hash
57
57
  comments[0]['textDisplay'].must_match(/[0-9]+:\d+/)
58
58
  end
59
+
60
+ it 'should be able to resolve channel' do
61
+ channel_info = YoutubeVideo::YtApi.channel_info(TEST_CHANEL_ID)
62
+ channel_info.must_be_instance_of Hash
63
+ channel_info['title'].length.must_be :>, 0
64
+ channel_info['description'].length.must_be :>, 0
65
+ channel_info['image_url'].must_match(/https:/)
66
+ end
67
+
68
+ it 'should be able to find popular videos' do
69
+ popular_videos = YoutubeVideo::YtApi.popular_videos_info
70
+ popular_videos.length.must_be :==, 25
71
+ end
59
72
  end
60
73
  end
@@ -7638,4 +7638,828 @@ http_interactions:
7638
7638
  }
7639
7639
  http_version:
7640
7640
  recorded_at: Tue, 15 Nov 2016 19:15:32 GMT
7641
+ - request:
7642
+ method: get
7643
+ uri: https://www.googleapis.com/youtube/v3/channels?fields=items(id,snippet(title,description,thumbnails(default(url))))&id=UCQU5uVTG8h9LToACKrm1LMA&key=<API_KEY>&part=snippet
7644
+ body:
7645
+ encoding: US-ASCII
7646
+ string: ''
7647
+ headers:
7648
+ Connection:
7649
+ - close
7650
+ Host:
7651
+ - www.googleapis.com
7652
+ User-Agent:
7653
+ - http.rb/2.1.0
7654
+ response:
7655
+ status:
7656
+ code: 200
7657
+ message: OK
7658
+ headers:
7659
+ Expires:
7660
+ - Sat, 26 Nov 2016 17:49:03 GMT
7661
+ Date:
7662
+ - Sat, 26 Nov 2016 17:49:03 GMT
7663
+ Cache-Control:
7664
+ - private, max-age=300, must-revalidate, no-transform
7665
+ Etag:
7666
+ - '"5C5HHOaBSHC5ZXfkrT4ZlRCi01A/xfpoAxeRrarRKdINKlWt_uEEMHY"'
7667
+ Vary:
7668
+ - Origin
7669
+ - X-Origin
7670
+ Content-Type:
7671
+ - application/json; charset=UTF-8
7672
+ X-Content-Type-Options:
7673
+ - nosniff
7674
+ X-Frame-Options:
7675
+ - SAMEORIGIN
7676
+ X-Xss-Protection:
7677
+ - 1; mode=block
7678
+ Content-Length:
7679
+ - '373'
7680
+ Server:
7681
+ - GSE
7682
+ Alt-Svc:
7683
+ - quic=":443"; ma=2592000; v="36,35,34"
7684
+ Connection:
7685
+ - close
7686
+ body:
7687
+ encoding: UTF-8
7688
+ string: |
7689
+ {
7690
+ "items": [
7691
+ {
7692
+ "id": "UCQU5uVTG8h9LToACKrm1LMA",
7693
+ "snippet": {
7694
+ "title": "我愛玩很大",
7695
+ "description": "主隊大隊長:吳宗憲\n永久小隊長:KID林柏昇",
7696
+ "thumbnails": {
7697
+ "default": {
7698
+ "url": "https://yt3.ggpht.com/-jOIQ6TK2ZlQ/AAAAAAAAAAI/AAAAAAAAAAA/xOpJCq8pGr0/s88-c-k-no-mo-rj-c0xffffff/photo.jpg"
7699
+ }
7700
+ }
7701
+ }
7702
+ }
7703
+ ]
7704
+ }
7705
+ http_version:
7706
+ recorded_at: Sat, 26 Nov 2016 17:49:02 GMT
7707
+ - request:
7708
+ method: get
7709
+ uri: https://www.googleapis.com/youtube/v3/videos?fields=items(id,snippet(thumbnails(medium),channelId,description,publishedAt,title,categoryId),statistics(likeCount,dislikeCount,viewCount),contentDetails(duration))&id=vJOkR0Xz958&key=<API_KEY>&part=snippet,statistics,%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20contentDetails
7710
+ body:
7711
+ encoding: US-ASCII
7712
+ string: ''
7713
+ headers:
7714
+ Connection:
7715
+ - close
7716
+ Host:
7717
+ - www.googleapis.com
7718
+ User-Agent:
7719
+ - http.rb/2.1.0
7720
+ response:
7721
+ status:
7722
+ code: 200
7723
+ message: OK
7724
+ headers:
7725
+ Expires:
7726
+ - Wed, 14 Dec 2016 18:50:06 GMT
7727
+ Date:
7728
+ - Wed, 14 Dec 2016 18:50:06 GMT
7729
+ Cache-Control:
7730
+ - private, max-age=0, must-revalidate, no-transform
7731
+ Etag:
7732
+ - '"gMxXHe-zinKdE9lTnzKu8vjcmDI/Pikou1IEQB7hEXWsMuCRIhxOkZU"'
7733
+ Vary:
7734
+ - Origin
7735
+ - X-Origin
7736
+ Content-Type:
7737
+ - application/json; charset=UTF-8
7738
+ X-Content-Type-Options:
7739
+ - nosniff
7740
+ X-Frame-Options:
7741
+ - SAMEORIGIN
7742
+ X-Xss-Protection:
7743
+ - 1; mode=block
7744
+ Content-Length:
7745
+ - '1341'
7746
+ Server:
7747
+ - GSE
7748
+ Alt-Svc:
7749
+ - quic=":443"; ma=2592000; v="35,34"
7750
+ Connection:
7751
+ - close
7752
+ body:
7753
+ encoding: UTF-8
7754
+ string: |
7755
+ {
7756
+ "items": [
7757
+ {
7758
+ "id": "vJOkR0Xz958",
7759
+ "snippet": {
7760
+ "publishedAt": "2016-10-16T14:00:03.000Z",
7761
+ "channelId": "UCQU5uVTG8h9LToACKrm1LMA",
7762
+ "title": "桂河邊的逆襲!福利滿滿滿!!綜藝玩很大 x OPPO 【第五十九回 泰國 桂河】20161015【第115集完整版】",
7763
+ "description": "史上玩最大的外景節目!!點選以下連結訂閱吧!!絕對讓你開心一整天\nhttps://goo.gl/RZ9nBT\n\n跟著OPPO玩很大:\n【OPPO F1s 自拍美顏機】\nhttps://www.youtube.com/watch?v=Zgt06Ybe_wo\n【OPPO F1s 極速指紋辨識】\nhttps://www.youtube.com/watch?v=oIabypUK0tM\n【OPPO R9|R9 Plus 楊冪秘密武器VOOC閃充】\nhttps://www.youtube.com/watch?v=upGq1TLeySc\n【OPPO R9 無敵自拍 最強閃充】\nhttps://www.youtube.com/watch?v=rXsl96nGinc\n【OPPO引領自拍風潮】\nhttps://www.youtube.com/watch?v=URI0L_YERFk\n\n更多精采獨家!只有Vidol看的到!!\nVidol在我手!明星跟著走!\nhttp://vidol.tv/",
7764
+ "thumbnails": {
7765
+ "medium": {
7766
+ "url": "https://i.ytimg.com/vi/vJOkR0Xz958/mqdefault.jpg",
7767
+ "width": 320,
7768
+ "height": 180
7769
+ }
7770
+ },
7771
+ "categoryId": "24"
7772
+ },
7773
+ "contentDetails": {
7774
+ "duration": "PT1H35M21S"
7775
+ },
7776
+ "statistics": {
7777
+ "viewCount": "1274226",
7778
+ "likeCount": "1742",
7779
+ "dislikeCount": "182"
7780
+ }
7781
+ }
7782
+ ]
7783
+ }
7784
+ http_version:
7785
+ recorded_at: Wed, 14 Dec 2016 18:50:08 GMT
7786
+ - request:
7787
+ method: get
7788
+ uri: https://www.googleapis.com/youtube/v3/videos?chart=mostpopular&fields=items(id,snippet(thumbnails(medium),channelId,description,publishedAt,title,categoryId),statistics(likeCount,dislikeCount,viewCount),contentDetails(duration))&key=<API_KEY>&maxResults=25&part=snippet,statistics,%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20contentDetails
7789
+ body:
7790
+ encoding: US-ASCII
7791
+ string: ''
7792
+ headers:
7793
+ Connection:
7794
+ - close
7795
+ Host:
7796
+ - www.googleapis.com
7797
+ User-Agent:
7798
+ - http.rb/2.1.0
7799
+ response:
7800
+ status:
7801
+ code: 200
7802
+ message: OK
7803
+ headers:
7804
+ Expires:
7805
+ - Wed, 14 Dec 2016 18:50:18 GMT
7806
+ Date:
7807
+ - Wed, 14 Dec 2016 18:50:18 GMT
7808
+ Cache-Control:
7809
+ - private, max-age=0, must-revalidate, no-transform
7810
+ Etag:
7811
+ - '"gMxXHe-zinKdE9lTnzKu8vjcmDI/NzYohE7E7A9AQk4yEcRsKHUWlmI"'
7812
+ Vary:
7813
+ - Origin
7814
+ - X-Origin
7815
+ Content-Type:
7816
+ - application/json; charset=UTF-8
7817
+ X-Content-Type-Options:
7818
+ - nosniff
7819
+ X-Frame-Options:
7820
+ - SAMEORIGIN
7821
+ X-Xss-Protection:
7822
+ - 1; mode=block
7823
+ Content-Length:
7824
+ - '40659'
7825
+ Server:
7826
+ - GSE
7827
+ Alt-Svc:
7828
+ - quic=":443"; ma=2592000; v="35,34"
7829
+ Connection:
7830
+ - close
7831
+ body:
7832
+ encoding: UTF-8
7833
+ string: |
7834
+ {
7835
+ "items": [
7836
+ {
7837
+ "id": "AFxCO_DyzYM",
7838
+ "snippet": {
7839
+ "publishedAt": "2016-12-14T06:32:59.000Z",
7840
+ "channelId": "UCJ0uqCI0Vqr2Rrt1HseGirg",
7841
+ "title": "Bruno Mars Carpool Karaoke",
7842
+ "description": "James Corden and Bruno Mars drive through Los Angeles singing his hits, including tracks from the new album \"24K Magic,\" and chat about everything from Elvis to poker. Get Bruno Mars' new album '24K Magic' out now: https://brunom.rs/24kMagic\n\nStream ’24K Magic’\nSpotify: https://brunom.rs/24kMagicStream\nApple Music: https://brunom.rs/24kmagicAM\n\nDownload ’24K Magic’\niTunes: https://brunom.rs/24kMagic\nAmazon: https://brunom.rs/24kmagicamazon\nGoogle Play: https://brunom.rs/24kmagicGP\n\nConnect with Bruno:\nhttp://www.brunomars.com\nhttp://www.instagram.com/brunomars\nhttp://www.twitter.com/brunomars\nhttp://www.facebook.com/brunomars\n\n\n\"Subscribe To \"\"The Late Late Show\"\" Channel HERE: http://bit.ly/CordenYouTube\nWatch Full Episodes of \"\"The Late Late Show\"\" HERE: http://bit.ly/1ENyPw4\nLike \"\"The Late Late Show\"\" on Facebook HERE: http://on.fb.me/19PIHLC\nFollow \"\"The Late Late Show\"\" on Twitter HERE: http://bit.ly/1Iv0q6k\nFollow \"\"The Late Late Show\"\" on Google+ HERE: http://bit.ly/1N8a4OU\n\nWatch The Late Late Show with James Corden weeknights at 12:35 AM ET/11:35 PM CT. Only on CBS.\n\nGet the CBS app for iPhone & iPad! Click HERE: http://bit.ly/12rLxge\n\nGet new episodes of shows you love across devices the next day, stream live TV, and watch full seasons of CBS fan favorites anytime, anywhere with CBS All Access. Try it free! http://bit.ly/1OQA29B\n\n---\nEach week night, THE LATE LATE SHOW with JAMES CORDEN throws the ultimate late night after party with a mix of celebrity guests, edgy musical acts, games and sketches. Corden differentiates his show by offering viewers a peek behind-the-scenes into the green room, bringing all of his guests out at once and lending his musical and acting talents to various sketches. Additionally, bandleader Reggie Watts and the house band provide original, improvised music throughout the show. Since Corden took the reigns as host in March 2015, he has quickly become known for generating buzzworthy viral videos, such as Carpool Karaoke.\"",
7843
+ "thumbnails": {
7844
+ "medium": {
7845
+ "url": "https://i.ytimg.com/vi/AFxCO_DyzYM/mqdefault.jpg",
7846
+ "width": 320,
7847
+ "height": 180
7848
+ }
7849
+ },
7850
+ "categoryId": "24"
7851
+ },
7852
+ "contentDetails": {
7853
+ "duration": "PT15M25S"
7854
+ },
7855
+ "statistics": {
7856
+ "viewCount": "490758",
7857
+ "likeCount": "246356",
7858
+ "dislikeCount": "1376"
7859
+ }
7860
+ },
7861
+ {
7862
+ "id": "8Gjn0ObXWak",
7863
+ "snippet": {
7864
+ "publishedAt": "2016-12-13T19:20:05.000Z",
7865
+ "channelId": "UClOf1XXinvZsy4wKPAkro2A",
7866
+ "title": "[NEW SEASONAL EVENT] Welcome to Overwatch's Winter Wonderland!",
7867
+ "description": "It's lookin’ downright festive in these parts: http://blizz.ly/OWW2016\n\nThe season of giving (and receiving) is here, and we’re ready to celebrate. From now until January 2, every day is a snow day in Overwatch! Unwrap all new holiday-themed loot, take a stroll through the decked halls of Hanamura and King's Row, and put your enemies on ice in our latest brawl: Mei’s Snowball Offensive.\n\nBegin Your Watch: http://blizz.ly/BuyOverwatch\nLike Us on Facebook: http://www.facebook.com/playoverwatch\nFollow Us on Twitter: http://www.twitter.com/playoverwatch\nFollow us on Instagram: https://www.instagram.com/playoverwatch",
7868
+ "thumbnails": {
7869
+ "medium": {
7870
+ "url": "https://i.ytimg.com/vi/8Gjn0ObXWak/mqdefault.jpg",
7871
+ "width": 320,
7872
+ "height": 180
7873
+ }
7874
+ },
7875
+ "categoryId": "20"
7876
+ },
7877
+ "contentDetails": {
7878
+ "duration": "PT1M33S"
7879
+ },
7880
+ "statistics": {
7881
+ "viewCount": "755293",
7882
+ "likeCount": "34323",
7883
+ "dislikeCount": "628"
7884
+ }
7885
+ },
7886
+ {
7887
+ "id": "ETpiA8ych30",
7888
+ "snippet": {
7889
+ "publishedAt": "2016-12-12T13:30:01.000Z",
7890
+ "channelId": "UC-FQUIVQ-bZiefzBiQAa8Fw",
7891
+ "title": "Jennifer Lawrence & Chris Pratt Insult Each Other | CONTAINS STRONG LANGUAGE!",
7892
+ "description": "For more, head over to Radio 1 on BBC iPlayer http://bit.ly/Radio1BBCiPlayer\n\n\"I recently told you that you act like Adele sings. I hate Adele.\" - Passengers stars Jennifer Lawrence & Chris Pratt take it in turns to INSULT EACH OTHER in the Playground Insults game on Scott Mills’ radio show on BBC Radio 1.\n\nWho will win when two Hollywood superstars rip each other apart?\n\nListen to Scott Mills and Chris Stark on BBC Radio 1, weekdays 1-4pm.\n\nPassengers is out on December 21st 2016 in the UK.\nFacebook: http://bit.ly/BBCR1facebook\nTwitter: http://bit.ly/BBCR1twitter\nInstagram: http://bit.ly/BBCR1instagram\nVine: http://bit.ly/BBCR1vine\nWebsite: http://bit.ly/BBCR1website",
7893
+ "thumbnails": {
7894
+ "medium": {
7895
+ "url": "https://i.ytimg.com/vi/ETpiA8ych30/mqdefault.jpg",
7896
+ "width": 320,
7897
+ "height": 180
7898
+ }
7899
+ },
7900
+ "categoryId": "1"
7901
+ },
7902
+ "contentDetails": {
7903
+ "duration": "PT4M52S"
7904
+ },
7905
+ "statistics": {
7906
+ "viewCount": "5343463",
7907
+ "likeCount": "87292",
7908
+ "dislikeCount": "2905"
7909
+ }
7910
+ },
7911
+ {
7912
+ "id": "-CZwFNh4utM",
7913
+ "snippet": {
7914
+ "publishedAt": "2016-12-13T15:00:00.000Z",
7915
+ "channelId": "UCbaGn5VkOVlcRgIWAHcrJKA",
7916
+ "title": "American Kids Try Christmas Foods from Around the World | Ep 10",
7917
+ "description": "http://cut.com\n\nhttp://cut.com/licensing\n\nProduced, Directed, and Edited by Cut!\n\nDon't forget to follow us on social media\nFacebook: https://www.facebook.com/watchcut\nTwitter: https://www.twitter.com/watchcut\nInstagram: https://www.instagram.com/storiesbycut \n\n\nGet Cut swag here: \nhttp://bit.ly/BuyCut",
7918
+ "thumbnails": {
7919
+ "medium": {
7920
+ "url": "https://i.ytimg.com/vi/-CZwFNh4utM/mqdefault.jpg",
7921
+ "width": 320,
7922
+ "height": 180
7923
+ }
7924
+ },
7925
+ "categoryId": "24"
7926
+ },
7927
+ "contentDetails": {
7928
+ "duration": "PT5M15S"
7929
+ },
7930
+ "statistics": {
7931
+ "viewCount": "545107",
7932
+ "likeCount": "22632",
7933
+ "dislikeCount": "1012"
7934
+ }
7935
+ },
7936
+ {
7937
+ "id": "Yr2UDKEzAL8",
7938
+ "snippet": {
7939
+ "publishedAt": "2016-12-13T17:10:34.000Z",
7940
+ "channelId": "UCYUQQgogVeQY8cMQamhHJcg",
7941
+ "title": "Everything Wrong With Star Trek Beyond In 17 Minutes Or Less",
7942
+ "description": "Star Trek Beyond, the third entry to this current series, is actually pretty fun, and was a bright spot in a horrible summer of movies. Still not perfect, so here are its sins. \n\nThursday: Another space movie.\n\nRemember, no movie is without sin! Which movie's sins should we expose next?!\n\nPodcast: http://soundcloud.com/cinemasins\nSins Video Playlist: http://www.youtube.com/watch?v=wy-v4c4is-w&list=PLMWfZxj1nTkQBy4AeRGG4xH5d2IIApNPj\nTweet us: http://twitter.com/cinemasins\nReddit with us: http://reddit.com/r/cinemasins\nTumble us: http://cinema-sins.tumblr.com\nCall us: 405-459-7466\nJeremy's book now available: http://theablesbook.com",
7943
+ "thumbnails": {
7944
+ "medium": {
7945
+ "url": "https://i.ytimg.com/vi/Yr2UDKEzAL8/mqdefault.jpg",
7946
+ "width": 320,
7947
+ "height": 180
7948
+ }
7949
+ },
7950
+ "categoryId": "1"
7951
+ },
7952
+ "contentDetails": {
7953
+ "duration": "PT17M34S"
7954
+ },
7955
+ "statistics": {
7956
+ "viewCount": "391717",
7957
+ "likeCount": "16288",
7958
+ "dislikeCount": "434"
7959
+ }
7960
+ },
7961
+ {
7962
+ "id": "ZO5OzmBFDOk",
7963
+ "snippet": {
7964
+ "publishedAt": "2016-12-13T15:45:06.000Z",
7965
+ "channelId": "UCb0xfM3HGOsqPYNAocXXNAQ",
7966
+ "title": "Adam Ruins Everything - The Truth About the McDonald's Coffee Lawsuit",
7967
+ "description": "This famous lawsuit was terrible, but not for the reasons you might think.\n\nSubscribe: http://full.sc/1s9KQGe\nWatch Full Episodes for FREE: http://bit.ly/1Rw2yzp\nCheck Adam’s Sources: http://bit.ly/1Q7MHpK\n\nIn Adam Ruins Everything, host Adam Conover employs a combination of comedy, history and science to dispel widespread misconceptions about everything we take for granted. A blend of entertainment and enlightenment, Adam Ruins Everything is like that friend who knows a little bit too much about everything and is going to tell you about it... whether you like it or not. \n\ntruTV Official Site: http://www.trutv.com/\nLike truTV on Facebook: https://www.facebook.com/truTV\nFollow truTV on Twitter: https://twitter.com/truTV\nFollow truTV on Tumblr: http://trutv.tumblr.com/\nGet the truTV app on Google Play: http://bit.ly/1eYxjPP\nGet the truTV app on iTunes: http://apple.co/1JiGkjh\n\nWay more truTV! Watch clips, sneak peeks and exclusives from original shows like Comedy Knockout, Those Who Can't and more – plus fresh video from hit shows like Impractical Jokers and The Carbonaro Effect. \n\nAdam Ruins Everything - The Truth About the McDonald's Coffee Lawsuit",
7968
+ "thumbnails": {
7969
+ "medium": {
7970
+ "url": "https://i.ytimg.com/vi/ZO5OzmBFDOk/mqdefault.jpg",
7971
+ "width": 320,
7972
+ "height": 180
7973
+ }
7974
+ },
7975
+ "categoryId": "24"
7976
+ },
7977
+ "contentDetails": {
7978
+ "duration": "PT2M58S"
7979
+ },
7980
+ "statistics": {
7981
+ "viewCount": "493739",
7982
+ "likeCount": "20629",
7983
+ "dislikeCount": "707"
7984
+ }
7985
+ },
7986
+ {
7987
+ "id": "T5AdquDjiyE",
7988
+ "snippet": {
7989
+ "publishedAt": "2016-12-13T05:27:45.000Z",
7990
+ "channelId": "UCa6vGFO9ty8v5KZJXQxdhaw",
7991
+ "title": "Jennifer Lawrence Gets Her Revenge on Chris Pratt",
7992
+ "description": "Chris Pratt has been cutting Jennifer Lawrence out of photos and posting them all over social media during their press tour for the movie Passengers. Jennifer finally gets her revenge with the help of Jimmy and Guillermo.\n\nKids Tell the Story of Christmas https://youtu.be/NkfcpAQ2IaQ\n\nSUBSCRIBE to get the latest #KIMMEL: http://bit.ly/JKLSubscribe\n\nWatch the latest Halloween Candy Prank: http://bit.ly/KimmelHalloweenCandy\n\nWatch Mean Tweets: http://bit.ly/JKLMeanTweets8\n\nConnect with Jimmy Kimmel Live Online:\n\nVisit the Jimmy Kimmel Live WEBSITE: http://bit.ly/JKLWebsite\nLike Jimmy Kimmel Live on FACEBOOK: http://bit.ly/JKLFacebook\nFollow Jimmy Kimmel Live on TWITTER: http://bit.ly/JKLTwitter\nFollow Jimmy Kimmel Live on INSTAGRAM: http://bit.ly/JKLInstagram\n\nAbout Jimmy Kimmel Live:\nJimmy Kimmel serves as host and executive producer of Emmy-winning \"Jimmy Kimmel Live,\" ABC's late-night talk show.\n \n\"Jimmy Kimmel Live\" is well known for its huge viral video successes with 2.5 billion views on YouTube alone. Some of Kimmel's mostpopular comedy bits include - Mean Tweets, Lie Witness News, Jimmy's Twerk Fail Prank, Unnecessary Censorship, YouTube Challenge, The Baby Bachelor, Movie: The Movie, Handsome Men's Club, Jimmy Kimmel Lie Detective and music videos like \"I (Wanna) Channing All Over Your Tatum\" and a Blurred Lines parody with Robin Thicke, Pharrell, Jimmy and his security guard Guillermo.\n \nNow in its thirteenth season, Kimmel's guests have included: Johnny Depp, Meryl Streep, Tom Cruise, Halle Berry, Harrison Ford, Jennifer Aniston, Will Ferrell, Katy Perry, Tom Hanks, Scarlett Johansson, Channing Tatum, George Clooney, Larry David, Charlize Theron, Mark Wahlberg, Kobe Bryant, Steve Carell, Hugh Jackman, Kristen Wiig, Jeff Bridges, Jennifer Garner, Ryan Gosling, Bryan Cranston, Jamie Foxx, Amy Poehler, Ben Affleck, Robert Downey Jr., Jake Gyllenhaal, Oprah, and unfortunately Matt Damon.\n\nJennifer Lawrence Gets Her Revenge on Chris Pratt\nhttps://youtu.be/T5AdquDjiyE",
7993
+ "thumbnails": {
7994
+ "medium": {
7995
+ "url": "https://i.ytimg.com/vi/T5AdquDjiyE/mqdefault.jpg",
7996
+ "width": 320,
7997
+ "height": 180
7998
+ }
7999
+ },
8000
+ "categoryId": "23"
8001
+ },
8002
+ "contentDetails": {
8003
+ "duration": "PT4M42S"
8004
+ },
8005
+ "statistics": {
8006
+ "viewCount": "2270217",
8007
+ "likeCount": "27770",
8008
+ "dislikeCount": "2035"
8009
+ }
8010
+ },
8011
+ {
8012
+ "id": "olP8JIQYLFw",
8013
+ "snippet": {
8014
+ "publishedAt": "2016-12-13T18:00:06.000Z",
8015
+ "channelId": "UCXhSCMRRPyxSoyLSPFxK7VA",
8016
+ "title": "50 AMAZING Facts to Blow Your Mind! #56",
8017
+ "description": "Check out ScreenRant, and subscribe! https://www.youtube.com/playlist?list=PL--PgETgAz5EST8IApKy1PrgjqsPdW6S-\n50 of the most AMAZING facts you'll ever see!\nSubscribe and click the bell to enable notifications for my new videos! https://www.youtube.com/matthewsantoro?sub_confirmation=1\nFollow me for more DAILY facts and important updates!\nSnapchat: http://bit.ly/SantoroSnapchat\nTwitter: http://twitter.com/MatthewSantoro\nInstagram: http://instagr.am/MatthewSantoro\nFacebook Profile: http://fb.com/MatthewMSantoro\nFacebook Page: http://fb.com/MatthewSantoroOfficial\n\nGet my book MIND = BLOWN here! http://matthewsantoro.squarespace.com/\n\nSubscribe to my second channel! https://www.youtube.com/matthewsantoro2?sub_confirmation=1\n\nSources:\nAll facts in this video are sourced from the following websites, and then individually researched to ensure veracity. I encourage you to visit these websites if you want to learn more!\nhttp://omgfacts.com\nhttp://thefactsite.com\nhttp://factslides.com\nhttp://wtffunfact.com\nhttp://todayifoundout.com\nhttps://reddit.com/r/todayilearned",
8018
+ "thumbnails": {
8019
+ "medium": {
8020
+ "url": "https://i.ytimg.com/vi/olP8JIQYLFw/mqdefault.jpg",
8021
+ "width": 320,
8022
+ "height": 180
8023
+ }
8024
+ },
8025
+ "categoryId": "27"
8026
+ },
8027
+ "contentDetails": {
8028
+ "duration": "PT8M52S"
8029
+ },
8030
+ "statistics": {
8031
+ "viewCount": "353602",
8032
+ "likeCount": "20836",
8033
+ "dislikeCount": "648"
8034
+ }
8035
+ },
8036
+ {
8037
+ "id": "J_8xCOSekog",
8038
+ "snippet": {
8039
+ "publishedAt": "2016-12-13T02:05:35.000Z",
8040
+ "channelId": "UC3SEvBYhullC-aaEmbEQflg",
8041
+ "title": "Mac Miller - My Favorite Part (feat. Ariana Grande)",
8042
+ "description": "From The Divine Feminine, available on iTunes & Spotify now: https://smarturl.it/MM.TDF\n\nDirected by _p\n\nCONNECT WITH MAC MILLER \nTwitter: https://twitter.com/macmiller \nFacebook: https://facebook.com/macmiller \nInstagram: https://instagram.com/larryfisherman \nSoundcloud: https://soundcloud.com/larryfisherman",
8043
+ "thumbnails": {
8044
+ "medium": {
8045
+ "url": "https://i.ytimg.com/vi/J_8xCOSekog/mqdefault.jpg",
8046
+ "width": 320,
8047
+ "height": 180
8048
+ }
8049
+ },
8050
+ "categoryId": "10"
8051
+ },
8052
+ "contentDetails": {
8053
+ "duration": "PT4M35S"
8054
+ },
8055
+ "statistics": {
8056
+ "viewCount": "2216324",
8057
+ "likeCount": "110665",
8058
+ "dislikeCount": "9527"
8059
+ }
8060
+ },
8061
+ {
8062
+ "id": "omoM8Xypiwk",
8063
+ "snippet": {
8064
+ "publishedAt": "2016-12-13T13:00:04.000Z",
8065
+ "channelId": "UCtinbF-Q-fVthA0qrFQTgXQ",
8066
+ "title": "about my HOLIDAY MOVIE..",
8067
+ "description": "go check out the 4d VR thing Samsung is doing at the Grove. it's free and rad and they're awesome for doing this holiday video with me - https://news.samsung.com/us/2016/12/08/samsung-spreads-holiday-cheer-with-launch-of-the-night-before-gear-vr-837nyc/\n\nJesse's vid https://www.youtube.com/watch?v=S1lkGOuIZzY\n\nmusic by https://soundcloud.com/panthurr",
8068
+ "thumbnails": {
8069
+ "medium": {
8070
+ "url": "https://i.ytimg.com/vi/omoM8Xypiwk/mqdefault.jpg",
8071
+ "width": 320,
8072
+ "height": 180
8073
+ }
8074
+ },
8075
+ "categoryId": "22"
8076
+ },
8077
+ "contentDetails": {
8078
+ "duration": "PT9M19S"
8079
+ },
8080
+ "statistics": {
8081
+ "viewCount": "1177944",
8082
+ "likeCount": "72306",
8083
+ "dislikeCount": "4030"
8084
+ }
8085
+ },
8086
+ {
8087
+ "id": "yJKBQNqqmsw",
8088
+ "snippet": {
8089
+ "publishedAt": "2016-12-14T03:11:37.000Z",
8090
+ "channelId": "UCHqC-yWZ1kri4YzwRSt6RGQ",
8091
+ "title": "LIVE Stream: President-Elect Donald Trump Rally in West Allis, WI 12/13/16",
8092
+ "description": "Tuesday, December 13, 2016: Join President-Elect Donald J. Trump and Vice President-Elect Mike Pence for the USA Thank You Tour 2016 at the Wisconsin State Fair Exposition Center at 7:00 PM CT.\n\nLIVE Stream: President-Elect Donald Trump Rally in West Allis, WI 12/13/16",
8093
+ "thumbnails": {
8094
+ "medium": {
8095
+ "url": "https://i.ytimg.com/vi/yJKBQNqqmsw/mqdefault.jpg",
8096
+ "width": 320,
8097
+ "height": 180
8098
+ }
8099
+ },
8100
+ "categoryId": "25"
8101
+ },
8102
+ "contentDetails": {
8103
+ "duration": "PT3H38M55S"
8104
+ },
8105
+ "statistics": {
8106
+ "viewCount": "48836",
8107
+ "likeCount": "4370",
8108
+ "dislikeCount": "199"
8109
+ }
8110
+ },
8111
+ {
8112
+ "id": "M9ctBliiq1A",
8113
+ "snippet": {
8114
+ "publishedAt": "2016-12-12T18:33:26.000Z",
8115
+ "channelId": "UCA698bls2pjQyiqP9N-iaeg",
8116
+ "title": "More Pokémon are here!",
8117
+ "description": "Professor Willow has discovered Togepi and Pichu hatching from Eggs! Starting later today, Trainers will have the opportunity to hatch these and several other Pokémon that were originally discovered in the Johto Region in Pokémon Gold and Pokémon Silver video games. These are the first of more Pokémon coming to Pokémon GO over the next few months.",
8118
+ "thumbnails": {
8119
+ "medium": {
8120
+ "url": "https://i.ytimg.com/vi/M9ctBliiq1A/mqdefault.jpg",
8121
+ "width": 320,
8122
+ "height": 180
8123
+ }
8124
+ },
8125
+ "categoryId": "20"
8126
+ },
8127
+ "contentDetails": {
8128
+ "duration": "PT29S"
8129
+ },
8130
+ "statistics": {
8131
+ "viewCount": "2946463",
8132
+ "likeCount": "24376",
8133
+ "dislikeCount": "14894"
8134
+ }
8135
+ },
8136
+ {
8137
+ "id": "2WsbkZC360U",
8138
+ "snippet": {
8139
+ "publishedAt": "2016-12-13T03:00:00.000Z",
8140
+ "channelId": "UCSOiCD_QJnfDU-jlBDaPxfQ",
8141
+ "title": "$3 Sundae Vs. $154 Sundae",
8142
+ "description": "Become a Parodian - http://bit.ly/DavidParody\nCHEAP SUNDAE VS LUXURY SUNDAE TASTE TEST!!!\n\nMAILTIME w/ BigDickDave:\n\nDavid Parody\nPO Box 59081 ALTA VISTA \nOTTAWA ON\nK1G 5T7 \n______________________________\n\nSnapchat\ndavidparody\n\nTwitter\nhttp://twitter.com/DavidParody \n\nInstagram\nhttp://instagram.com/Davidparody\n\nContact Email\nbizdevdavidparody@live.com",
8143
+ "thumbnails": {
8144
+ "medium": {
8145
+ "url": "https://i.ytimg.com/vi/2WsbkZC360U/mqdefault.jpg",
8146
+ "width": 320,
8147
+ "height": 180
8148
+ }
8149
+ },
8150
+ "categoryId": "23"
8151
+ },
8152
+ "contentDetails": {
8153
+ "duration": "PT13M4S"
8154
+ },
8155
+ "statistics": {
8156
+ "viewCount": "1138599",
8157
+ "likeCount": "73731",
8158
+ "dislikeCount": "7520"
8159
+ }
8160
+ },
8161
+ {
8162
+ "id": "8pg1obK0Qfo",
8163
+ "snippet": {
8164
+ "publishedAt": "2016-12-13T18:00:00.000Z",
8165
+ "channelId": "UCOpcACMWblDls9Z6GERVi1A",
8166
+ "title": "Honest Trailers - Star Wars: Episode V - The Empire Strikes Back",
8167
+ "description": "Get ready for a sequel so good, its title is used to describe other good sequels - The Empire Strikes Back!\n\nDon't forget to sign up for ScreenJunkies Plus to see the Roast of Darth Vader ►► http://sj.plus/ESB_Roast\n\nGot a tip? Email us ► feedback@screenjunkies.com\nFollow us on Twitter ► http://twitter.com/screenjunkies\nLike us on Facebook ► http://www.fb.com/screenjunkies\nGet Screen Junkies Gear! ►► http://bit.ly/SJMerch\nDownload our iPhone App! ►► http://bit.ly/SJAppPlus\nDownload our Android App! ►►http://bit.ly/SJPlusGoogleApp\n\nVoiceover Narration by Jon Bailey: http://youtube.com/jon3pnt0\nTitle design by Robert Holtby \n\nSeries Created by Andy Signore - http://twitter.com/andysignore & Brett Weiner\nWritten by Spencer Gilbert, Joe Starr, Dan Murrell & Andy Signore\nEdited by Bruce Guido and TJ Nordaker.\n\nAlso while we have you, why not check out our Emmy-Nominated HONEST TRAILERS!\n\nDeadpool (Feat. Deadpool)\nhttp://bit.ly/HT_Deadpool\n\nGame of Thrones Vol. 1\nhttp://bit.ly/HT_GOTv1\n\nFrozen \nhttp://bit.ly/HT_Frozen\n\nHarry Potter \nhttp://bit.ly/HT_HarryPotter\n\nBreaking Bad \nhttp://bit.ly/HT_BreakingBad\n\nThe Lord Of The Rings\nhttp://bit.ly/HT_LordOfTheRings\n\nStar Wars Force Awakens \nhttp://bit.ly/HT_ForceAwakens\n\nBatman v Superman: Dawn of Justice \nhttp://bit.ly/HT_BvS",
8168
+ "thumbnails": {
8169
+ "medium": {
8170
+ "url": "https://i.ytimg.com/vi/8pg1obK0Qfo/mqdefault.jpg",
8171
+ "width": 320,
8172
+ "height": 180
8173
+ }
8174
+ },
8175
+ "categoryId": "1"
8176
+ },
8177
+ "contentDetails": {
8178
+ "duration": "PT6M5S"
8179
+ },
8180
+ "statistics": {
8181
+ "viewCount": "770086",
8182
+ "likeCount": "38455",
8183
+ "dislikeCount": "782"
8184
+ }
8185
+ },
8186
+ {
8187
+ "id": "N5AIDgzDuws",
8188
+ "snippet": {
8189
+ "publishedAt": "2016-12-14T08:35:00.000Z",
8190
+ "channelId": "UCMtFAi84ehTSYSE9XoHefig",
8191
+ "title": "Trump And Kanye Meet To Discuss New Collaboration",
8192
+ "description": "We're told the two will be dropping a new album together, it's called 'The Deportation of Pablo.'\n\nSubscribe To \"The Late Show\" Channel HERE: http://bit.ly/ColbertYouTube\nFor more content from \"The Late Show with Stephen Colbert\", click HERE: http://bit.ly/1AKISnR\nWatch full episodes of \"The Late Show\" HERE: http://bit.ly/1Puei40\nLike \"The Late Show\" on Facebook HERE: http://on.fb.me/1df139Y\nFollow \"The Late Show\" on Twitter HERE: http://bit.ly/1dMzZzG\nFollow \"The Late Show\" on Google+ HERE: http://bit.ly/1JlGgzw\nFollow \"The Late Show\" on Instagram HERE: http://bit.ly/29wfREj\nFollow \"The Late Show\" on Tumblr HERE: http://bit.ly/29DVvtR\n\nWatch The Late Show with Stephen Colbert weeknights at 11:35 PM ET/10:35 PM CT. Only on CBS.\n\nGet the CBS app for iPhone & iPad! Click HERE: http://bit.ly/12rLxge\n\nGet new episodes of shows you love across devices the next day, stream live TV, and watch full seasons of CBS fan favorites anytime, anywhere with CBS All Access. Try it free! http://bit.ly/1OQA29B\n\n---\nThe Late Show with Stephen Colbert is the premier late night talk show on CBS, airing at 11:35pm EST, streaming online via CBS All Access, and delivered to the International Space Station on a USB drive taped to a weather balloon. Every night, viewers can expect: Comedy, humor, funny moments, witty interviews, celebrities, famous people, movie stars, bits, humorous celebrities doing bits, funny celebs, big group photos of every star from Hollywood, even the reclusive ones, plus also jokes.",
8193
+ "thumbnails": {
8194
+ "medium": {
8195
+ "url": "https://i.ytimg.com/vi/N5AIDgzDuws/mqdefault.jpg",
8196
+ "width": 320,
8197
+ "height": 180
8198
+ }
8199
+ },
8200
+ "categoryId": "24"
8201
+ },
8202
+ "contentDetails": {
8203
+ "duration": "PT12M29S"
8204
+ },
8205
+ "statistics": {
8206
+ "viewCount": "47376",
8207
+ "likeCount": "6140",
8208
+ "dislikeCount": "349"
8209
+ }
8210
+ },
8211
+ {
8212
+ "id": "CH7GCMm1ngA",
8213
+ "snippet": {
8214
+ "publishedAt": "2016-12-13T07:02:06.000Z",
8215
+ "channelId": "UC18vz5hUUqxbGvym9ghtX_w",
8216
+ "title": "Democrats in the Wilderness | Full Frontal with Samantha Bee | TBS",
8217
+ "description": "Democrats might feel lost in the woods, but they're ignoring an obvious trail of breadcrumbs.\n\nWatch Full Frontal with Samantha Bee all new Mondays at 10:30/ 9:30c on TBS!",
8218
+ "thumbnails": {
8219
+ "medium": {
8220
+ "url": "https://i.ytimg.com/vi/CH7GCMm1ngA/mqdefault.jpg",
8221
+ "width": 320,
8222
+ "height": 180
8223
+ }
8224
+ },
8225
+ "categoryId": "22"
8226
+ },
8227
+ "contentDetails": {
8228
+ "duration": "PT5M44S"
8229
+ },
8230
+ "statistics": {
8231
+ "viewCount": "379189",
8232
+ "likeCount": "5419",
8233
+ "dislikeCount": "3433"
8234
+ }
8235
+ },
8236
+ {
8237
+ "id": "Qcsf5OoI-B4",
8238
+ "snippet": {
8239
+ "publishedAt": "2016-12-13T15:22:54.000Z",
8240
+ "channelId": "UCupvZG-5ko_eiXAupbDfxWw",
8241
+ "title": "Kanye West meets Donald Trump",
8242
+ "description": "Kanye West arrives at Trump Tower in New York to meet with President-elect Trump, two weeks after being released from the hospital in Los Angeles.",
8243
+ "thumbnails": {
8244
+ "medium": {
8245
+ "url": "https://i.ytimg.com/vi/Qcsf5OoI-B4/mqdefault.jpg",
8246
+ "width": 320,
8247
+ "height": 180
8248
+ }
8249
+ },
8250
+ "categoryId": "25"
8251
+ },
8252
+ "contentDetails": {
8253
+ "duration": "PT58S"
8254
+ },
8255
+ "statistics": {
8256
+ "viewCount": "73782",
8257
+ "likeCount": "2128",
8258
+ "dislikeCount": "806"
8259
+ }
8260
+ },
8261
+ {
8262
+ "id": "ubf_sukX0nY",
8263
+ "snippet": {
8264
+ "publishedAt": "2016-12-13T17:00:07.000Z",
8265
+ "channelId": "UC7v3-2K1N84V67IF-WTRG-Q",
8266
+ "title": "Rogue One: A Star Wars Story - Movie Review",
8267
+ "description": "The events encapsulated in the opening crawl to \"Star Wars: A New Hope\" come to life! Here's my review of \"Rogue One: A Star Wars Story\"!\n\nSee more videos by Jeremy here: http://www.youtube.com/user/JeremyJahns\n\nFollow Jeremy on Twitter: https://twitter.com/JeremyJahns\n\nFriend Jeremy on Facebook: http://www.facebook.com/RealJeremyJahns",
8268
+ "thumbnails": {
8269
+ "medium": {
8270
+ "url": "https://i.ytimg.com/vi/ubf_sukX0nY/mqdefault.jpg",
8271
+ "width": 320,
8272
+ "height": 180
8273
+ }
8274
+ },
8275
+ "categoryId": "24"
8276
+ },
8277
+ "contentDetails": {
8278
+ "duration": "PT5M46S"
8279
+ },
8280
+ "statistics": {
8281
+ "viewCount": "241305",
8282
+ "likeCount": "17492",
8283
+ "dislikeCount": "489"
8284
+ }
8285
+ },
8286
+ {
8287
+ "id": "InlJXXsjhs0",
8288
+ "snippet": {
8289
+ "publishedAt": "2016-12-12T14:04:05.000Z",
8290
+ "channelId": "UCSvEDnrTiObRy1xbY2b6x0w",
8291
+ "title": "RenesPoints.com - Woman dragged off a Delta jet in DTW Detroit",
8292
+ "description": "See RenesPoints.com post for updates LINK➤ http://renespoints.boardingarea.com/",
8293
+ "thumbnails": {
8294
+ "medium": {
8295
+ "url": "https://i.ytimg.com/vi/InlJXXsjhs0/mqdefault.jpg",
8296
+ "width": 320,
8297
+ "height": 180
8298
+ }
8299
+ },
8300
+ "categoryId": "19"
8301
+ },
8302
+ "contentDetails": {
8303
+ "duration": "PT2M3S"
8304
+ },
8305
+ "statistics": {
8306
+ "viewCount": "574186",
8307
+ "likeCount": "912",
8308
+ "dislikeCount": "168"
8309
+ }
8310
+ },
8311
+ {
8312
+ "id": "YIQMBLahtqY",
8313
+ "snippet": {
8314
+ "publishedAt": "2016-12-14T05:58:34.000Z",
8315
+ "channelId": "UCVTyTA7-g9nopHeHbeuvpRA",
8316
+ "title": "Trump's Cabinet of Plutocrats and Hardliners: A Closer Look",
8317
+ "description": "Seth takes a closer look at President-elect Donald Trump continuing to fill his cabinet with wealthy elites and hardliners.\n» Subscribe to Late Night: http://bit.ly/LateNightSeth\n» Get more Late Night with Seth Meyers: http://www.nbc.com/late-night-with-seth-meyers/\n» Watch Late Night with Seth Meyers Weeknights 12:35/11:35c on NBC.\n\nLATE NIGHT ON SOCIAL\nFollow Late Night on Twitter: https://twitter.com/LateNightSeth\nLike Late Night on Facebook: https://www.facebook.com/LateNightSeth\nFind Late Night on Tumblr: http://latenightseth.tumblr.com/\nConnect with Late Night on Google+: https://plus.google.com/+LateNightSeth/videos\n\nLate Night with Seth Meyers on YouTube features A-list celebrity guests, memorable comedy, and topical monologue jokes.\n\nNBC ON SOCIAL \nLike NBC: http://Facebook.com/NBC\nFollow NBC: http://Twitter.com/NBC\nNBC Tumblr: http://NBCtv.tumblr.com/\nNBC Pinterest: http://Pinterest.com/NBCtv/\nNBC Google+: https://plus.google.com/+NBC\nYouTube: http://www.youtube.com/nbc\nNBC Instagram: http://instagram.com/nbctv\n\nTrump's Cabinet of Plutocrats and Hardliners: A Closer Look- Late Night with Seth Meyers\nhttps://youtu.be/YIQMBLahtqY\n\n\nLate Night with Seth Meyers\nhttp://www.youtube.com/user/latenightseth",
8318
+ "thumbnails": {
8319
+ "medium": {
8320
+ "url": "https://i.ytimg.com/vi/YIQMBLahtqY/mqdefault.jpg",
8321
+ "width": 320,
8322
+ "height": 180
8323
+ }
8324
+ },
8325
+ "categoryId": "23"
8326
+ },
8327
+ "contentDetails": {
8328
+ "duration": "PT8M52S"
8329
+ },
8330
+ "statistics": {
8331
+ "viewCount": "38871",
8332
+ "likeCount": "6343",
8333
+ "dislikeCount": "242"
8334
+ }
8335
+ },
8336
+ {
8337
+ "id": "Dzw16brPBSA",
8338
+ "snippet": {
8339
+ "publishedAt": "2016-12-13T14:00:02.000Z",
8340
+ "channelId": "UC6E2mP01ZLH_kbAyeazCNdg",
8341
+ "title": "Poison Frogs in Our Backyard!",
8342
+ "description": "Please SUBSCRIBE - http://bit.ly/BWchannel\nWatch More - http://bit.ly/BTpoisonfrog\n\nIn this segment of On Location, Coyote and the crew are back in Costa Rica and they have Poison Frogs in their backyard!\n\nTheir backyard also happens to be some of the most pristine rainforest in Eastern Costa Rica and is home to many exotic species of amphibians and reptiles…so the fact that it’s full of Poison Frogs is actually to be expected! \n\nSince this little Strawberry Poison Frog is just the first discovery of the trip Coyote wants to know what animals you would like the team to get in front of the cameras? Please tell us in the comments section below.\n\nGet ready because more amazing Costa Rican adventures are just around the corner! \n\n\nHUGE THANKS to Brian Kubicki for hosting the crew at this location! To visit his amazing amphibian reserve check out his website for details - http://bit.ly/crfrogs\n\nThank you for joining us On Location! In these segments you will get a behind the scenes look at all of the fun and exciting things Coyote and team experience on their adventures when they’re NOT encountering wildlife…or at least not by choice! \n\nThe Brave Wilderness Channel is your one stop connection to a wild world of adventure and amazing up close animal encounters! \n\nFollow along with adventurer and animal expert Coyote Peterson and his crew as they lead you on three exciting expedition series - Breaking Trail, Dragon Tails and Coyote’s Backyard - featuring everything from Grizzly Bears and Crocodiles to Rattlesnakes and Tarantulas…each episode offers an opportunity to learn something new.\n \nSo SUBSCRIBE NOW and join the adventure that brings you closer to the most beloved, bizarre and misunderstood creatures known to man! \n\nGET READY...things are about to get WILD! \nNew Episodes Every Tuesday at 9AM EST!\n\nSubscribe Now! https://www.youtube.com/BraveWilderness\n\nFind more info at: https://www.CoyotePeterson.com\n\nCoyote Peterson on Twitter: https://twitter.com/CoyotePeterson\n\nCoyote Peterson on Facebook: https://www.facebook.com/CoyotePeterson\n\nCoyote Peterson on Instagram: https://www.instagram.com/CoyotePeterson\n\nCoyote Peterson G+: https://plus.google.com/100310803754690323805/about",
8343
+ "thumbnails": {
8344
+ "medium": {
8345
+ "url": "https://i.ytimg.com/vi/Dzw16brPBSA/mqdefault.jpg",
8346
+ "width": 320,
8347
+ "height": 180
8348
+ }
8349
+ },
8350
+ "categoryId": "15"
8351
+ },
8352
+ "contentDetails": {
8353
+ "duration": "PT3M47S"
8354
+ },
8355
+ "statistics": {
8356
+ "viewCount": "429611",
8357
+ "likeCount": "25211",
8358
+ "dislikeCount": "164"
8359
+ }
8360
+ },
8361
+ {
8362
+ "id": "QeowNXMn10g",
8363
+ "snippet": {
8364
+ "publishedAt": "2016-12-13T02:35:25.000Z",
8365
+ "channelId": "UC64UiPJwM_e9AqAd7RiD7JA",
8366
+ "title": "What's Actually Supposed to Happen When You Land on Free Parking",
8367
+ "description": "→Subscribe for new videos every day! \nhttps://www.youtube.com/user/TodayIFoundOut?sub_confirmation=1\n→How \"Dick\" came to be short for 'Richard': https://youtu.be/BH1NAwwKtcg?list=PLR0XuDegDqP2Acy6g9Ta7hzC0Rr3RDS6q\n\nNever run out of things to say at the water cooler with TodayIFoundOut! Brand new videos 7 days a week!\n\nMore from TodayIFoundOut\n\nHow Much Land do You Really Own Above and Below Your Property?\nhttps://youtu.be/7F9V6yZjJXQ?list=PLR0XuDegDqP0GESJ0DgpgTcThLJVEbFs8\n\nWhat Happens if a Cemetery Goes Under?\nhttps://youtu.be/LwhFDJYDQTk?list=PLR0XuDegDqP0GESJ0DgpgTcThLJVEbFs8\n\nIn this video:\n\nFew board games have the ability to cause arguments like Monopoly, an unsurprising fact given the object of the game it was based on (see: Who Invented Monopoly?) was to send your opponent to the poor house while you bask in the pleasures of immense wealth and prosperity. In the eight decades or so the game has existed, the rules of Monopoly haven’t really changed all that much, but because everyone “knows” how to play, how people actually play the game has slowly diverged from what the actual rule book, which nobody ever bothers to read, says. In anticipation of various family get-togethers coming up this holiday season, in which you’ll no doubt be subjected to a game of Monopoly at some point, in this article, we’re going to correct the various ways you’ve probably been playing Monopoly wrong your whole life.\n\nWant the text version?: http://www.todayifoundout.com/index.php/2016/11/exactly-landing-free-parking-game-monopoly/\n\nSources:\n\nhttp://www.hasbro.com/common/instruct/monins.pdf\nhttp://www.wired.co.uk/article/how-to-beat-anyone-at-jenga\nhttp://www.word-buff.com/scrabble-rules.html\nhttp://www.criticalmiss.com/issue10/CampaignRealMonopoly1.html\nhttps://en.wikipedia.org/wiki/Monopoly_(game)\nhttp://www.dailymail.co.uk/femail/article-2596909/Hasbro-picks-5-house-rules-new-Monopoly-set.html\nhttp://investor.hasbro.com/releasedetail.cfm?releaseid=835277\nhttp://richard_wilding.tripod.com/monorules.htm\nhttps://en.wikipedia.org/wiki/Connect_Four\nhttps://www.buzzfeed.com/monopoly/things-you-probably-didnt-know-about-monopoly?utm_term=.jtKZn4oR1#.npVBzQno5",
8368
+ "thumbnails": {
8369
+ "medium": {
8370
+ "url": "https://i.ytimg.com/vi/QeowNXMn10g/mqdefault.jpg",
8371
+ "width": 320,
8372
+ "height": 180
8373
+ }
8374
+ },
8375
+ "categoryId": "27"
8376
+ },
8377
+ "contentDetails": {
8378
+ "duration": "PT8M23S"
8379
+ },
8380
+ "statistics": {
8381
+ "viewCount": "499414",
8382
+ "likeCount": "15975",
8383
+ "dislikeCount": "992"
8384
+ }
8385
+ },
8386
+ {
8387
+ "id": "vr3iIr9y4xc",
8388
+ "snippet": {
8389
+ "publishedAt": "2016-12-14T05:10:37.000Z",
8390
+ "channelId": "UCpdK1NLHxEUGXc1gq2NxkTw",
8391
+ "title": "The Voice 2016 Billy Gilman and Kelly Clarkson - Finale: \"It's Quiet Uptown\"",
8392
+ "description": "Billy Gilman teams up with Kelly Clarkson for a duet of \"It's Quiet Uptown,\" from The Hamilton Mixtape.\n» Get The Voice Official App: http://bit.ly/TheVoiceOfficialApp\n» Subscribe for More: http://bit.ly/TheVoiceSub\n» The Voice Returns Monday February 27 8/7c on NBC!\n» Watch Full Episodes: http://bit.ly/TheVoiceFullEpisodes\n\nTHE VOICE ON SOCIAL:\nLike The Voice: http://Facebook.com/NBCTheVoice\nFollow The Voice: https://Twitter.com/NBCTheVoice\nThe Voice Tumblr: http://nbcTheVoice.Tumblr.com/\nGoogle+: https://plus.google.com/+TheVoice/\nThe Voice Pinterest: http://Pinterest.com/nbcTheVoice/\n\nNBC’s The Voice follows the strongest vocalists from across the country and invites them to compete in this season's blockbuster vocal competition.\n\nFind The Voice trailers, full episode highlights, previews, promos, clips, and digital exclusives here.\n\nNBC ON SOCIAL:\nNBC YouTube: http://www.youtube.com/nbc\nLike NBC: http://Facebook.com/NBC\nFollow NBC: http://Twitter.com/NBC\nNBC Tumblr: http://nbctv.tumblr.com/\nNBC Google+: https://plus.google.com/+NBC/posts\n\nABOUT THE VOICE\nThe Voice 2016 USA YouTube channel features exclusive content with The Voice coaches, highlights from The Voice auditions, interviews with The Voice winners, as well as The Voice recaps and results. Learn more about The Voice contestants, The Voice tour, the eliminations, and follow your favorite performers all the way to the finale. In season 11, internationally acclaimed artists Miley Cyrus and Alicia Keys join Adam Levine and Blake Shelton as celebrity musician coaches, while Carson Daly continues to serve as host. The show's innovative format features five stages of competition: the first begins with the blind auditions, followed by the battle rounds, the knockouts, the live playoffs and finally, the live performance shows.\n\nThe Voice 2016 Billy Gilman and Kelly Clarkson - Finale: \"It's Quiet Uptown\"\nhttps://youtu.be/vr3iIr9y4xc\n\nThe Voice\nhttp://www.youtube.com/user/nbcthevoice",
8393
+ "thumbnails": {
8394
+ "medium": {
8395
+ "url": "https://i.ytimg.com/vi/vr3iIr9y4xc/mqdefault.jpg",
8396
+ "width": 320,
8397
+ "height": 180
8398
+ }
8399
+ },
8400
+ "categoryId": "24"
8401
+ },
8402
+ "contentDetails": {
8403
+ "duration": "PT3M38S"
8404
+ },
8405
+ "statistics": {
8406
+ "viewCount": "24477",
8407
+ "likeCount": "2718",
8408
+ "dislikeCount": "38"
8409
+ }
8410
+ },
8411
+ {
8412
+ "id": "DvHJtez2IlY",
8413
+ "snippet": {
8414
+ "publishedAt": "2016-12-12T18:00:00.000Z",
8415
+ "channelId": "UCWOA1ZGywLbqmigxE4Qlvuw",
8416
+ "title": "The OA | Official Trailer [HD] | Netflix",
8417
+ "description": "Trust the unknown. Netflix Original Series 'The OA' launches globally Friday, December 16.\n\ninstagram.com/the_OA\n\nFrom Brit Marling and Zal Batmanglij, the visionary filmmakers behind Sound of My Voice and The East, comes a powerful, mind-bending tale about identity, human connection and the borders between life and death. The Netflix original series The OA is an odyssey in eight chapters produced in partnership with Plan B Entertainment, Netflix and Anonymous Content. The groundbreaking series offers audiences a singular experience that upends notions about what long-format stories can be.\n\nSUBSCRIBE: http://bit.ly/29qBUt7\n\nAbout Netflix:\nNetflix is the world’s leading Internet television network with over 83 million members in over 190 countries enjoying more than 125 million hours of TV shows and movies per day, including original series, documentaries and feature films. Members can watch as much as they want, anytime, anywhere, on nearly any Internet-connected screen. Members can play, pause and resume watching, all without commercials or commitments.\n\nConnect with Netflix Online:\nVisit Netflix WEBSITE: http://nflx.it/29BcWb5\nLike Netflix on FACEBOOK: http://bit.ly/29kkAtN\nFollow Netflix on TWITTER: http://bit.ly/29gswqd\nFollow Netflix on INSTAGRAM: http://bit.ly/29oO4UP\nFollow Netflix on TUMBLR: http://bit.ly/29kkemT\n\nThe OA | Official Trailer [HD] | Netflix\nhttp://youtube.com/netflix",
8418
+ "thumbnails": {
8419
+ "medium": {
8420
+ "url": "https://i.ytimg.com/vi/DvHJtez2IlY/mqdefault.jpg",
8421
+ "width": 320,
8422
+ "height": 180
8423
+ }
8424
+ },
8425
+ "categoryId": "24"
8426
+ },
8427
+ "contentDetails": {
8428
+ "duration": "PT1M41S"
8429
+ },
8430
+ "statistics": {
8431
+ "viewCount": "957531",
8432
+ "likeCount": "6051",
8433
+ "dislikeCount": "348"
8434
+ }
8435
+ },
8436
+ {
8437
+ "id": "6c8GlSb6XlA",
8438
+ "snippet": {
8439
+ "publishedAt": "2016-12-12T23:15:43.000Z",
8440
+ "channelId": "UCTFuNYrqAcsmSjgqYMvxOqw",
8441
+ "title": "Grandma Got Runover By A Reindeer - Home Free",
8442
+ "description": "► This song is on our album FULL OF (EVEN MORE) CHEER... autographed copies: http://flyt.it/hf_foc_walmart?ID=yt\n► iTUNES: http://flyt.it/hf_foc?ID=yt\n► All Our Songs Are Made WithOUT Instruments, SUBSCRIBE: http://flyt.it/HFYoutube?ID=yt\n\n► Autographed Int'l Copies on our store: http://flyt.it/hf_foc_store?ID=yt\n\n► Keep In Touch, Dang It! Newsletter: http://flyt.it/HFNewsletter?ID=youtube\n► AMAZON: http://flyt.it/hf_focamazon?ID=yt\n► GOOGLE PLAY: http://flyt.it/hf_focgoogle?ID=yt\n\nHome Free's Socials\nNewsletter - Get News First!: http://flyt.it/HFNewsletter?ID=youtube\nYouTube (SUBSCRIBE!): http://flyt.it/HFYoutube?ID=youtube\nSpotify (FOLLOW): http://flyt.it/HFSpotify?ID=youtube\nFacebook: http://www.facebook.com/homefreevocalband\nTwitter: http://www.twitter.com/homefreeguys\nInstagram: http://www.instagram.com/homefreeguys\n\nCOUNTRY EVOLUTION is available too!\niTunes: http://flyt.it/HFCountryEvolution?ID=youtube\nPhysical Copies In Our Store:http://flyt.it/HFWebsiteStore?ID=youtube\n\nOur first album, CRAZY LIFE, is available too:\niTunes: http://flyt.it/HFCrazyLifeiTunes?ID=youtube\nAmazon: http://flyt.it/HFCrazyLifeAmazon?ID=youtube\n\n--\n\nDirected, filmed, edited by Reilly Zamber, McKenzie Zamber, and Jimmy Bates for FifGen Films (fifgenfilms@gmail.com)\n\nPlease consider supporting us on Patreon: http://flyt.it/HFPatreon?ID=youtube\n\nThis was made possible with the generous support of:\n\nElizabeth L, Nanette W, Iris H, Marvetta h, Candi O, Georgene K, Teresa L, Matthew M, Linda H, Janice B, Genevra L, Cindy M, Carole L, Carol A, Delaine M, Mary D F, Michelle B, Kimberly P, Mark W, Janet S, Wilma D, Linya, Heather J, Lisa W, Sally J, Brandy P, Yvonne L, Jane C, Heidi A, Susan Z, Danute P, Beverly B, Lynh T, Annamarie M, Steve Sherry and Greg D, Beth B, R. D, Rosalie C, Wagner M, Michael H, Catharine B, Marcia G, Tina T, Katie W, Uta V, Kathryn & Angela W, Joann S, Sarah J, Ronald P, Jonathan S, Mary Lynn F, Rhonda s, Jenna, Megan P, Francesca H, Tressi D, Carolyn S, Vicki S, Carolyn E, Jim M, Marianna A, Katrina k, Mandy S, Ingrid H, Karyne, Rebeca & Trystinna B, Beth W, Terry R, Alicia V, Callene D, Cindy, Melanie A, Mika A, Daniel L, Carol F, Dana M, Paula M, Heather M, Melanie S, Kathleen R, Randie L M, Marjorie B, Steve and Marilyn C, Sheryl B, Janet B, Jennifer N, Christy K, Linda W, Brenda S, Kim S, Heather S, Tina K, Ramona V, Jen B, Shelly G, Kathy S, Katye M, JoAnn W\n\nWe’re going on tour! \n\nHOME FREE - ALL UPCOMING TOUR DATES\nNever miss a tour date...\nTrack us on Bandsintown: http://flyt.it/HFBandsinTown?ID=youtube\n\nDECEMBER 2016\n13 | Davenport, IA - FEW TICKETS REMAIN\n15 | Carmel, IN\n16 | Madison, WI - FEW TICKETS REMAIN\n17 | Brookings, SD\n18 | Mankato, MN - FEW TICKETS REMAIN\n20 | Eau Claire, WI - SOLD OUT\n21 | Minneapolis, MN - FEW TICKETS REMAIN\n22 | Fargo, ND - FEW TICKETS REMAIN\n\nMARCH 2017\n23 | Wasau, WI - FEW TICKETS REMAIN\n24 | Aurora, IL\n25 | Terre Haute, IN - SOLD OUT\n\nAPRIL 2017\n06 | Burlington, ON\n07 | Bethesda, MD\n26 | Moncton, NB\n27 | Fredericton, NB",
8443
+ "thumbnails": {
8444
+ "medium": {
8445
+ "url": "https://i.ytimg.com/vi/6c8GlSb6XlA/mqdefault.jpg",
8446
+ "width": 320,
8447
+ "height": 180
8448
+ }
8449
+ },
8450
+ "categoryId": "10"
8451
+ },
8452
+ "contentDetails": {
8453
+ "duration": "PT5M25S"
8454
+ },
8455
+ "statistics": {
8456
+ "viewCount": "200991",
8457
+ "likeCount": "7134",
8458
+ "dislikeCount": "115"
8459
+ }
8460
+ }
8461
+ ]
8462
+ }
8463
+ http_version:
8464
+ recorded_at: Wed, 14 Dec 2016 18:50:19 GMT
7641
8465
  recorded_with: VCR 3.0.3
@@ -18,6 +18,7 @@ CASSETTES_FOLDER = "#{FIXTURES_FOLDER}/cassettes"
18
18
  CASSETTE_FILE = 'youtube_api'
19
19
  TEST_VIDEO_ID = 'vJOkR0Xz958'
20
20
  TEST_COMMENT_ID = 'z13dwdepqxvdvvmbj04chpaxmuvbwjxhsr40k'
21
+ TEST_CHANEL_ID = 'UCQU5uVTG8h9LToACKrm1LMA'
21
22
  RESULT_FILE = "#{FIXTURES_FOLDER}/yt_api_results.yml"
22
23
  YT_RESULT = YAML.load(File.read(RESULT_FILE))
23
24
 
@@ -33,6 +33,7 @@ describe 'Video specifications' do
33
33
  video_id: TEST_VIDEO_ID
34
34
  )
35
35
  video.title.length.must_be :>, 0
36
+ video.channel_id.length.must_be :>, 0
36
37
  end
37
38
 
38
39
  it 'should have comments' do
@@ -40,6 +41,18 @@ describe 'Video specifications' do
40
41
  video.comments.length.must_be :>, 1
41
42
  end
42
43
 
44
+ it 'should have channel information' do
45
+ video = YoutubeVideo::Video.find(video_id: TEST_VIDEO_ID)
46
+ video.title.length.must_be :>, 0
47
+ video.channel_description.length.must_be :>, 0
48
+ video.channel_image_url.must_match(/https:/)
49
+ end
50
+
51
+ it 'should able to get popular videos' do
52
+ videos = YoutubeVideo::Video.find_popular(max_results: 25)
53
+ videos.length.must_be :==, 25
54
+ end
55
+
43
56
  it 'should run the executable file' do
44
57
  output = `YPBT #{TEST_VIDEO_ID}`
45
58
  output.split("\n").length.must_be :>, 5
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: YPBT
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yi-Min
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-11-19 00:00:00.000000000 Z
13
+ date: 2020-10-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: http
@@ -214,15 +214,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
214
214
  requirements:
215
215
  - - ">="
216
216
  - !ruby/object:Gem::Version
217
- version: '0'
217
+ version: '2.6'
218
218
  required_rubygems_version: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - ">="
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
223
  requirements: []
224
- rubyforge_project:
225
- rubygems_version: 2.5.1
224
+ rubygems_version: 3.0.8
226
225
  signing_key:
227
226
  specification_version: 4
228
227
  summary: Gets comment from public Youtube videos