sublime_music.app module
- class sublime_music.app.SublimeMusicApp(config_file)[source]
Bases:
gi.repository.Gtk.Application
- Parameters
config_file (pathlib.Path) –
- __init__(config_file)[source]
- Parameters
config_file (pathlib.Path) –
- batch_download_jobs: Set[sublime_music.adapters.manager.Result] = {}
- do_dbus_register(connection, path)[source]
dbus_register(self, connection:Gio.DBusConnection, object_path:str) -> bool
- on_add_to_queue(action, song_ids)[source]
- Parameters
action (Any) –
song_ids (gi.overrides.GLib.Variant) –
- on_go_to_album(action, album_id)[source]
- Parameters
action (Any) –
album_id (gi.overrides.GLib.Variant) –
- on_go_to_artist(action, artist_id)[source]
- Parameters
action (Any) –
artist_id (gi.overrides.GLib.Variant) –
- on_go_to_playlist(action, playlist_id)[source]
- Parameters
action (Any) –
playlist_id (gi.overrides.GLib.Variant) –
- on_play_next(action, song_ids)[source]
- Parameters
action (Any) –
song_ids (gi.overrides.GLib.Variant) –
- on_remove_music_provider(_, provider_id)[source]
- Parameters
provider_id (gi.overrides.GLib.Variant) –
- on_song_download_progress(song_id, progress)[source]
- Parameters
song_id (str) –
progress (sublime_music.adapters.manager.DownloadProgress) –
- on_switch_music_provider(_, provider_id)[source]
- Parameters
provider_id (gi.overrides.GLib.Variant) –
- on_window_key_press(window, event)[source]
- Parameters
window (gi.overrides.Gtk.Window) –
event (gi.overrides.Gdk.EventKey) –
- Return type
- play_song(song_index, reset=False, old_play_queue=None, play_queue=None, playable_song_search_direction=1)[source]
- player_manager: sublime_music.players.manager.PlayerManager
- show_configure_servers_dialog(provider_config=None)[source]
Show the Connect to Server dialog.
- Parameters
provider_config (Optional[sublime_music.config.ProviderConfiguration]) –
- song_playing_order_token = 0