Verified Commit f64ec064 authored by Sumner Evans's avatar Sumner Evans 💬

Add some logging for what the MPV player receives to play

parent 27c1dcae
Pipeline #220328505 passed with stages
in 8 minutes and 48 seconds
......@@ -90,6 +90,7 @@ class PlayerManager:
def _get_current_player(self) -> Any:
if current_player_type := self._get_current_player_type():
return self.players.get(current_player_type)
logging.warning("Couldn't find current player!")
@property
def supported_schemes(self) -> Set[str]:
......
import logging
import threading
from datetime import timedelta
from typing import Callable, cast, Dict, Optional, Tuple, Type, Union
......@@ -123,6 +124,7 @@ class MPVPlayer(Player):
"force-seekable": "yes",
"start": str(progress.total_seconds()),
}
logging.info(f"MPV player playing {uri} with options: {options}")
self.mpv.command(
"loadfile", uri, "replace", ",".join(f"{k}={v}" for k, v in options.items())
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment