soundcloud9000 0.1.2 → 0.1.3
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.
- checksums.yaml +5 -5
- data/README.md +2 -2
- data/lib/soundcloud9000.rb +0 -1
- data/lib/soundcloud9000/application.rb +1 -1
- data/lib/soundcloud9000/controllers/track_controller.rb +23 -21
- data/lib/soundcloud9000/models/track.rb +0 -4
- data/lib/soundcloud9000/ui/input.rb +6 -1
- data/lib/soundcloud9000/views/player_view.rb +1 -1
- data/lib/soundcloud9000/views/tracks_table.rb +2 -2
- data/soundcloud9000.gemspec +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7f771f6bdfe8507cce56e6f9aa8420a90d4003d8a1cef64460469ac416d1ef2d
|
4
|
+
data.tar.gz: 7da9f7caa4bd7c1f3fc3549e45e2f45c0ae8d3e5402b5c488955c927002b5577
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|

|
8
8
|
|
9
|
-

|
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
|
|
data/lib/soundcloud9000.rb
CHANGED
@@ -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
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
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
|
@@ -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
|
@@ -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
|
10
|
-
self.keys = %i[title username length
|
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
|
data/soundcloud9000.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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
|
-
|
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
|