Compare commits
2 Commits
5c23c91867
...
c662f1be7a
Author | SHA1 | Date | |
---|---|---|---|
c662f1be7a | |||
9cbdcee4ab |
@ -154,7 +154,7 @@ class PlayerRpcObject(JsonRpcObject):
|
|||||||
# Turn on the TV
|
# Turn on the TV
|
||||||
config: Config = I.get("Config")
|
config: Config = I.get("Config")
|
||||||
if config.cec:
|
if config.cec:
|
||||||
I.get("CECHandler").power_of_if_needed()
|
I.get("CECHandler").power_on_if_needed()
|
||||||
|
|
||||||
I.get("DataBridge").set_loading(True)
|
I.get("DataBridge").set_loading(True)
|
||||||
url = urlparse(params["item"]["file"])
|
url = urlparse(params["item"]["file"])
|
||||||
|
@ -13,7 +13,7 @@ from PySide6.QtQml import QQmlApplicationEngine
|
|||||||
from microkodi.jsonrpc import JsonRpcHandler, GlobalMethodHandler
|
from microkodi.jsonrpc import JsonRpcHandler, GlobalMethodHandler
|
||||||
from microkodi.ui.bridge import DataBridge
|
from microkodi.ui.bridge import DataBridge
|
||||||
from microkodi.config import Config, load_config
|
from microkodi.config import Config, load_config
|
||||||
from microkodi.cec import CECHandler
|
from microkodi.cec_handler import CECHandler
|
||||||
from microkodi.repository import I
|
from microkodi.repository import I
|
||||||
|
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ class VlcProgram(Program):
|
|||||||
return self._process is not None and self._process.returncode is None
|
return self._process is not None and self._process.returncode is None
|
||||||
|
|
||||||
def is_playing(self) -> bool:
|
def is_playing(self) -> bool:
|
||||||
return self.get_player_info().is_playing
|
return self.get_player_info().playing
|
||||||
|
|
||||||
def resume(self):
|
def resume(self):
|
||||||
self.__vlc_command("pl_pause")
|
self.__vlc_command("pl_pause")
|
||||||
|
Loading…
Reference in New Issue
Block a user