Class: KodiClient::Methods::VideoLibrary

Inherits:
KodiMethod
  • Object
show all
Defined in:
lib/kodi_client/methods/video_library.rb

Overview

contains all Kodi System methods

Constant Summary collapse

CLEAN =
'clean'

Instance Method Summary collapse

Methods inherited from KodiMethod

#apply_options, #invoke_api

Instance Method Details

#clean(show_dialogs = true, content = Types::Video::VideoContentType::VIDEO, directory = '', kodi_id = 1) ⇒ Object



10
11
12
13
14
15
# File 'lib/kodi_client/methods/video_library.rb', line 10

def clean(show_dialogs = true, content = Types::Video::VideoContentType::VIDEO, directory = '', kodi_id = 1)
  request = KodiRequest.new(kodi_id, CLEAN, { 'showdialogs' => show_dialogs, 'content' => content,
                                              'directory' => directory })
  json = invoke_api(request)
  KodiResponse.new(json)
end