extractula 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/extractula.rb +1 -1
- data/lib/extractula/extractor.rb +1 -1
- data/lib/extractula/oembed.rb +3 -3
- metadata +2 -2
data/lib/extractula.rb
CHANGED
data/lib/extractula/extractor.rb
CHANGED
data/lib/extractula/oembed.rb
CHANGED
@@ -98,15 +98,15 @@ module Extractula
|
|
98
98
|
end
|
99
99
|
|
100
100
|
def title
|
101
|
-
oembed.title
|
101
|
+
oembed ? oembed.title : super
|
102
102
|
end
|
103
103
|
|
104
104
|
def image_urls
|
105
|
-
[ oembed.url ] if oembed.type == 'photo'
|
105
|
+
[ oembed.url ] if oembed && oembed.type == 'photo'
|
106
106
|
end
|
107
107
|
|
108
108
|
def video_embed
|
109
|
-
oembed.html
|
109
|
+
oembed.html if oembed
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|