reddit-to-telegram 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecdbf9518073fb5abee3426d73fd77d6b13348402f5d5956e0016af2b0caad17
|
4
|
+
data.tar.gz: fb2f9c1c27460bd39155056e18fd82014fc351493b8ea7c3e9fe8d96aa2c9bd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20b41766ff2cc135d314299275617faa21374064cf3fa3ce583ac39c595ef6008a84d4267514be0e020fdce89cb8f98cb191d211d8cefe8b551e4f941afffb32
|
7
|
+
data.tar.gz: 5743d4057fc405dcf43758b53fe4e6de1cfda2758af603e9a3eeea9cafa070ebf98e1835f2b710d5a44f4d674956b289a6e47bed7ce3204abb1e3d0d8ad9c74c
|
@@ -9,6 +9,8 @@ module RedditToTelegram
|
|
9
9
|
class << self
|
10
10
|
def try_extract(data)
|
11
11
|
full_url = decode_imgur_url(data)
|
12
|
+
return unless full_url
|
13
|
+
|
12
14
|
video_url = extract_video_url(full_url)
|
13
15
|
width = extract_video_width(full_url)
|
14
16
|
return if video_url.nil? || width.nil?
|
@@ -23,6 +25,8 @@ module RedditToTelegram
|
|
23
25
|
.dig("media_embed", "content")
|
24
26
|
&.match(/src=\"\S+schema=imgur\"/)&.to_s
|
25
27
|
&.gsub(/src=\"|\"/, 'src=\"' => "", '\"' => "")
|
28
|
+
return unless encoded_url
|
29
|
+
|
26
30
|
CGI.unescape(encoded_url)
|
27
31
|
end
|
28
32
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reddit-to-telegram
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Tityuk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-simpledb
|