fyt 1.0.0.pre.2 → 1.0.0.pre.3
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/lib/fyt/storage.rb +11 -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: 052ee539cd4b20de67b85befc75e62940abb31f4
|
|
4
|
+
data.tar.gz: 04e9dad932dcbdbc629e3ab5bb15abc4df7485bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cb945a3b1cac8046f658085580359e7eddcab6aece23519e4f644a5433eb4ae7fad4e78c431a0d9906e65539e1fcbc6926b314c582cf8972634e6efaa25fd76b
|
|
7
|
+
data.tar.gz: 30f3783c9f794c3fe63e725affa5a3a11fc0aa4f6600dea0eff03a48078165d012801f4b06db6a63aedc80f06529762762235f379ca2c4382bb9741351cc20c9
|
data/lib/fyt/storage.rb
CHANGED
|
@@ -62,7 +62,17 @@ module FYT
|
|
|
62
62
|
|
|
63
63
|
logger.debug "Executing: youtube-dl #{options_string}"
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
execute "youtube-dl #{options_string}"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
def execute(command_string)
|
|
69
|
+
IO.pipe do |read_io, write_io|
|
|
70
|
+
break if system(command_string, out: write_io, err: :out)
|
|
71
|
+
|
|
72
|
+
write_io.close
|
|
73
|
+
logger.error read_io.read
|
|
74
|
+
raise
|
|
75
|
+
end
|
|
66
76
|
end
|
|
67
77
|
|
|
68
78
|
def delete_file!(filename)
|