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:
2026-03-19 05:31:11 -04:00
parent 21afe7650a
commit 7fa164f462
3 changed files with 89 additions and 18 deletions

View File

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