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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5df26b5099aa1d35f7f499ed7eeb85a421e0b764
4
- data.tar.gz: 39efad06fe6990218ca9a6ea442740ca80c8a893
3
+ metadata.gz: f2d902814de164474bfcfb6594e108e6efcbc308
4
+ data.tar.gz: 7917ab0f979ac3cca21f2c0d4b098c17304066cc
5
5
  SHA512:
6
- metadata.gz: 598f9b5cb8e6d6e6f1f773b5f66a3bd6df0ffca5182dc9d3ae745741645e1066a39a9543b0f11ae16e50d71694d730edb510bbfd72056472748bf7f681c7f4cb
7
- data.tar.gz: 7290a44e77381f52749c560af521560ff6715dd6f82789114bfc5af20b32219814794bd10da1ec62ce70b60879e1730823cbeba4c2b9bfafa4c2c89ce1c7535a
6
+ metadata.gz: 82ae4432087633d48ada6368d3b85dc40404d4c1733c484f11e11d8e35d4df917b13ff7f71e5e089b756d4165831cb67db60b1ecb97f121a547aff1b71d9b44b
7
+ data.tar.gz: b84a9015cb9bcbf4b52f206c7dc5b7770ee75a8a9de1ab7cf8cb103fbc5ccb244996b963affbe326fe8b84a96220e8c979429f652fed161143dcd49c7a06b0f8
@@ -12,5 +12,5 @@ require_relative "muzak/instance"
12
12
  # The primary namespace for muzak.
13
13
  module Muzak
14
14
  # Muzak's current version
15
- VERSION = "0.3.4".freeze
15
+ VERSION = "0.3.5".freeze
16
16
  end
@@ -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
- Utils.which?("mpv")
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
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.1'
33
+ version: '1.2'
34
34
  - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: 1.1.0
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.1'
43
+ version: '1.2'
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 1.1.0
46
+ version: 1.2.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: vlc-client
49
49
  requirement: !ruby/object:Gem::Requirement