ruby-youtube-dl 0.0.3 → 0.0.4

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.
@@ -1,11 +1,11 @@
1
1
  module YoutubeDL
2
2
  class Downloader
3
3
  def self.download_video(url)
4
- `ruby-youtube-dl --no-progress --get-filename -q #{url}`.strip
4
+ `ruby-youtube-dl --no-progress --get-filename #{url}`.strip
5
5
  end
6
6
 
7
- def self.download_audio(url)
8
- `ruby-youtube-dl --no-progress --get-filename --extract-audio --audio-format=mp3 -tAq #{url}`.strip
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
9
9
  end
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module YoutubeDL
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ben Morris