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:
19
GEMINI.md
19
GEMINI.md
@@ -59,6 +59,25 @@ A systemd service file is provided to allow the bridge to run automatically in t
|
||||
|
||||
The bridge will publish itself on D-Bus as `org.mpris.MediaPlayer2.winamp`. It gracefully handles Winamp being offline, automatically reconnecting when the web interface becomes available.
|
||||
|
||||
### 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
|
||||
|
||||
# Get metadata
|
||||
busctl --user get-property org.mpris.MediaPlayer2.winamp /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player Metadata
|
||||
|
||||
# Send commands
|
||||
busctl --user call org.mpris.MediaPlayer2.winamp /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player PlayPause
|
||||
busctl --user call org.mpris.MediaPlayer2.winamp /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player Next
|
||||
```
|
||||
|
||||
## Key Files
|
||||
|
||||
- **`winamp_mpris.py`**: The main bridge script. Includes optimizations for Plasma 6 property change detection, live position tracking, and robust error handling.
|
||||
|
||||
Reference in New Issue
Block a user