muzak 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/muzak.rb +1 -1
- data/lib/muzak/player/mpv.rb +6 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2d902814de164474bfcfb6594e108e6efcbc308
|
4
|
+
data.tar.gz: 7917ab0f979ac3cca21f2c0d4b098c17304066cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82ae4432087633d48ada6368d3b85dc40404d4c1733c484f11e11d8e35d4df917b13ff7f71e5e089b756d4165831cb67db60b1ecb97f121a547aff1b71d9b44b
|
7
|
+
data.tar.gz: b84a9015cb9bcbf4b52f206c7dc5b7770ee75a8a9de1ab7cf8cb103fbc5ccb244996b963affbe326fe8b84a96220e8c979429f652fed161143dcd49c7a06b0f8
|
data/lib/muzak.rb
CHANGED
data/lib/muzak/player/mpv.rb
CHANGED
@@ -10,7 +10,7 @@ module Muzak
|
|
10
10
|
class MPV < StubPlayer
|
11
11
|
# @return [Boolean] whether or not MPV is available for execution
|
12
12
|
def self.available?
|
13
|
-
|
13
|
+
::MPV::Server.available?
|
14
14
|
end
|
15
15
|
|
16
16
|
# @return [Boolean] whether or not the current instance is running.
|
@@ -41,6 +41,11 @@ module Muzak
|
|
41
41
|
|
42
42
|
mpv_args << "--geometry=#{Config.art_geometry}" if Config.art_geometry
|
43
43
|
|
44
|
+
# this is an experimental flag, but it could improve
|
45
|
+
# muzak's load times substantially when used with a network
|
46
|
+
# mounted music library
|
47
|
+
mpv_args << "--prefetch-playlist" if ::MPV::Server.has_flag?("--prefetch-playlist")
|
48
|
+
|
44
49
|
@mpv = ::MPV::Session.new(user_args: mpv_args)
|
45
50
|
@mpv.callbacks << ::MPV::Callback.new(self, :dispatch_event!)
|
46
51
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: muzak
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Woodruff
|
@@ -30,20 +30,20 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.2'
|
34
34
|
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 1.
|
36
|
+
version: 1.2.0
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
41
|
- - "~>"
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '1.
|
43
|
+
version: '1.2'
|
44
44
|
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 1.
|
46
|
+
version: 1.2.0
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: vlc-client
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|