ruby-youtube-dl 0.0.4 → 0.0.5
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.
|
@@ -5,7 +5,10 @@ module YoutubeDL
|
|
|
5
5
|
end
|
|
6
6
|
|
|
7
7
|
def self.download_audio(url, location="/tmp/")
|
|
8
|
-
|
|
8
|
+
output = `ruby-youtube-dl --no-progress --extract-audio --audio-format=mp3 --output="#{location}%(stitle)s-%(uploader)s-%(autonumber)s.mp3" #{url}`.strip
|
|
9
|
+
file_path = output.match(/.+Destination: (.+)/)[1]
|
|
10
|
+
|
|
11
|
+
open(file_path)
|
|
9
12
|
end
|
|
10
13
|
end
|
|
11
14
|
end
|
data/ruby-youtube-dl.gemspec
CHANGED
|
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
|
7
7
|
s.version = YoutubeDL::VERSION
|
|
8
8
|
s.authors = ["Ben Morris"]
|
|
9
9
|
s.email = ["ben@bnmrrs.com"]
|
|
10
|
-
s.homepage = ""
|
|
10
|
+
s.homepage = "https://github.com/bnmrrs/ruby-youtube-dl"
|
|
11
11
|
s.summary = %q{Wrapper around the youtube-dl python lib}
|
|
12
12
|
s.description = %q{Wraps youtube-dl for easy package management}
|
|
13
13
|
|
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
|
15
15
|
|
|
16
16
|
s.files = `git ls-files`.split("\n")
|
|
17
17
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
18
|
-
s.executables
|
|
18
|
+
s.executables << 'ruby-youtube-dl'
|
|
19
19
|
s.require_paths = ["lib"]
|
|
20
20
|
|
|
21
21
|
# specify any dependencies here; for example:
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-youtube-dl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 21
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 5
|
|
10
|
+
version: 0.0.5
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Ben Morris
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-10-
|
|
18
|
+
date: 2011-10-27 00:00:00 -04:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies: []
|
|
21
21
|
|
|
@@ -24,7 +24,6 @@ email:
|
|
|
24
24
|
- ben@bnmrrs.com
|
|
25
25
|
executables:
|
|
26
26
|
- ruby-youtube-dl
|
|
27
|
-
- youtube-dl.py
|
|
28
27
|
extensions: []
|
|
29
28
|
|
|
30
29
|
extra_rdoc_files: []
|
|
@@ -40,7 +39,7 @@ files:
|
|
|
40
39
|
- lib/ruby-youtube-dl/version.rb
|
|
41
40
|
- ruby-youtube-dl.gemspec
|
|
42
41
|
has_rdoc: true
|
|
43
|
-
homepage:
|
|
42
|
+
homepage: https://github.com/bnmrrs/ruby-youtube-dl
|
|
44
43
|
licenses: []
|
|
45
44
|
|
|
46
45
|
post_install_message:
|