iamkroot / trakt-scrobbler

Scrobbler for trakt.tv that supports VLC, Plex, MPC-HC, and MPV.
https://github.com/iamkroot/trakt-scrobbler/wiki
GNU General Public License v2.0
463 stars 30 forks source link

[Installation] IPC_Path doesn't seem to work #253

Closed georgeat8 closed 10 months ago

georgeat8 commented 1 year ago

System Info

Description

After installing, scrobbler returns an IPC_PATH error (see logs below)

trakts_scrobbler config:

image

SMPlayer config:

image

Log file

Click to see log contents ``` 2023-07-25 17:29:32,733 - INFO - smplayer@mpv - mpv - Unable to connect to MPV. Check ipc path. 2023-07-25 17:30:53,780 - DEBUG - MainThread - notifier - Notifications enabled for categories: exception, misc, scrobble.pause, scrobble.resume, scrobble.start, scrobble.stop, trakt 2023-07-25 17:30:53,940 - INFO - MainThread - scrobbler - Started scrobbler thread. 2023-07-25 17:30:53,951 - DEBUG - MainThread - monitor - Autoloaded smplayer@mpv ipc_path = \\\\.\\pipe\\mpvsocket 2023-07-25 17:30:53,951 - INFO - MainThread - monitor - Started monitor for smplayer@mpv 2023-07-25 17:30:53,952 - INFO - smplayer@mpv - mpv - Unable to connect to MPV. Check ipc path. ```
iamkroot commented 1 year ago

After installing, scrobbler returns an IPC_PATH error (see logs below)

Have you actually started playing any media in the player?

georgeat8 commented 1 year ago

Yes, of course. The same log output is displayed even if media is playing.

image

iamkroot commented 1 year ago

Hmm, it seems like there's some bug with the ipc path being autoloaded. We are escaping the slashes too much.

  1. Could you please paste the contents of smplayer config- should be in ~/.smplayer/smplayer.ini (~ being your home directory, C:\Users\username\).
  2. Try running trakts config set players.smplayer@mpv.ipc_path '\\.\pipe\mpvsocket' in a powershell window.
georgeat8 commented 1 year ago

So I tested two different scenarios, each based on your points above.

  1. smplayer.ini also displays the ipc_path with multiple escaped slashes: mplayer_additional_options="--input-ipc-server=\\\\.\\pipe\\mpvsocket". This happens if done via GUI.

Full settings:

smplayer.in ``` [reminder] count=39 [actions] open_file=Ctrl+F open_directory= open_playlist= open_vcd= open_audio_cd= open_dvd= open_dvd_folder= open_bluray= open_bluray_folder= open_url=Ctrl+U close=Ctrl+X clear_recents= favorites_menu= tv_menu= edit_tv_list= jump_tv_list= next_tv=H previous_tv=L radio_menu= edit_radio_list= jump_radio_list= next_radio=Shift+H previous_radio=Shift+L play= play_or_pause="Media Play, Toggle Media Play/Pause" pause="Space, Media Pause" pause_and_frame_step= stop=Media Stop frame_step=. frame_back_step="," rewind1="Left, Ctrl+Shift+B" rewind2=Down rewind3=PgDown forward1="Right, Ctrl+Shift+F" forward2=Up forward3=PgUp set_a_marker= set_b_marker= clear_ab_markers= repeat= jump_to=Ctrl+J normal_speed=Backspace halve_speed={ double_speed=} dec_speed=[ inc_speed=] dec_speed_4= inc_speed_4= dec_speed_1= inc_speed_1= speed_0.25x= speed_0.5x= speed_0.75x= speed_1.25x= speed_1.5x= speed_1.75x= fullscreen="F, Ctrl+T" compact=Ctrl+C video_equalizer=Ctrl+E screenshot=S screenshot_with_subtitles=Ctrl+Shift+S screenshot_without_subtitles=Ctrl+Alt+S multiple_screenshots=Shift+D video_preview= flip= mirror= stereo_3d_filter= postprocessing= autodetect_phase= deblock= dering= gradfun= add_noise= add_letterbox= upscaling= audio_equalizer= mute="M, Volume Mute" decrease_volume="9, /, Volume Down" increase_volume="0, *, Volume Up" dec_audio_delay=- inc_audio_delay=+ audio_delay= load_audio_file= unload_audio_file= extrastereo_filter= karaoke_filter= volnorm_filter= earwax_filter= load_subs= unload_subs= dec_sub_delay=Z inc_sub_delay=X sub_delay= dec_sub_pos=R inc_sub_pos=T dec_sub_scale=Shift+R inc_sub_scale=Shift+T dec_sub_step=G inc_sub_step=Y seek_next_sub=Ctrl+Right seek_prev_sub=Ctrl+Left use_custom_sub_style= use_forced_subs_only= sub_visibility= show_find_sub_dialog= upload_subtitles= show_playlist=Ctrl+L show_file_properties=Ctrl+I show_preferences=Ctrl+P show_tube_browser=F11 show_mplayer_log=Ctrl+M show_smplayer_log=Ctrl+S tablet_mode= first_steps= faq= cl_options= check_updates= update_youtube= show_config= donate= about_smplayer= inc_osd_scale=Shift+U dec_osd_scale=Shift+Y osd_fractions= play_next=">, Media Next" play_prev="<, Media Previous" move_up=Alt+Up move_down=Alt+Down move_left=Alt+Left move_right=Alt+Right inc_zoom=E dec_zoom=W reset_zoom=Shift+E auto_zoom=Shift+W zoom_169=Shift+A zoom_235=Shift+S exit_fullscreen=Esc next_osd=O dec_contrast=1 inc_contrast=2 dec_brightness=3 inc_brightness=4 dec_hue=5 inc_hue=6 dec_saturation=7 inc_saturation=8 dec_gamma= inc_gamma= previous_video= next_video= previous_audio=Shift+K next_audio=K previous_subtitle=Shift+J next_subtitle=J next_chapter=@@ prev_chapter=! toggle_double_size=Ctrl+D reset_video_equalizer= reset_audio_equalizer= show_context_menu= next_aspect=A next_wheel_function= show_filename_osd=Shift+O show_info_osd=Shift+I show_time=I toggle_deinterlacing=D osd_none= osd_seek= osd_timer= osd_total= denoise_none= denoise_normal= denoise_soft= unsharp_off= blur= sharpen= size_50= size_75= size_100=Ctrl+1 size_125= size_150= size_175= size_200=Ctrl+2 size_300= size_400= deinterlace_none= deinterlace_l5= deinterlace_yadif0= deinterlace_yadif1= deinterlace_lb= deinterlace_kern= channels_default= channels_stereo= channels_surround= channels_ful51= channels_ful61= channels_ful71= stereo= left_channel= right_channel= mono= reverse_channels= aspect_detect= aspect_1%3A1= aspect_5%3A4= aspect_4%3A3= aspect_11%3A8= aspect_14%3A10= aspect_3%3A2= aspect_14%3A9= aspect_16%3A10= aspect_16%3A9= aspect_2.35%3A1= aspect_none= rotate_none= rotate_clockwise_flip= rotate_clockwise= rotate_counterclockwise= rotate_counterclockwise_flip= rotate_180= on_top_always= on_top_never= on_top_playing= toggle_stay_on_top= cc_none= cc_ch_1= cc_ch_2= cc_ch_3= cc_ch_4= sub_fps_none= sub_fps_23976= sub_fps_24= sub_fps_25= sub_fps_29970= sub_fps_30= add_bookmark=Ctrl+A edit_bookmarks= prev_bookmark=Ctrl+B next_bookmark=Ctrl+N recents_menu= disc_menu= speed_menu= ab_menu= videotrack_menu= videosize_menu= zoom_menu= aspect_menu= deinterlace_menu= videofilter_menu= denoise_menu= unsharp_menu= rotate_menu= ontop_menu= audiotrack_menu= audiofilter_menu= audiochannels_menu= stereomode_menu= subtitlestrack_menu= secondary_subtitles_track_menu= subfps_menu= closed_captions_menu= titles_menu= chapters_menu= angles_menu= bookmarks_menu= osd_menu= quick_access_menu= quit=Ctrl+Q show_tray_icon= restore\hide= pl_open= pl_open_url= pl_save= pl_save_as= pl_play= pl_next=N pl_prev=P pl_move_up= pl_move_down= pl_repeat= pl_shuffle= pl_add_current= pl_add_files= pl_add_directory= pl_add_urls= pl_remove_selected= pl_remove_all= pl_edit= pl_delete_from_disk= pl_copy_url= pl_open_folder= pl_chromecast= pl_show_search= pl_show_position_column= pl_show_name_column= pl_show_duration_column= pl_show_filename_column= pl_show_shuffle_column= play_on_chromecast= play_on_mobile= cast_to_menu= send_to_screen_menu= send_to_screen_1= send_to_screen_2= screens_info= send_audio_menu= toggle_video_info= toggle_frame_counter= toggle_format_info= toggle_bitrate_info= use_milliseconds= statusbar_total_time= statusbar_remaining_time= edit_main_toolbar= edit_control1= edit_control2= edit_floating_control= show_main_toolbar=F5 toggle_video_info_skingui= toggle_scroll_title_skingui= edit_control_minigui= edit_floating_control_minigui= [%General] config_version=5 mplayer_bin=mpv/mpv.exe driver\vo=gpu driver\audio_output=wasapi use_screenshot=true screenshot_template=cap_%F_%p_%02n screenshot_format=jpg remember_media_settings=true remember_time_pos=true remember_stream_settings=false alang= slang= use_direct_rendering=false use_double_buffer=true use_soft_video_eq=false use_slices=false autoq=6 add_blackborders_on_fullscreen=false disable_screensaver=true avoid_screensaver=true use_soft_vol=false softvol_max=110 use_scaletempo=-1 use_hwac3=false use_audio_equalizer=true global_volume=false volume=100 mute=false global_audio_equalizer=true audio_equalizer=0, 0, 0, 0, 0, 0, 0, 0, 0, 0 autosync=false autosync_factor=100 use_mc=false mc_value=0 autoload_m4a=true min_step=4 osd=1 osd_scale=1 subfont_osd_scale=3 osd_delay=5000 osd_fractions=false osd_bar_pos=80 osd_show_filename_duration=2000 file_settings_method=hash tablet_mode=false tablet_mode_change_answer= global_speed=false speed=1 [drives] dvd_device= cdrom_device= bluray_device= enable_audiocd_on_windows=false vcd_initial_title=2 [performance] priority=2 frame_drop=false hard_frame_drop=false coreavc=false h264_skip_loop_filter=1 HD_height=720 threads=8 hwdec=d3d11va-copy cache_auto=true cache_for_files=2048 cache_for_streams=2048 cache_for_dvds=0 cache_for_vcds=1024 cache_for_audiocds=1024 cache_for_tv=3000 [subtitles] subcp=ISO-8859-1 use_enca=false enca_lang= subfuzziness=1 autoload_sub=true use_ass_subtitles=true enable_ass_styles=true ass_line_spacing=0 use_forced_subs_only=false sub_visibility=true subtitles_on_screenshots=false change_sub_scale_should_restart=-1 fast_load_sub=true styles\fontname=Arial styles\fontsize=16 styles\primarycolor\argb=ffffffff styles\backcolor\argb=ff000000 styles\outlinecolor\argb=ff000000 styles\backgroundcolor\argb=ff000000 styles\bold=false styles\italic=false styles\halignment=2 styles\valignment=0 styles\borderstyle=1 styles\outline=0.4 styles\shadow=0.4 styles\marginl=20 styles\marginr=20 styles\marginv=50 force_ass_styles=true user_forced_ass_style= freetype_support=true [advanced] use_mplayer_window=false monitor_aspect= use_idx=false use_lavf_demuxer=false mplayer_additional_options="--input-ipc-server=\\\\.\\pipe\\mpvsocket" mplayer_additional_video_filters= mplayer_additional_audio_filters= log_mplayer=true verbose_log=false autosave_mplayer_log=false mplayer_log_saveto= log_smplayer=true log_filter=.* save_smplayer_log=false use_edl_files=true use_playlist_option=false prefer_ipv4=true use_short_pathnames=false change_video_equalizer_on_startup=true use_pausing_keep_force=true correct_pts=-1 actions_to_run= show_tag_in_window_title=true time_to_kill_player=5000 use_mpris2=false mpv_osd_media_info= mplayer_osd_media_info= emulate_mplayer_ab_section=false use_native_open_dialog=true disable_player_config=true [gui] fullscreen=false start_in_fullscreen=false compact_mode=false stay_on_top=0 size_factor=100 resize_method=0 qt_style=windowsvista center_window=false center_window_if_outside=false use_global_shortcuts=false global_shortcuts_grabbed_keys=511 mouse_left_click_function= mouse_right_click_function=show_context_menu mouse_double_click_function=fullscreen mouse_middle_click_function=mute mouse_xbutton1_click_function= mouse_xbutton2_click_function= mouse_wheel_function=2 wheel_function_cycle=30 wheel_function_seeking_reverse=false drag_function=1 seeking1=10 seeking2=60 seeking3=600 seeking4=30 update_while_seeking=false time_slider_drag_delay=100 relative_seeking=false precise_seeking=false reset_stop=false delay_left_click=false language= iconset=Papirus balloon_count=5 restore_pos_after_fullscreen=true save_window_size_on_exit=true close_on_finish=false auto_shutdown_pc=false default_font= pause_when_hidden=false allow_video_movement=false gui=DefaultGUI gui_minimum_width=0 default_size=@Size(683 509) hide_video_window_on_audio_files=true report_player_crashes=false auto_add_to_playlist=true media_to_add_to_playlist=0 use_player_shortcuts_in_playlist=false dockable_playlist=true [tv] check_channels_conf_on_startup=true initial_tv_deinterlace=4 last_dvb_channel= last_tv_channel= [streaming] streaming_type=1 ytdl_quality= streaming\youtube\resolution=6 streaming\youtube\preferred_user_agent= streaming\youtube\ytdl_bin= streaming\youtube\override_format= streaming\youtube\use_dash=true streaming\youtube\use_60fps=true streaming\youtube\use_av1=true [proxy] use_proxy=false type=3 host= port=0 username= password= [directories] latest_dir=D:/Downloads last_dvd_directory= save_dirs=true [defaults] initial_sub_scale=5 initial_sub_scale_ass=1 initial_volume=40 initial_contrast=0 initial_brightness=0 initial_hue=0 initial_saturation=0 initial_gamma=0 initial_audio_equalizer=0, 0, 0, 0, 0, 0, 0, 0, 0, 0 initial_zoom_factor=1 initial_sub_pos=100 initial_volnorm=false initial_blackborders=false initial_postprocessing=true initial_deinterlace=0 audio_channels=0 initial_stereo_mode=0 preferred_audio_track=0 preferred_subtitle_track=0 [mplayer_info] mplayer_detected_version=33472 mplayer_user_supplied_version=-1 [instances] single_instance_enabled=true [floating_control] margin=0 width=100 animated=true display_in_compact_mode=false activation_area=1 hide_delay=3000 [filter_options] acompressor= blur=lc:-1.5 deblock=vb/hb denoise_normal= denoise_soft=2:1:2 gradfun= noise=9ah:5ah sharpen=lc:1.5 volnorm=1 [update_checker] checked_date=@Variant(\0\0\0\xe\0\0\0\0) enabled=true days_to_check=7 last_known_version=22.7.0.10091 [default_gui] video_info=false frame_counter=false format_info=false bitrate_info=false use_milliseconds=false display_remaining_time=false fullscreen_toolbar1_was_visible=false compact_toolbar1_was_visible=false pos=@Point(1236 319) size=@Size(1017 962) state=0 toolbars_state=@ByteArray(\0\0\0\xff\0\0\x19\x66\xfd\0\0\0\x1\0\0\0\x3\0\0\0\0\0\0\0\0\xfc\x1\0\0\0\x1\xfb\0\0\0\x18\0p\0l\0\x61\0y\0l\0i\0s\0t\0\x64\0o\0\x63\0k\0\0\0\0\0\xff\xff\xff\xff\0\0\x1\x8d\0\xff\xff\xff\0\0\x3\xf9\0\0\x3g\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x2\0\0\0\x2\0\0\0\x1\0\0\0\x10\0t\0o\0o\0l\0\x62\0\x61\0r\0\x31\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x2\0\0\0\x1a\0\x63\0o\0n\0t\0r\0o\0l\0w\0i\0\x64\0g\0\x65\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0$\0\x63\0o\0n\0t\0r\0o\0l\0w\0i\0\x64\0g\0\x65\0t\0_\0m\0i\0n\0i\0\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0) actions\toolbar1\2=open_file, open_url, favorites_menu, separator, screenshot, separator, show_file_properties, show_playlist, show_tube_browser, separator, show_preferences, separator, play_prev, play_next, separator, audiotrack_menu, subtitlestrack_menu actions\controlwidget\1=play_or_pause, stop, separator, rewindbutton_action, timeslider_action, forwardbutton_action, separator, fullscreen, mute, volumeslider_action actions\controlwidget_mini\1=play_or_pause, stop, separator, rewind1, timeslider_action, forward1, separator, mute, volumeslider_action actions\floating_control\1=play_or_pause, stop, separator, rewind1, current_timelabel_action, timeslider_action, total_timelabel_action, forward1, separator, fullscreen, mute, volumeslider_action toolbars_icon_size\toolbar1=@Size(32 32) toolbars_icon_size\controlwidget=@Size(40 40) toolbars_icon_size\controlwidget_mini=@Size(24 24) toolbars_icon_size\floating_control=@Size(48 48) [base_gui_plus] show_tray_icon=false trayicon_playlist_was_visible=false mainwindow_visible=true widgets_size=0 fullscreen_playlist_was_visible=false fullscreen_playlist_was_floating=false compact_playlist_was_visible=false ignore_playlist_events=false [chromecast] server\port=8010 server\local_address= server\directory_listing=true subtitles\autoconvert_to_vtt=true subtitles\position=95 subtitles\text_filter= subtitles\overwrite_vtt=true subtitles\use_sub_filter=true [skin_gui] video_info=false scroll_title=false fullscreen_toolbar1_was_visible=false compact_toolbar1_was_visible=false pos=@Point(579 429) size=@Size(683 453) state=0 toolbars_state=@ByteArray(\0\0\0\xff\0\0\x19\x66\xfd\0\0\0\x1\0\0\0\x3\0\0\0\0\0\0\0\0\xfc\x1\0\0\0\x1\xfb\0\0\0\x18\0p\0l\0\x61\0y\0l\0i\0s\0t\0\x64\0o\0\x63\0k\x2\0\0\0\0\0\0\0\0\0\0\0\x64\0\0\0\x1e\0\0\x2\xab\0\0\x1]\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x2\0\0\0\x2\0\0\0\x1\0\0\0\xe\0t\0o\0o\0l\0\x62\0\x61\0r\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\x1a\0\x63\0o\0n\0t\0r\0o\0l\0w\0i\0\x64\0g\0\x65\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0) actions\toolbar1=open_file, open_url, favorites_menu, separator, screenshot, separator, show_file_properties, show_find_sub_dialog, show_tube_browser, show_preferences actions\toolbar1_version=1 toolbars_icon_size\toolbar1=@Size(24 24) [mpc_gui] pos=@Point(361 291) size=@Size(1408 861) state=0 toolbars_state=@ByteArray(\0\0\0\xff\0\0\x19\x66\xfd\0\0\0\x1\0\0\0\x1\0\0\x1\x8d\0\0\x4\xe2\xfc\x2\0\0\0\x1\xfb\0\0\0\x18\0p\0l\0\x61\0y\0l\0i\0s\0t\0\x64\0o\0\x63\0k\0\0\0\0\x15\0\0\x4\xe2\0\0\0\x97\0\xff\xff\xff\0\0\x5\x80\0\0\x3\0\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x2\0\0\0\x3\0\0\0\x1\0\0\0\x1a\0\x63\0o\0n\0t\0r\0o\0l\0w\0i\0\x64\0g\0\x65\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0\x3\0\0\0\x1\0\0\0\x1e\0t\0i\0m\0\x65\0s\0l\0i\0\x64\0\x65\0w\0i\0\x64\0g\0\x65\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0) [mini_gui] pos=@Point(758 456) size=@Size(683 509) state=0 toolbars_state=@ByteArray(\0\0\0\xff\0\0\x19\x66\xfd\0\0\0\x1\0\0\0\x3\0\0\0\0\0\0\0\0\xfc\x1\0\0\0\x1\xfb\0\0\0\x18\0p\0l\0\x61\0y\0l\0i\0s\0t\0\x64\0o\0\x63\0k\x2\0\0\0\0\0\0\0\0\0\0\0\x64\0\0\0\x1e\0\0\x2\xab\0\0\x1\xc6\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x1\0\0\0\x3\0\0\0\x1\0\0\0\x1a\0\x63\0o\0n\0t\0r\0o\0l\0w\0i\0\x64\0g\0\x65\0t\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0) actions\controlwidget=play_or_pause, stop, separator, timeslider_action, separator, fullscreen, mute, volumeslider_action actions\floating_control=play_or_pause, stop, separator, timeslider_action, separator, fullscreen, mute, volumeslider_action, separator, timelabel_action toolbars_icon_size\controlwidget=@Size(24 24) toolbars_icon_size\floating_control=@Size(24 24) ```
  1. Setting via terminal outputs the same thing in trakts config: players.smplayer@mpv.ipc_path = '\\\\.\\pipe\\mpvsocket'

Another thing is that if I edit the smplayer.ini directly and add the proper slashes, the logs output the same error with the need to check "Unable to connect to MPV. Check ipc_path".

image

iamkroot commented 1 year ago

Let's try to simplify it even further. Can you connect to the smplayer ipc even without the scrobbler? You can check by opening a powershell window and running echo show-text ${playback-time} >\\.\pipe\mpvsocket (it should show the time in your smplayer window)

iamkroot commented 10 months ago

@georgeat8 Take a look at #266 - try https://github.com/iamkroot/trakt-scrobbler/issues/266#issuecomment-1873411091