spotify-to-mp3 0.5 → 0.5.1

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.
@@ -9,19 +9,21 @@ module SpotifyToMp3
9
9
  file = ARGV.first or raise "No songs file specified. Usage: #{$0} file"
10
10
  FileTrackIds.new(file).each do |track_id|
11
11
  begin
12
- puts "Resolving \"#{track_id}\" ".blue
12
+ puts "Resolving \"#{track_id}\""
13
13
  track = @track_id_resolver.resolve(track_id)
14
14
 
15
- puts "Searching \"#{track}\" on Grooveshark ".blue
15
+ puts "Searching \"#{track}\" on Grooveshark"
16
16
  grooveshark_track = @grooveshark.get_track(track.grooveshark_query)
17
17
 
18
- puts "Downloading \"#{grooveshark_track}\" ".blue
19
- if File.exists? grooveshark_track.filename
20
- FileUtils.touch grooveshark_track.filename # To know about songs no longer in download list
21
- puts "Already exists, skipping".green
18
+ print "Found \"#{grooveshark_track}\""
19
+ if File.exists?(grooveshark_track.filename)
20
+ # To know about songs no longer in download list
21
+ FileUtils.touch grooveshark_track.filename
22
+
23
+ puts ", already exists, skipping"
22
24
  else
25
+ puts ", downloading..."
23
26
  @grooveshark.download(grooveshark_track)
24
- puts "Done".green
25
27
  end
26
28
  rescue Exception => exception # For some reason without the "Exception" it is ignored
27
29
  puts exception.message.red
@@ -2,7 +2,7 @@ Gem::Specification.new do |gem|
2
2
  gem.name = 'spotify-to-mp3'
3
3
  gem.summary = 'Spotify to MP3'
4
4
  gem.description = 'Download Spotify tracks as MP3 files from Grooveshark'
5
- gem.version = '0.5'
5
+ gem.version = '0.5.1'
6
6
  gem.author = 'Francesc Rosàs'
7
7
  gem.email = 'francescrosasbosque@gmail.com'
8
8
  gem.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.5'
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: