share_learning 0.2.5 → 0.2.6

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
2
  SHA1:
3
- metadata.gz: 06becfa64167f7d939c01148497ccae9e578afad
4
- data.tar.gz: e4c52d25b77638527a3e71b9223e8c143be7d352
3
+ metadata.gz: d00d216bc077a790c0a30b88847402c4738f9528
4
+ data.tar.gz: 4e50d4f6c219b5ce3f9a9affefa6cf225edc74d6
5
5
  SHA512:
6
- metadata.gz: a68a601265a3a0dc440407d3cec8ec6c5c09b08c0731d0ce679d26f09b116b5fa03c265889d6cc9ba5131e6ce27761e7b06d0ea249437be7c03cde65b3b31c79
7
- data.tar.gz: 8530ab7e42e096f75cb2fdffd95bc38bacb3769a547bfae8a9c3423c3ddbbda755780f27237866b9982f67abcf1d0dff64d16a00d44562bbe3be9f193e455fa7
6
+ metadata.gz: fc9ed8b792f2e6b9d16c91c651e4270cc7263714e49f96aa88596f9d32af1f1237a2257be02c5aba3c21cd97750f74266bb3db7f6bb7e456369f334882a6d5e9
7
+ data.tar.gz: 72a525148a1b19b91882b17dbf709ba33229b40d4a382547d7a8da0162df30485263614991341bd221f9bc9a3836d3c9b9b5acd90a06d935662843a70d80ef7f
@@ -1,3 +1,3 @@
1
1
  module ShareLearning
2
- VERSION = '0.2.5'.freeze
2
+ VERSION = '0.2.6'.freeze
3
3
  end
@@ -23,7 +23,12 @@ module YouTube
23
23
  playlistId = playlist['id']['playlistId']
24
24
  title = playlist['snippet']['title']
25
25
  des = playlist['snippet']['description']
26
- image = playlist['snippet']['thumbnails']['high']['url']
26
+ # image = playlist['snippet']['thumbnails']['high']['url']
27
+ if playlist['snippet']['thumbnails']['high']['url'].nil?
28
+ image = ''
29
+ else
30
+ image = playlist['snippet']['thumbnails']['high']['url']
31
+ end
27
32
  playlistId = playlist['id']['playlistId']
28
33
  url = 'https://www.youtube.com/playlist?list=' + playlistId
29
34
  results.push({'playlistId' => playlistId, 'title' => title, 'description' => des, 'image' => image, 'url' => url})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: share_learning
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ashleycheng, blureze, meegoStar