Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support monitoring players across different machines #276

Open
fischy667 opened this issue Jan 29, 2024 · 3 comments
Open

Support monitoring players across different machines #276

fischy667 opened this issue Jan 29, 2024 · 3 comments
Labels
enhancement New feature or request priority:low

Comments

@fischy667
Copy link

System Info

  • Operating system and version: Linux Ubuntu 22.04.3 LTS
  • Media Player and version: MPC-HC 2.1.4
  • Python version: 3.9

Description

The log is saving:

Unknown player(s): mpc-hc

Config

Click to see the config

players.monitored = ['mpc-hc']
players.mpc-be.ip = '192.168.1.126'
players.mpc-be.port = '13579'
players.mpc-be.poll_interval = 10
players.mpc-hc.port = '13579'
players.mpc-hc.ip = '192.168.1.126'
players.mpc-hc.poll_interval = 10
players.skip_interval = 5
players.preview_threshold = 80
players.preview_duration = 60
players.fast_pause_threshold = 1
players.fast_pause_duration = 5
players.vlc.ip = 'localhost'
players.vlc.port = 'auto-detect'
players.vlc.password = 'auto-detect'
players.vlc.poll_interval = 10
players.mpv.ipc_path = 'auto-detect'
players.mpv.poll_interval = 10
players.mpv.read_timeout = 2
players.mpv.write_timeout = 60
players.mpv.restart_delay = 0.1
players.smplayer@mpv.ipc_path = 'auto-detect'
players.smplayer@mpv.poll_interval = 10
players.smplayer@mpv.read_timeout = 2
players.smplayer@mpv.write_timeout = 60
players.smplayer@mpv.restart_delay = 0.1
players.syncplay@mpv.ipc_path = 'auto-detect'
players.syncplay@mpv.poll_interval = 10
players.syncplay@mpv.read_timeout = 2
players.syncplay@mpv.write_timeout = 60
players.syncplay@mpv.restart_delay = 0.1
players.plex.ip = 'localhost'
players.plex.port = '32400'
players.plex.poll_interval = 10
players.plex.scrobble_user = ''
version = '1.0'
general.enable_notifs.exception = True
general.enable_notifs.misc = True
general.enable_notifs.scrobble.start = True
general.enable_notifs.scrobble.pause = True
general.enable_notifs.scrobble.resume = True
general.enable_notifs.scrobble.stop = True
general.enable_notifs.trakt = True
general.notif_actions.enabled = True
general.notif_actions.primary_interface = 'button'
general.allowed_scrobbles.episode = 'all'
general.allowed_scrobbles.movie = 'all'
fileinfo.whitelist = []
fileinfo.exclude_patterns = []
fileinfo.include_regexes.movie = []
fileinfo.include_regexes.episode = []
backlog.clear_interval = 1800
backlog.expiry = 2592000

Log file

2024-01-29 21:42:55,403 - INFO - MainThread - scrobbler - Started scrobbler thread.
2024-01-29 21:42:55,409 - WARNING - MainThread - main - Unknown player(s): mpc-hc
2024-01-29 21:48:19,807 - DEBUG - MainThread - notifier - Notifications enabled for categories: exception, misc, scr>
2024-01-29 21:48:19,827 - INFO - notify_loop - notifier - Starting notif loop
2024-01-29 21:48:19,827 - DEBUG - MainThread - notifier - Notif actions enabled for categories: exception, misc, scr>
2024-01-29 21:48:20,004 - INFO - MainThread - scrobbler - Started scrobbler thread.
2024-01-29 21:48:20,009 - WARNING - MainThread - main - Unknown player(s): mpc-hc
fischy667@orange-pi:~$ trakts status
The scrobbler is running
Monitored players: mpc-hc
No activity yet.
fischy667@orange-pi:~$ trakts -V
Trakts version 1.6.3
@iamkroot
Copy link
Owner

Are you on linux? I thought MPCHC can only be installed on Windows machines.

@iamkroot iamkroot added monitor Concerning a player monitor setup Trouble with installation labels Jan 29, 2024
@fischy667
Copy link
Author

fischy667 commented Jan 29, 2024

Yes, but I want to run trakts my linux server monitoring MPC-HC over the network running on a Windows PC. Therefore I set players.mpc-hc.ip = '192.168.1.126'.

@iamkroot
Copy link
Owner

Ah unfortunately that use case is not supported today. For one, even if we get the monitor to run on Linux, other parts of the scrobbler might fail. One issue I can think of is that the file whitelist logic would get windows paths which doesn't match local OS paths (Posix). Might be other issues too.

I would recommend installing the scrobbler on the desktop itself for now. Or if you have the time, I would be happy to guide anyone willing to add support for this use-case in the scrobbler.

@iamkroot iamkroot added enhancement New feature or request priority:low and removed monitor Concerning a player monitor setup Trouble with installation labels Jan 29, 2024
@iamkroot iamkroot changed the title [Installation] Log: Unknown player(s): mpc-hc Support monitoring players across different OSes Jan 29, 2024
@iamkroot iamkroot changed the title Support monitoring players across different OSes Support monitoring players across different machines Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority:low
Projects
None yet
Development

No branches or pull requests

2 participants