MPRIS: Switching from python-sdbus to jeepney, no functionality.
This commit is contained in:
parent
a236370d47
commit
f23530628c
14 changed files with 301 additions and 125 deletions
|
@ -8,7 +8,6 @@ import pygame.event
|
|||
|
||||
from .playlist import Playlist
|
||||
from .track_progress_timer import TrackProgress
|
||||
from .mpris import MPRISServer
|
||||
|
||||
|
||||
class Player:
|
||||
|
@ -24,10 +23,6 @@ class Player:
|
|||
self.history = Playlist(self.app, "History")
|
||||
self.current_playlist = None
|
||||
|
||||
self.mpris_server = MPRISServer(self.app)
|
||||
# start mpris server in a thread (daemon = exit with main thread)
|
||||
threading.Thread(target=self.mpris_server.start, daemon=True).start()
|
||||
|
||||
self.playing = False
|
||||
self.paused = False
|
||||
|
||||
|
@ -43,7 +38,6 @@ class Player:
|
|||
self.app.gui.on_playstate_update()
|
||||
|
||||
self.export_cover_art_tmp()
|
||||
self.mpris_server.exec_async(self.mpris_server.set_metadata(self.current_playlist.current_track.metadata))
|
||||
|
||||
# cache next track so it immediately starts when the current track finishes
|
||||
self.cache_next_track()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue