kodi_client 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/kodi_client.gemspec +1 -1
- data/lib/kodi_client/Chainable.rb +0 -2
- data/lib/kodi_client/kodi_module.rb +0 -7
- data/lib/kodi_client/method/addons.rb +1 -5
- data/lib/kodi_client/method/application.rb +1 -4
- data/lib/kodi_client/method/audio_library.rb +1 -4
- data/lib/kodi_client/method/favourites.rb +1 -4
- data/lib/kodi_client/method/files.rb +1 -5
- data/lib/kodi_client/method/gui.rb +1 -4
- data/lib/kodi_client/method/input.rb +1 -5
- data/lib/kodi_client/method/player.rb +1 -6
- data/lib/kodi_client/method/profiles.rb +1 -4
- data/lib/kodi_client/method/system.rb +1 -5
- data/lib/kodi_client/{global_types → types}/addon_types.rb +2 -5
- data/lib/kodi_client/{global_types → types}/application_types.rb +0 -4
- data/lib/kodi_client/{global_types → types}/audio_types.rb +0 -5
- data/lib/kodi_client/{global_types → types}/favourites_types.rb +0 -5
- data/lib/kodi_client/{global_types → types}/files_types.rb +0 -5
- data/lib/kodi_client/{global_types → types}/global_types.rb +0 -4
- data/lib/kodi_client/{global_types → types}/gui_types.rb +0 -5
- data/lib/kodi_client/{global_types → types}/input_types.rb +0 -2
- data/lib/kodi_client/{global_types → types}/item_types.rb +0 -0
- data/lib/kodi_client/{global_types → types}/list_types.rb +0 -6
- data/lib/kodi_client/{global_types → types}/media_types.rb +0 -5
- data/lib/kodi_client/{global_types → types}/player_type.rb +0 -6
- data/lib/kodi_client/{global_types → types}/profiles_types.rb +0 -5
- data/lib/kodi_client/{global_types → types}/pvr_type.rb +0 -2
- data/lib/kodi_client/{global_types → types}/system_types.rb +0 -4
- data/lib/kodi_client/{global_types → types}/video_types.rb +0 -5
- data/lib/kodi_client.rb +34 -10
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23953ca4422d697b3b13a223f63b339acc5d4d4fdb8c7accccdc5f0b7f85f9cb
|
4
|
+
data.tar.gz: 92e3d514686cdddddcc16a1be9046ba56a8d31e039316fb98ab98dca45a864db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 734b5574d16a2deac4a88f81f6d3b94f4a5cd9c769fbda34034a6f3b614c4a03b5c44f40060ad100d24e1a2e032de8ceb35107f6922a51fdc396d19db4207204
|
7
|
+
data.tar.gz: 1cbb33466f364232765025183bb4336c03913ff1f1ff9887a18cd7f221b4cd5fac2640671a3213e2049533888044b551b5a4738ce7c2f0219b1fe21b6c15d3b6
|
data/kodi_client.gemspec
CHANGED
@@ -1,8 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'http'
|
4
|
-
require 'kodi_client/util/comparable'
|
5
|
-
|
6
3
|
module KodiClient
|
7
4
|
|
8
5
|
# the client that stores
|
@@ -79,9 +76,5 @@ module KodiClient
|
|
79
76
|
def error?
|
80
77
|
!@error.nil?
|
81
78
|
end
|
82
|
-
|
83
|
-
def ==(other)
|
84
|
-
compare(self, other)
|
85
|
-
end
|
86
79
|
end
|
87
80
|
end
|
@@ -1,11 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'kodi_client/kodi_module'
|
4
|
-
require 'kodi_client/global_types/addon_types'
|
5
|
-
require 'kodi_client/global_types/list_types'
|
6
|
-
|
7
3
|
module KodiClient
|
8
|
-
module
|
4
|
+
module Method
|
9
5
|
# contains all Kodi Application methods
|
10
6
|
class Addons < KodiModule
|
11
7
|
|
@@ -1,11 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'kodi_client/kodi_module'
|
4
|
-
require 'kodi_client/global_types/files_types'
|
5
|
-
require 'kodi_client/global_types/list_types'
|
6
|
-
|
7
3
|
module KodiClient
|
8
|
-
module
|
4
|
+
module Method
|
9
5
|
# contains all Kodi Application methods
|
10
6
|
class Files < KodiModule
|
11
7
|
|
@@ -1,11 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'kodi_client/global_types/gui_types'
|
4
|
-
require 'kodi_client/kodi_module'
|
5
|
-
require 'kodi_client/global_types/input_types'
|
6
|
-
|
7
3
|
module KodiClient
|
8
|
-
module
|
4
|
+
module Method
|
9
5
|
# contains all Kodi Input methods
|
10
6
|
class Input < KodiModule
|
11
7
|
|
@@ -1,12 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'kodi_client/kodi_module'
|
4
|
-
require 'kodi_client/global_types/addon_types'
|
5
|
-
require 'kodi_client/global_types/list_types'
|
6
|
-
require 'kodi_client/global_types/player_type'
|
7
|
-
|
8
3
|
module KodiClient
|
9
|
-
module
|
4
|
+
module Method
|
10
5
|
# contains all Kodi Application methods
|
11
6
|
class Player < KodiModule
|
12
7
|
|
@@ -1,11 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'kodi_client/global_types/gui_types'
|
4
|
-
require 'kodi_client/kodi_module'
|
5
|
-
require 'kodi_client/global_types/system_types'
|
6
|
-
|
7
3
|
module KodiClient
|
8
|
-
module
|
4
|
+
module Method
|
9
5
|
# contains all Kodi System methods
|
10
6
|
class System < KodiModule
|
11
7
|
|
@@ -1,10 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'kodi_client/
|
4
|
-
require 'kodi_client/
|
5
|
-
require 'kodi_client/util/comparable'
|
6
|
-
require 'kodi_client/util/iterable'
|
7
|
-
require 'kodi_client/util/creatable'
|
3
|
+
require 'kodi_client/types/item_types'
|
4
|
+
require 'kodi_client/types/list_types'
|
8
5
|
|
9
6
|
module KodiClient
|
10
7
|
module Types
|
File without changes
|
@@ -1,11 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'kodi_client/util/comparable'
|
4
|
-
require 'kodi_client/util/creatable'
|
5
|
-
require 'kodi_client/util/iterable'
|
6
|
-
require 'kodi_client/global_types/video_types'
|
7
|
-
require 'kodi_client/global_types/audio_types'
|
8
|
-
|
9
3
|
module KodiClient
|
10
4
|
module Types
|
11
5
|
module List
|
@@ -1,11 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'kodi_client/global_types/item_types'
|
4
|
-
require 'kodi_client/global_types/global_types'
|
5
|
-
require 'kodi_client/util/comparable'
|
6
|
-
require 'kodi_client/util/iterable'
|
7
|
-
require 'kodi_client/util/creatable'
|
8
|
-
|
9
3
|
module KodiClient
|
10
4
|
module Types
|
11
5
|
module Player
|
@@ -1,10 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'kodi_client/global_types/media_types'
|
4
|
-
require 'kodi_client/global_types/player_type'
|
5
|
-
require 'kodi_client/util/comparable'
|
6
|
-
require 'kodi_client/util/creatable'
|
7
|
-
|
8
3
|
module KodiClient
|
9
4
|
module Types
|
10
5
|
module Video
|
data/lib/kodi_client.rb
CHANGED
@@ -4,6 +4,14 @@ require 'http'
|
|
4
4
|
require 'json'
|
5
5
|
|
6
6
|
require 'kodi_client/Chainable'
|
7
|
+
|
8
|
+
require 'kodi_client/util/comparable'
|
9
|
+
require 'kodi_client/util/creatable'
|
10
|
+
require 'kodi_client/util/iterable'
|
11
|
+
|
12
|
+
require 'kodi_client/kodi_module'
|
13
|
+
require 'kodi_client/options'
|
14
|
+
|
7
15
|
require 'kodi_client/method/addons'
|
8
16
|
require 'kodi_client/method/audio_library'
|
9
17
|
require 'kodi_client/method/application'
|
@@ -15,6 +23,22 @@ require 'kodi_client/method/player'
|
|
15
23
|
require 'kodi_client/method/profiles'
|
16
24
|
require 'kodi_client/method/system'
|
17
25
|
|
26
|
+
require 'kodi_client/types/global_types'
|
27
|
+
require 'kodi_client/types/item_types'
|
28
|
+
require 'kodi_client/types/media_types'
|
29
|
+
require 'kodi_client/types/player_type'
|
30
|
+
require 'kodi_client/types/pvr_type'
|
31
|
+
require 'kodi_client/types/audio_types'
|
32
|
+
require 'kodi_client/types/video_types'
|
33
|
+
require 'kodi_client/types/system_types'
|
34
|
+
require 'kodi_client/types/list_types'
|
35
|
+
require 'kodi_client/types/application_types'
|
36
|
+
require 'kodi_client/types/addon_types'
|
37
|
+
require 'kodi_client/types/gui_types'
|
38
|
+
require 'kodi_client/types/favourites_types'
|
39
|
+
require 'kodi_client/types/profiles_types'
|
40
|
+
require 'kodi_client/types/input_types'
|
41
|
+
require 'kodi_client/types/files_types'
|
18
42
|
|
19
43
|
# client for Kodi rest api https://kodi.wiki/view/JSON-RPC_API/v12
|
20
44
|
module KodiClient
|
@@ -27,16 +51,16 @@ module KodiClient
|
|
27
51
|
attr_reader :audio_library, :addons, :application, :favourites, :files, :gui, :input, :player, :profiles, :system
|
28
52
|
|
29
53
|
def initialize
|
30
|
-
@addons = KodiClient::
|
31
|
-
@audio_library = KodiClient::
|
32
|
-
@application = KodiClient::
|
33
|
-
@favourites = KodiClient::
|
34
|
-
@files = KodiClient::
|
35
|
-
@gui = KodiClient::
|
36
|
-
@input = KodiClient::
|
37
|
-
@player = KodiClient::
|
38
|
-
@profiles = KodiClient::
|
39
|
-
@system = KodiClient::
|
54
|
+
@addons = KodiClient::Method::Addons.new
|
55
|
+
@audio_library = KodiClient::Method::AudioLibrary.new
|
56
|
+
@application = KodiClient::Method::Application.new
|
57
|
+
@favourites = KodiClient::Method::Favourites.new
|
58
|
+
@files = KodiClient::Method::Files.new
|
59
|
+
@gui = KodiClient::Method::GUI.new
|
60
|
+
@input = KodiClient::Method::Input.new
|
61
|
+
@player = KodiClient::Method::Player.new
|
62
|
+
@profiles = KodiClient::Method::Profiles.new
|
63
|
+
@system = KodiClient::Method::System.new
|
40
64
|
end
|
41
65
|
|
42
66
|
def apply_options_to_methods(options)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kodi_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Feier
|
@@ -43,22 +43,6 @@ files:
|
|
43
43
|
- kodi_client.gemspec
|
44
44
|
- lib/kodi_client.rb
|
45
45
|
- lib/kodi_client/Chainable.rb
|
46
|
-
- lib/kodi_client/global_types/addon_types.rb
|
47
|
-
- lib/kodi_client/global_types/application_types.rb
|
48
|
-
- lib/kodi_client/global_types/audio_types.rb
|
49
|
-
- lib/kodi_client/global_types/favourites_types.rb
|
50
|
-
- lib/kodi_client/global_types/files_types.rb
|
51
|
-
- lib/kodi_client/global_types/global_types.rb
|
52
|
-
- lib/kodi_client/global_types/gui_types.rb
|
53
|
-
- lib/kodi_client/global_types/input_types.rb
|
54
|
-
- lib/kodi_client/global_types/item_types.rb
|
55
|
-
- lib/kodi_client/global_types/list_types.rb
|
56
|
-
- lib/kodi_client/global_types/media_types.rb
|
57
|
-
- lib/kodi_client/global_types/player_type.rb
|
58
|
-
- lib/kodi_client/global_types/profiles_types.rb
|
59
|
-
- lib/kodi_client/global_types/pvr_type.rb
|
60
|
-
- lib/kodi_client/global_types/system_types.rb
|
61
|
-
- lib/kodi_client/global_types/video_types.rb
|
62
46
|
- lib/kodi_client/kodi_module.rb
|
63
47
|
- lib/kodi_client/method/addons.rb
|
64
48
|
- lib/kodi_client/method/application.rb
|
@@ -71,6 +55,22 @@ files:
|
|
71
55
|
- lib/kodi_client/method/profiles.rb
|
72
56
|
- lib/kodi_client/method/system.rb
|
73
57
|
- lib/kodi_client/options.rb
|
58
|
+
- lib/kodi_client/types/addon_types.rb
|
59
|
+
- lib/kodi_client/types/application_types.rb
|
60
|
+
- lib/kodi_client/types/audio_types.rb
|
61
|
+
- lib/kodi_client/types/favourites_types.rb
|
62
|
+
- lib/kodi_client/types/files_types.rb
|
63
|
+
- lib/kodi_client/types/global_types.rb
|
64
|
+
- lib/kodi_client/types/gui_types.rb
|
65
|
+
- lib/kodi_client/types/input_types.rb
|
66
|
+
- lib/kodi_client/types/item_types.rb
|
67
|
+
- lib/kodi_client/types/list_types.rb
|
68
|
+
- lib/kodi_client/types/media_types.rb
|
69
|
+
- lib/kodi_client/types/player_type.rb
|
70
|
+
- lib/kodi_client/types/profiles_types.rb
|
71
|
+
- lib/kodi_client/types/pvr_type.rb
|
72
|
+
- lib/kodi_client/types/system_types.rb
|
73
|
+
- lib/kodi_client/types/video_types.rb
|
74
74
|
- lib/kodi_client/util/comparable.rb
|
75
75
|
- lib/kodi_client/util/creatable.rb
|
76
76
|
- lib/kodi_client/util/iterable.rb
|