Fix position synchronization, add album art fetching, and document busctl usage
- Use Web UI as authoritative time source for better MPRIS position sync - Implement album art fetching via iTunes Search API - Optimize window title parsing to focus on metadata - Add busctl testing commands to README and GEMINI.md
This commit is contained in:
13
README.md
13
README.md
@@ -51,6 +51,19 @@ sudo dnf install wmctrl libnotify # or sudo apt install wmctrl libnotify
|
||||
python3 winamp_mpris.py
|
||||
```
|
||||
|
||||
### Testing and Debugging
|
||||
You can use `busctl` to interact with the MPRIS interface:
|
||||
```bash
|
||||
# Get playback status
|
||||
busctl --user get-property org.mpris.MediaPlayer2.winamp /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player PlaybackStatus
|
||||
|
||||
# Get current position (in microseconds)
|
||||
busctl --user get-property org.mpris.MediaPlayer2.winamp /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player Position
|
||||
|
||||
# Send commands
|
||||
busctl --user call org.mpris.MediaPlayer2.winamp /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player PlayPause
|
||||
```
|
||||
|
||||
### Running as a systemd User Service
|
||||
1. **Install the service file**:
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user