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

[Fix] for windows users #13

Closed
Rickyrvxlovet opened this issue Jul 24, 2024 · 9 comments
Closed

[Fix] for windows users #13

Rickyrvxlovet opened this issue Jul 24, 2024 · 9 comments

Comments

@Rickyrvxlovet
Copy link

When i press F12 it says. F12 is not mapped

@oltodosel
Copy link
Owner

Put the script into ~/.config/mpv/scripts/

@Rickyrvxlovet
Copy link
Author

Put the script into ~/.config/mpv/scripts/

I did

@oltodosel
Copy link
Owner

Open mpv through cmd and see if there are any errors.

@Rickyrvxlovet
Copy link
Author

Put the script into ~/.config/mpv/scripts/

mpv v0.38.0-567-g68a1a387 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
built on Jun 29 2024 00:14:16
libplacebo version: v7.349.0 (v7.349.0-rc1-3-g1fd3c7b-dirty)
FFmpeg version: N-116052-gd5e603ddc
FFmpeg library versions:
libavcodec 61.9.100
libavdevice 61.2.100
libavfilter 10.2.102
libavformat 61.4.100
libavutil 59.27.100
libswresample 5.2.100
libswscale 8.2.100

@Rickyrvxlovet
Copy link
Author

Open mpv through cmd and see if there are any errors.

[input] No key binding found for key 'F12'.
[input] No key binding found for key 'F12'.
[input] No key binding found for key 'F12'.
[input] No key binding found for key 'F12'.

@oltodosel
Copy link
Owner

See if there are any errors before that. There should be, otherwise the script would work.

@Rickyrvxlovet
Copy link
Author

Rickyrvxlovet commented Jul 24, 2024

See if there are any errors before that. There should be, otherwise the script would work.

Found it.

[total_playtime] [total_playtime] stack traceback: [total_playtime] C:/mpv/portable_config/scripts/total_playtime.lua:14: in main chunk [total_playtime] [C]: at 0x7ff74f8d97a0 [total_playtime] [C]: at 0x7ff74f8d85f0 [total_playtime] Lua error: C:/mpv/portable_config/scripts/total_playtime.lua:14: bad argument #2 to 'gsub' (string/function/table expected)

@oltodosel
Copy link
Owner

[saved_probed_filename = '~/.config/mpv/scripts/total_playtime.list'](

saved_probed_filename = '~/.config/mpv/scripts/total_playtime.list'
)

Change this line to windows-like appropriate path.

@Rickyrvxlovet
Copy link
Author

[saved_probed_filename = '~/.config/mpv/scripts/total_playtime.list'](

saved_probed_filename = '~/.config/mpv/scripts/total_playtime.list'

)
Change this line to windows-like appropriate path.

My problem was the same as this issue #1

I fixed it thanks to him Kayizoku

I was able to do it now. I had to set the os.getenv(''HOME') ---> os.getenv('APPDATA') for it to be able to calculate and log it. Thank you for your help. Its working now

@Rickyrvxlovet Rickyrvxlovet changed the title KeyBinding problem [Fix] for windows users Jul 24, 2024
@Rickyrvxlovet Rickyrvxlovet reopened this Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants