spotify-to-mp3 0.1 → 0.2
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.
- data/README.markdown +1 -1
- data/bin/spotify-to-mp3 +17 -9
- data/spotify-to-mp3.gemspec +1 -1
- metadata +5 -5
data/README.markdown
CHANGED
data/bin/spotify-to-mp3
CHANGED
@@ -76,13 +76,21 @@ class SpotifyToMp3
|
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
79
|
+
begin
|
80
|
+
spotifyToMp3 = SpotifyToMp3.new(lambda { |message| puts message })
|
81
|
+
|
82
|
+
file = ARGV.first
|
83
|
+
raise "No songs file specified. Usage: #{$0} file" if file.nil?
|
84
|
+
|
85
|
+
File.open(file).each_line{|spotify_uri|
|
86
|
+
spotify_uri.strip!
|
87
|
+
next if spotify_uri.empty?
|
88
|
+
begin
|
89
|
+
spotifyToMp3.download_song(spotify_uri)
|
90
|
+
rescue
|
91
|
+
puts "ERROR: #{$!}".red
|
92
|
+
end
|
93
|
+
}
|
94
|
+
rescue
|
95
|
+
puts "ERROR: #{$!}".red
|
88
96
|
end
|
data/spotify-to-mp3.gemspec
CHANGED
@@ -2,7 +2,7 @@ Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'spotify-to-mp3'
|
3
3
|
s.summary = 'Spotify to MP3'
|
4
4
|
s.description = 'Download MP3 files of Spotify tracks'
|
5
|
-
s.version = '0.
|
5
|
+
s.version = '0.2'
|
6
6
|
s.author = 'Francesc Rosàs'
|
7
7
|
s.email = 'francescrosasbosque@gmail.com'
|
8
8
|
s.homepage = 'https://github.com/frosas/spotify-to-mp3'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spotify-to-mp3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.2'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-09-20 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: grooveshark
|
16
|
-
requirement: &
|
16
|
+
requirement: &70109439924580 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70109439924580
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: colorize
|
27
|
-
requirement: &
|
27
|
+
requirement: &70109439923080 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70109439923080
|
36
36
|
description: Download MP3 files of Spotify tracks
|
37
37
|
email: francescrosasbosque@gmail.com
|
38
38
|
executables:
|