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

Issue with loading mpv config files #1266

Open
Gregaras opened this issue Jan 22, 2024 · 2 comments
Open

Issue with loading mpv config files #1266

Gregaras opened this issue Jan 22, 2024 · 2 comments

Comments

@Gregaras
Copy link

Gregaras commented Jan 22, 2024

Issue

Yewtube will not load mpv config files from mpv config directory.

Context

Inside mpv.py get_config_dir is called:

confpath = os.path.join(paths.get_config_dir(), "mpv-input.conf")

confpath = os.path.join(paths.get_config_dir(), "mpv")

Which, like the code itself suggests, returns the config directory path of Yewtube and not the main config directory path or the one of mpv:
return mps_confdir

Solution

Replacing

confpath = os.path.join(paths.get_config_dir(), "mpv-input.conf")

with

confpath = os.path.join(os.path.split(paths.get_config_dir())[0], "mpv", "input.conf")

seems to make mpv input config loading work but I suppose there might be a better way to solve this. Didn't check the _get_conf_dir function, suppose there will be the same thing as well.

Your Environment

OS: GNU/Linux
Distribution: Manjaro

@iamtalhaasghar
Copy link
Contributor

What is the issue again?

@Gregaras
Copy link
Author

What is the issue again?

Did a few edits on the description, thought it was self explanatory though.

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