fyt 1.1.1.pre2 → 1.1.1.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fyt/builder.rb +4 -1
- data/lib/fyt/parser.rb +4 -1
- data/lib/fyt/storage.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99ddb6f0c28e0097332cb98626c6e61d00bceba8
|
4
|
+
data.tar.gz: 8e9c2f6adaad7f08292822110b29d76496827a05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af08b83bedaee9a4d401e286054df76ab17da29fca377e9614564df7e8ee01f70801a18c8273ed6c6589effe832bf392ca7dd39631e9a1808ec5cbb9863941a6
|
7
|
+
data.tar.gz: b5e871f6448e936f9fec127206034f054d60d4b09d555b953f20403af7e87717b236663fd4c334ca7ef71f9c927cb80766ea9647b4ef24c97817c73b1cfd1305
|
data/lib/fyt/builder.rb
CHANGED
@@ -53,7 +53,10 @@ module FYT
|
|
53
53
|
rescue OpenURI::HTTPError => e
|
54
54
|
logger.debug "OpenURI::HTTPError: #{e.message}"
|
55
55
|
rescue
|
56
|
-
|
56
|
+
@add_image_counter ||= 0
|
57
|
+
@add_image_counter += 1
|
58
|
+
|
59
|
+
add_image(youtube_url, title) if @add_image_counter < 3
|
57
60
|
end
|
58
61
|
|
59
62
|
def add_item(link, title, filename)
|
data/lib/fyt/parser.rb
CHANGED
data/lib/fyt/storage.rb
CHANGED
@@ -66,7 +66,10 @@ module FYT
|
|
66
66
|
|
67
67
|
execute "youtube-dl #{options_string}"
|
68
68
|
rescue
|
69
|
-
|
69
|
+
@download_counter ||= 0
|
70
|
+
@download_counter += 1
|
71
|
+
|
72
|
+
download_file!(url, output_path) if @download_counter < 3
|
70
73
|
end
|
71
74
|
|
72
75
|
def execute(command_string)
|