Server Class (pylms.player.Server)¶
The Server class deals with the Logitech Media server and provides the main communication functions between the PyLMS API and the Logitech Media Server’s Telnet server.
-
class
pylms.server.
Server
(hostname='localhost', port=9090, username='', password='', charset='utf8')¶ -
connect
(update=True)¶ Connect
-
disconnect
()¶
-
get_player
(ref=None)¶ Get Player
-
get_player_count
()¶ Get Number Of Players
-
get_players
(update=True)¶ Get Players
-
get_version
()¶ Get Version
-
login
()¶ Login
-
request
(command_string, preserve_encoding=False)¶ Request
-
request_with_results
(command_string, preserve_encoding=False)¶ Request with results Return tuple (count, results, error_occurred)
-
rescan
(mode='fast')¶ Rescan library Mode can be ‘fast’ for update changes on library, ‘full’ for complete library scan and ‘playlists’ for playlists scan only
-
rescanprogress
()¶ Return current rescan progress
-
search
(term, mode='albums')¶ Search term in database
-
telnet_connect
()¶ Telnet Connect
-