twitchrb 0.2.3 → 0.2.4
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/twitch/objects/video.rb +4 -0
- data/lib/twitch/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5da5d24c0516dd123d3c603f728f1afb89dd388d8850bc39f6a46a62c7497b2f
|
|
4
|
+
data.tar.gz: 4c664108c26f55cceeb5d8c5524fc79fe15a14c16d9114abb3ad481e20afc028
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2fc664b3ae6a78bb1fbf61d65a04cbd8c6a97dd79cd47d418c007e000e6a568fcded0fa0246fb5907197684942c5549f26b6a8f287289cf0200a47f11dd2ea1e
|
|
7
|
+
data.tar.gz: e04d75f5c8f88392316fc652391998f842c6cd23f9e1484246f876c786ae828b2195dab346506445f945941aaf728c82034eccf596319c47f1f21c2b2484255a
|
data/Gemfile.lock
CHANGED
data/lib/twitch/objects/video.rb
CHANGED
|
@@ -11,11 +11,15 @@ module Twitch
|
|
|
11
11
|
|
|
12
12
|
# Generates the Large Thumbnail image URL
|
|
13
13
|
def generate_thumbnail_url_large
|
|
14
|
+
return "" if thumbnail_url.empty?
|
|
15
|
+
|
|
14
16
|
thumbnail_url.gsub("%{width}", "640").gsub("%{height}", "360")
|
|
15
17
|
end
|
|
16
18
|
|
|
17
19
|
# Generates a Storyboard/Animated image URL
|
|
18
20
|
def generate_animated_url
|
|
21
|
+
return "" if thumbnail_url.empty?
|
|
22
|
+
|
|
19
23
|
thumb = thumbnail_url.dup
|
|
20
24
|
thumb.gsub!("https://static-cdn.jtvnw.net/cf_vods/", "").gsub!("/thumb/thumb0-%{width}x%{height}.jpg", "storyboards/#{id}-strip-0.jpg")
|
|
21
25
|
split = thumb.split("/")
|
data/lib/twitch/version.rb
CHANGED