-
-
Notifications
You must be signed in to change notification settings - Fork 1
Troubleshooting
This document provides solutions for common issues with MPS for SIMKL and steps to diagnose and resolve problems.
Authentication fails or token errors
| Issue | Solution |
|---|---|
| "Unable to authenticate" | Check your internet connection and try again |
| "Invalid PIN code" | Make sure you're entering the exact code shown |
| "Token expired" | Run simkl-mps init to get a new access token |
| "Client ID not valid" | If using a custom client ID, verify it in your Simkl developer settings |
Quick fix command:
simkl-mps init --forceThis resets your authentication completely and starts a fresh authentication flow.
Multiple users/devices
MPS for SIMKL currently supports one Simkl account per installation. To switch accounts:
- Run
simkl-mps init --forceto reset authentication - Complete the new authentication flow with your desired account
For multiple users on the same machine, consider using separate user accounts or custom data directories:
simkl-mps start --data-dir "/path/to/custom/location"Media not detected
If your media isn't being detected:
- Check window title: Ensure your media player shows the filename in its window title
- File naming: Use clear filenames with the movie/show title and year when possible
- Player support: Verify your player is in the supported list
- Window detection: Some players may hide or modify titles in fullscreen mode
Debugging steps:
# Run with debug logging to see what titles are being detected
simkl-mps tray --debug
# Look for lines containing "Window title detected" or "Parsing title"When playing media, you should see log entries showing the detected window title and parsing attempts.
Wrong movie/show detected
If the wrong title is being matched:
-
Improve filename: Include the full title and year in parentheses:
Movie Title (2023).mp4 -
Check logs: Run with
--debugto see what title was extracted and what Simkl matched it to - Manual handling: For files that consistently mismatch, consider renaming them
Advanced solution: You can modify the title parsing regex in your configuration:
# In .simkl_mps.env
SIMKL_TITLE_REGEX=(?i)(.+?)(?:\W\d{4}\W|\W\(\d{4}\)|\W\d{4}$|$)No detection in some media players
Some media players may not expose the necessary information:
- Configure advanced tracking: Set up the player's web interface or IPC connection (see Media Players)
- Alternative view modes: Some players expose title information in windowed mode but not fullscreen
- Window title format: Check if your player has settings to customize the window title format
Testing command:
# This will show all window titles currently visible
simkl-mps windowsMedia never marked as watched
If media isn't being marked as watched:
- Completion threshold: Verify you've watched enough of the media (default: 80%)
- Internet connection: Check if you're online; offline tracking stores to backlog
- Advanced tracking: Configure your player for position detection (see Media Players)
-
Process backlog: Try
simkl-mps backlog processto send pending updates
Check progress tracking:
# Run in debug mode to see progress updates
simkl-mps tray --debug
# Look for lines containing "Progress" or "position"You should see periodic updates showing your current position and progress percentage.
Position tracking not working
If position isn't being detected:
- Player configuration: Ensure your player's web interface or IPC is properly set up
- Port conflicts: Check if the default ports are being used by other applications
- Firewall issues: Ensure local connections to player ports aren't being blocked
- Player versions: Some newer player versions may have changed their API
Test player connections:
# For VLC
curl http://localhost:8080/requests/status.xml
# For MPC-HC
curl http://localhost:13579/variables.html
# For MPV on Windows
# (requires special tools to test pipe connections)Windows issues
| Issue | Solution |
|---|---|
| "Command not found" | Add Python Scripts directory to PATH or use py -m simkl_mps
|
| Application won't start | Check Windows Event Viewer for Python errors |
| Tray icon missing | Verify you have system tray enabled in taskbar settings |
| Missing DLLs | Install Visual C++ Redistributable packages |
| Service won't install | Run Command Prompt as Administrator |
For advanced Windows troubleshooting:
# Check if the process is running
Get-Process -Name "MPSS*" -ErrorAction SilentlyContinue
# View log file
Get-Content "$env:APPDATA\kavinthangavel\simkl-mps\simkl_mps.log" -Tail 50macOS issues
| Issue | Solution |
|---|---|
| Missing permissions | Grant accessibility permissions in System Preferences > Security & Privacy > Privacy > Accessibility |
| Python not found | Install Python properly via Homebrew: brew install python
|
| Notification issues | Grant notification permissions in System Preferences |
| App not starting | Check console logs: console application, filter for Python |
For advanced macOS troubleshooting:
# Check process status
ps aux | grep -i simkl
# View log file
tail -n 50 ~/Library/Application\ Support/kavinthangavel/simkl-mps/simkl_mps.logLinux issues
| Issue | Solution |
|---|---|
| Window detection fails | Install required packages: sudo apt install wmctrl xdotool (or equivalent) |
| Missing dependencies | Install GTK and notification libraries: sudo apt install python3-gi gir1.2-gtk-3.0 libnotify-bin
|
| Tray icon issues | Ensure your desktop environment supports system trays/indicators |
| D-Bus errors | Verify you're running in a standard desktop environment with D-Bus |
For advanced Linux troubleshooting:
# Check process status
ps aux | grep -i simkl
# View log file
tail -n 50 ~/.local/share/kavinthangavel/simkl-mps/simkl_mps.log
# Check if your window manager is supported
echo $XDG_CURRENT_DESKTOP
# Debug window detection
wmctrl -lDebug logging
Enable verbose logging to diagnose issues:
# Run with debug logging in terminal mode
simkl-mps tray --log-level DEBUG
# Set persistent debug logging
echo "SIMKL_LOG_LEVEL=DEBUG" >> ~/.local/share/kavinthangavel/simkl-mps/.simkl_mps.envKey logging indicators:
- INFO: Normal operation events
- WARNING: Minor issues that don't prevent functionality
- ERROR: Problems that prevent specific operations
- CRITICAL: Severe issues that prevent the application from running
Important log sections to check:
- Authentication issues: Look for "auth," "token," or "Simkl API" messages
- Detection issues: Look for "window," "title," or "parsing" messages
- Playback issues: Look for "position," "duration," or "progress" messages
- Scrobbling issues: Look for "marked as watched" or "scrobble" messages
Network diagnostics
Test connections to SIMKL API and media player interfaces:
# Test SIMKL API connectivity
curl -I https://api.simkl.com/
# Test VLC web interface (if configured)
curl -I http://localhost:8080/
# Test MPC web interface (if configured)
curl -I http://localhost:13579/
# Check for processes listening on media player ports
# Windows (PowerShell):
netstat -ano | findstr "8080 13579"
# macOS/Linux:
netstat -tuln | grep -E "8080|13579"Network-related issues are often indicated by timeout errors or connection refused messages in the logs.
System resource usage
If you're experiencing performance issues:
# Check CPU and memory usage
# Windows (PowerShell):
Get-Process -Name "MPSS*" | Select-Object Name, CPU, WS
# macOS/Linux:
ps aux | grep -i simklThe application should use minimal resources (typically <1% CPU and <50MB RAM) when idle.
Complete application reset
To reset everything and start fresh:
-
Stop all instances of the application:
simkl-mps stop
-
Delete the application data directory:
- Windows:
%APPDATA%\kavinthangavel\simkl-mps - macOS:
~/Library/Application Support/kavinthangavel/simkl-mps - Linux:
~/.local/share/kavinthangavel/simkl-mps
- Windows:
-
Reinstall the application:
pip install --force-reinstall simkl-mps
-
Initialize again:
simkl-mps init
Recovering from crashes
If the application is crashing or freezing:
-
Stop any running instances:
simkl-mps stop --force
-
Backup and examine logs:
# Windows (PowerShell): Copy-Item "$env:APPDATA\kavinthangavel\simkl-mps\simkl_mps.log" "$env:USERPROFILE\Desktop\simkl_backup.log" # macOS/Linux: cp ~/.local/share/kavinthangavel/simkl-mps/simkl_mps.log ~/simkl_backup.log
-
Try running in safe mode (disables advanced features):
simkl-mps start --safe-mode
If you've tried everything above and still have issues:
- Check the GitHub Issues to see if your problem is already known
- Collect diagnostic information:
simkl-mps diagnose > simkl-diagnostic-report.txt -
Open a new issue with:
- Your operating system and version
- MPS for SIMKL version (
simkl-mps --version) - Relevant log excerpts (with sensitive information redacted)
- Steps to reproduce the problem
- The diagnostic report file
Include as much detail as possible to help the developers identify and fix the issue quickly.