soundcloud9000 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 85f45eb6382c77b4b5e6f025727a32c0136be683
4
- data.tar.gz: 3a789fdcb6e2a325e0b82d6ac4b49ec5efccc249
2
+ SHA256:
3
+ metadata.gz: 7f771f6bdfe8507cce56e6f9aa8420a90d4003d8a1cef64460469ac416d1ef2d
4
+ data.tar.gz: 7da9f7caa4bd7c1f3fc3549e45e2f45c0ae8d3e5402b5c488955c927002b5577
5
5
  SHA512:
6
- metadata.gz: 84f960223f42c5e507f2378eb602a8ca987bb3b6d7b376c373c2486353909f96be3d6099b8023cf5df4060ca573b0a1d22e33ec2a59304cd6a72931638732bb8
7
- data.tar.gz: 20463d46b7aca681a04e5207f39d22571dc4164da1d044208292ce259c317588cf170d85ee4af6f589f7e705f509581f8a64533f94f859b02ffd95c65f3464b4
6
+ metadata.gz: 319d60b29170f40b7a4d0ee6918649b8defd4cbd5bdaa1b2a6126f72027bf5d3ca79d69548f07a424bfd010e151d616d40c7916e798f93186919ec84accc7fdd
7
+ data.tar.gz: f77256f838144314d54f78da6fe9a70c6005904be84b6448c3e1d3804f786cdc76e098fa9c26a60441acabc48bda59bc5566927ee89e15286402cfd7dff4c1db
data/README.md CHANGED
@@ -6,7 +6,7 @@ The next generation SoundCloud client. Without all these stupid CSS files. Runs
6
6
 
7
7
  ![Screen Shot 2019-04-28 at 20 42 40](https://user-images.githubusercontent.com/31281983/56872460-74dd2780-69f7-11e9-9d7e-247757a9a6fd.png)
8
8
 
9
- ![Screen Shot 2013-01-20 at 15 37 54](https://f.cloud.github.com/assets/3432/81281/06b05df4-630f-11e2-8b55-7f3c18126831.png)
9
+ ![Screen Shot 2019-05-26 at 13 37 32](https://user-images.githubusercontent.com/31281983/58385263-8811f180-7fbb-11e9-98db-22d5578ce655.png)
10
10
 
11
11
  This hack was originally built at the [Music Hack Day Stockholm 2013](http://stockholm.musichackday.org/2013).
12
12
 
@@ -26,7 +26,7 @@ See [this comment](https://github.com/grobie/soundcloud2000/issues/93#issuecomme
26
26
 
27
27
  ## Installation
28
28
 
29
- Assuming you have Ruby/RubyGems installed, you need portaudio and mpg123 installed as libraries to compile the native extensions.
29
+ Assuming you have Ruby/RubyGems installed, you need `portaudio` and `mpg123` installed as libraries to compile the native extensions.
30
30
 
31
31
  ### macOS
32
32
 
@@ -2,7 +2,6 @@ require_relative 'soundcloud9000/client'
2
2
  require_relative 'soundcloud9000/application'
3
3
 
4
4
  module Soundcloud9000
5
-
6
5
  def self.start
7
6
  unless client_id = ENV['SC_CLIENT_ID']
8
7
  puts 'You need to set SC_CLIENT_ID to a valid client ID'
@@ -79,7 +79,7 @@ module Soundcloud9000
79
79
  case key
80
80
  when :left, :right, :space, :one, :two, :three, :four, :five, :six, :seven, :eight, :nine
81
81
  @player_controller.events.trigger(:key, key)
82
- when :down, :up, :enter, :u, :f, :s, :j, :k, :m, :h
82
+ when :down, :up, :enter, :u, :f, :s, :j, :k, :m, :h, :o
83
83
  @track_controller.events.trigger(:key, key)
84
84
  end
85
85
  end
@@ -57,7 +57,6 @@ module Soundcloud9000
57
57
  @tracks.shuffle = !@tracks.shuffle
58
58
  UI::Input.message("Shuffle #{@tracks.shuffle ? 'enabled' : 'disabled'}.")
59
59
  when :h
60
- puts "h"
61
60
  @tracks.help = !@tracks.help
62
61
  if @tracks.help
63
62
  height = 40
@@ -73,26 +72,27 @@ module Soundcloud9000
73
72
  win.addstr('-' * width)
74
73
  win.setpos(help.lines.count + 1, 3)
75
74
  shortcuts = %(
76
- Shortcuts:
77
- [enter] play selected track from beginning
78
- [down]/j select track below currently selected track
79
- [up]/k select track above currently selected track
80
- [space] play or pause the current track
81
- [right]/[left] move backward or forward in current track
82
- 1 jump to the time at 1/10 of the current track
83
- 2 jump to the time at 2/10 of the current track
84
- 3 jump to the time at 3/10 of the current track
85
- 4 jump to the time at 4/10 of the current track
86
- 5 jump to the time at 5/10 of the current track
87
- 6 jump to the time at 6/10 of the current track
88
- 7 jump to the time at 7/10 of the current track
89
- 8 jump to the time at 8/10 of the current track
90
- 9 jump to the time at 9/10 of the current track
91
- u play tracks of different users
92
- f play favorites from a user
93
- s play sets/playlists from a user
94
- m play songs in random order
95
- h toggle this help screen
75
+ Shortcuts:
76
+ [enter]/[ctrl-J] play selected track from beginning
77
+ [down]/j select track below currently selected track
78
+ [up]/k select track above currently selected track
79
+ [space] play or pause the current track
80
+ [right]/[left] move backward or forward in current track
81
+ 1 jump to the time at 1/10 of the current track
82
+ 2 jump to the time at 2/10 of the current track
83
+ 3 jump to the time at 3/10 of the current track
84
+ 4 jump to the time at 4/10 of the current track
85
+ 5 jump to the time at 5/10 of the current track
86
+ 6 jump to the time at 6/10 of the current track
87
+ 7 jump to the time at 7/10 of the current track
88
+ 8 jump to the time at 8/10 of the current track
89
+ 9 jump to the time at 9/10 of the current track
90
+ u play tracks of different users
91
+ f play favorites from a user
92
+ s play sets/playlists from a user
93
+ m play songs in random order
94
+ h toggle this help screen
95
+ o change order of tracks
96
96
  )
97
97
  win.addstr(shortcuts)
98
98
  win.box('|', '-')
@@ -102,6 +102,8 @@ module Soundcloud9000
102
102
  else
103
103
  @tracks.clear_and_replace
104
104
  end
105
+ when :o
106
+ p 'order'
105
107
  end
106
108
  end
107
109
  end
@@ -38,10 +38,6 @@ module Soundcloud9000
38
38
  TimeHelper.duration(duration)
39
39
  end
40
40
 
41
- def plays
42
- @hash['playback_count']
43
- end
44
-
45
41
  def likes
46
42
  @hash['favoritings_count']
47
43
  end
@@ -28,7 +28,8 @@ module Soundcloud9000
28
28
  '9' => :nine,
29
29
  'f' => :f,
30
30
  'm' => :m,
31
- 'h' => :h
31
+ 'h' => :h,
32
+ 'o' => :o
32
33
  }.freeze
33
34
 
34
35
  def self.get(delay = 0)
@@ -59,6 +60,10 @@ module Soundcloud9000
59
60
  Curses.clrtoeol
60
61
  Curses.attron(Color.get(:red)) { Curses.addstr(output) }
61
62
  end
63
+
64
+ def self.menu(_options)
65
+ p 'menu????'
66
+ end
62
67
  end
63
68
  end
64
69
  end
@@ -53,7 +53,7 @@ module Soundcloud9000
53
53
  end
54
54
 
55
55
  def track_info
56
- "#{track.plays} Plays | #{track.likes} Likes | #{track.comments} Comments | #{track.url}"
56
+ "#{track.likes} Likes | #{track.comments} Comments | #{track.url}"
57
57
  end
58
58
 
59
59
  def duration
@@ -6,8 +6,8 @@ module Soundcloud9000
6
6
  class TracksTable < UI::Table
7
7
  def initialize(*args)
8
8
  super
9
- self.header = %w[Title User Length Plays Likes Comments]
10
- self.keys = %i[title username length plays likes comments]
9
+ self.header = %w[Title User Length Likes Comments]
10
+ self.keys = %i[title username length likes comments]
11
11
  end
12
12
  end
13
13
  end
@@ -2,7 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "soundcloud9000"
5
- s.version = "0.1.2"
5
+ s.version = "0.1.3"
6
6
  s.authors = ["Tobias Schmidt", "Matthias Georgi", "Sumanth Ratna"]
7
7
  s.email = "sratna@sumanthratna.gq"
8
8
  s.homepage = "http://www.github.com/sumanthratna/soundcloud9000"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: soundcloud9000
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Schmidt
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-05-25 00:00:00.000000000 Z
13
+ date: 2019-07-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -162,8 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  requirements:
163
163
  - PortAudio
164
164
  - mpg123
165
- rubyforge_project:
166
- rubygems_version: 2.5.2.3
165
+ rubygems_version: 3.0.3
167
166
  signing_key:
168
167
  specification_version: 4
169
168
  summary: SoundCloud without the stupid CSS files