ruby-youtube-dl 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,10 @@ module YoutubeDL
5
5
  end
6
6
 
7
7
  def self.download_audio(url, location="/tmp/")
8
- `./youtube-dl.py --no-progress --extract-audio --audio-format=mp3 --output="#{location}%(stitle)s-%(uploader)s-%(autonumber)s.mp3" #{url}`.strip
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
@@ -1,3 +1,3 @@
1
1
  module YoutubeDL
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -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 = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
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-26 00:00:00 -04:00
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: