-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Load settings from JSON file instead of setting variables in .py file #90
base: master
Are you sure you want to change the base?
Conversation
Another reason for having the password in a config file is packages of this file, like https://aur.archlinux.org/packages/opensubtitlesdownload You can't really edit a file that's part of a package. Well, it defeats the purpose of having a package that's going to be managed by the system |
Then maybe adding the file to a different location like |
Oh, currently it's in the current working directory ? Yeah it would make much more sense I think… |
I misunderstood the comment you made. I thought you were saying that the issue was that the config file was in current directory, and not that it is currently stored in the code. I made this PR over a year ago and I didn't remember the context. Anyways, I'm gonna move the config to the locations I mentioned. |
…ariable into JSON
It should be now changed. |
I'm not a dev on this project. I was just stating that as another user, I would like this feature too, it's not practical passing the user/pass each time :) |
Would this force someone to use the json file for credentials or would be optional for those who want to use it? |
@Kyshman This forces the user to use the JSON. |
Actually, looks like v6.2 includes a much better way of handling downloads for free users, shipping a hard-coded API key, and logging in being optional for paid users. But I won't close the PR, as the settings are still hard-coded. |
Hi, sorry I never answered this pull request, I didn't put much work in this software for the past couple of years...
The problem is indeed that this change fundamentally how the software works. If the settings from the JSON file were just superseding the settings from the Python file, it would have been acceptable. I have no problem letting this PR open however, if people want to use it or improve upon it. |
Storing credentials in .py file is very unsafe since you can accidentally commit your password and loading from external file will make it easier to modify and update the script.