Compare commits

...

2 Commits

Author SHA1 Message Date
c662f1be7a fix vlc is_playing 2025-01-12 22:32:37 +01:00
9cbdcee4ab fix typo 2025-01-12 22:31:53 +01:00
4 changed files with 3 additions and 3 deletions

View File

@ -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"])

View 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

View File

@ -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")