discog-get 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +24 -16
- data/exe/disget +1 -2
- data/lib/disget/version.rb +1 -1
- data/lib/disget.rb +0 -5
- 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: 3c20cd4a46ed70ef0915ca9221bdf3e21d206a2b
|
4
|
+
data.tar.gz: 2fbba9352a4fbce623e9cc41495018bf9249e600
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77a004704592054c08c6b21e017e580fab0e2017bc55591bf0aaa88cf49855c12f7dcd15a881e39057bfd20a9e097388a1a42f3b642303338cb5d611b04a3bea
|
7
|
+
data.tar.gz: e4d770a692a15460b542d770861793cc825fad6cbac3c74ce42612f3223122a6dc52a671d01d7e2843031581958e1f236b19f518af05a68da3e200b950cd95f5
|
data/README.md
CHANGED
@@ -1,38 +1,46 @@
|
|
1
|
-
#
|
1
|
+
# discog-get
|
2
2
|
|
3
|
-
|
3
|
+
Download mp3 tracks from youtube using discog release as source.
|
4
4
|
|
5
|
-
##
|
5
|
+
## dependencies
|
6
6
|
|
7
|
-
|
7
|
+
Mac:
|
8
8
|
|
9
|
-
|
10
|
-
gem 'disget'
|
11
|
-
```
|
9
|
+
brew install youtube-dl ffmpeg
|
12
10
|
|
13
|
-
|
11
|
+
Ubuntu:
|
14
12
|
|
15
|
-
|
13
|
+
sudo apt-get install ffmpeg
|
16
14
|
|
17
|
-
|
15
|
+
sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
|
16
|
+
sudo chmod a+rx /usr/local/bin/youtube-dl
|
18
17
|
|
19
|
-
|
18
|
+
## installation
|
20
19
|
|
21
|
-
## Usage
|
22
20
|
|
23
|
-
|
21
|
+
gem install discog-get
|
24
22
|
|
25
|
-
##
|
23
|
+
## usage
|
24
|
+
|
25
|
+
disget release-id
|
26
|
+
|
27
|
+
Example:
|
28
|
+
|
29
|
+
https://www.discogs.com/Shadow-Child-Shadow-Child-EP/release/3579913
|
30
|
+
|
31
|
+
disget 3579913
|
32
|
+
|
33
|
+
## development
|
26
34
|
|
27
35
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
28
36
|
|
29
37
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
30
38
|
|
31
|
-
##
|
39
|
+
## contributing
|
32
40
|
|
33
41
|
Bug reports and pull requests are welcome on GitHub at https://github.com/arubinofaux/discog-get. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
34
42
|
|
35
43
|
|
36
|
-
##
|
44
|
+
## license
|
37
45
|
|
38
46
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/exe/disget
CHANGED
@@ -6,7 +6,6 @@ require "discogs-wrapper"
|
|
6
6
|
discog = Discogs::Wrapper.new("disget")
|
7
7
|
|
8
8
|
disget = Disget::Robot.new
|
9
|
-
# puts disget.say_hello
|
10
9
|
|
11
10
|
options = {}
|
12
11
|
option_parser = OptionParser.new do |opts|
|
@@ -20,7 +19,7 @@ end
|
|
20
19
|
option_parser.parse!
|
21
20
|
|
22
21
|
if options[:version]
|
23
|
-
puts "Version: #{Disget::
|
22
|
+
puts "Version: #{Disget::VERSION}"
|
24
23
|
puts " "
|
25
24
|
end
|
26
25
|
|
data/lib/disget/version.rb
CHANGED
data/lib/disget.rb
CHANGED
@@ -4,11 +4,6 @@ require "httparty"
|
|
4
4
|
|
5
5
|
module Disget
|
6
6
|
class Robot
|
7
|
-
|
8
|
-
def say_hello
|
9
|
-
puts 'This is zerp. Coming in loud and clear. Over.'
|
10
|
-
end
|
11
|
-
|
12
7
|
def search(string)
|
13
8
|
youtube_search = Nokogiri::HTML(HTTParty.get("https://www.youtube.com/results?search_query=#{string}"))
|
14
9
|
first_result = youtube_search.css("#results .section-list .item-section li").first
|