Skip to content

Troubleshooting

kavinthangavel edited this page Apr 22, 2025 · 9 revisions

πŸ”§ Troubleshooting Guide

This document provides solutions for common issues with Simkl Scrobbler.

🚨 Common Issues and Solutions

πŸ“₯ Installation Problems

Issue Solution
"Command not found" after installation Ensure Python scripts directory is in your PATH
Installation fails with permission error Use pip install --user simkl-mps or create a virtual environment
Poetry installation fails Ensure you have the latest version of Poetry (poetry self update)

πŸ” Authentication Issues

Issue Solution
Authentication fails Check internet connection; verify correct PIN entry
"Invalid client ID" error Your custom client ID might be incorrect; remove it from config
Token expired or invalid Run simkl-mps init again to re-authenticate

πŸ” Movie Detection Problems

Issue Solution
Movies not detected Ensure media player shows filename in window title
Incorrect movie matched Include year in filename: "Movie.Title.2023.mp4"
No detection in fullscreen Some players hide window title in fullscreen; use windowed mode
Multiple files show as one movie Ensure filenames are clearly different

⏯️ Playback Tracking Issues

Issue Solution
Position not tracking Configure player web interface (see Media Players)
Movies not marked as watched Check completion threshold setting; verify internet connection
Tracking stops unexpectedly Check logs for errors; ensure player keeps window title visible
VLC position not detected Verify web interface is enabled and accessible

πŸ’» Platform-Specific Issues

Windows

Issue Solution
Service won't install Run command prompt as Administrator
Registry access denied Ensure you have sufficient permissions
Media player not recognized Verify player is in the supported list

macOS

Issue Solution
AppleScript permission errors Grant accessibility permissions in System Preferences > Security & Privacy > Privacy > Accessibility
Window detection failures Install optional dependencies: pip install "simkl-mps[macos]"
Service doesn't start Check Console.app for LaunchAgent errors

Linux

Issue Solution
Window detection not working Install required utilities: sudo apt install xdotool wmctrl
D-Bus connection errors Ensure you're running in a standard desktop environment
Systemd service issues Check service status: systemctl --user status simkl-mps

πŸ”¬ Diagnostic Commands

Use these commands to help diagnose problems:

# Check installation
pip show simkl-mps

# Run with debug logging (still in background)
simkl-mps start --debug

# Check logs (Windows)
type %APPDATA%\kavinthangavel\simkl-mps\media-player-scrobbler-for-simkl.log

# Check logs (macOS/Linux)
cat ~/.local/share/kavinthangavel/simkl-mps/media-player-scrobbler-for-simkl.log

# Check service status
simkl-mps service-status

# Run with debug logging
simkl-mps start --debug

# Test API connectivity (Windows PowerShell)
Invoke-WebRequest -Uri https://api.simkl.com/ -Method Head

# Test API connectivity (macOS/Linux)
curl -I https://api.simkl.com/

πŸ“Š Log Analysis

Common log messages and their meanings:

Log Message Meaning
"No active video player window found" Normal when no player is running
"Failed to connect to Simkl API" Network or authentication issue
"Movie title not found in window title" Player doesn't expose title or format is unrecognized
"Could not parse movie title" Filename format couldn't be understood
"Movie marked as watched" Success! Movie was scrobbled
"Added to backlog" Will be marked as watched when internet connection is restored

πŸ”„ Resetting the Application

If you need a fresh start:

  1. Close all instances of the application
  2. Delete the application data directory:
    • Windows: %APPDATA%\kavinthangavel\simkl-mps
    • macOS: ~/Library/Application Support/kavinthangavel/simkl-mps
    • Linux: ~/.local/share/kavinthangavel/simkl-mps
  3. Reinstall: pip install --force-reinstall simkl-mps
  4. Reinitialize: simkl-mps init

πŸ†˜ Getting Help

If you've tried the solutions above and still have issues:

  1. Run in debug mode to get detailed logs: simkl-mps start --debug
  2. Open a GitHub issue with:
    • Your operating system and version
    • The application version (simkl-mps --version)
    • Relevant log excerpts
    • Steps to reproduce the problem

Clone this wiki locally