Skip to content

Commit

Permalink
Merge pull request #1 from sj-on/main
Browse files Browse the repository at this point in the history
fixed program breaking on startup due to invalid credential check
  • Loading branch information
FireHead90544 authored Aug 11, 2022
2 parents d84acb4 + a23e2f5 commit 6e41397
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ Now, open the `dist` folder and get your executable from there.

1. Extract the `aria2`'s folder you just downloaded. Copy the path to it's executable (In windows, the executable has an extension '.exe'), (Linux users can run `which aria2c` and copy that path)
2. Run the SenPY's application for the first time and close it, it will create a config file at `$HOME/.senpy/config.json` (You can edit it manually if want to or just move onto next step)
3. Run the SenPY's application again and select the `Update Config File` option, add your gogoanime-registered email and password (you can use the below credentials too, but it's better to use your own since these ones can be invalidated probably). In the `aria2's executable path input`, enter the path to aria2's executable you just copied and in the `downloads folder input`, enter the path to the folder (make sure to create one already) where you want your animes to be downloaded.
3. Run the SenPY's application again and select the `Update Config File` option, update your gogoanime-registered email and password (you can use the below credentials too, but it's better to use your own since these ones can be invalidated probably). In the `aria2's executable path input`, enter the path to aria2's executable you just copied and in the `downloads folder input`, enter the path to the folder (make sure to create one already) where you want your animes to be downloaded.

**Config File Location** (Not meant for general public): `$HOME/.senpy/config.json` (Global Location), `Project Root/config.json` (Local Location). Local Location takes priority over Global Location.

**Dummy Credentials**
**Dummy Credentials**: (Please don't be a retarded kid and do not change the password or anything, just use your own credentials instead)
| Name | Value |
|:--:|:--:|
| EMAIL | wihay47579@aregods.com |
Expand Down Expand Up @@ -160,4 +160,4 @@ A huge thanks to the below projects for being one of the inspirations for this p
<hr>

## Back To Top
[Click here to go back to the top of page](#index-of-contents)
[Click here to go back to the top of page](#index-of-contents)
6 changes: 3 additions & 3 deletions senpy/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def get_config_path(self) -> Path:
global_config.parent.mkdir(parents=True, exist_ok=True)
global_config.touch()
with open(global_config, "w") as f:
json.dump({"EMAIL": "ENTER YOUR GOGOANIME REGISTERED EMAIL HERE",
"PASSWORD": "ENTER YOUR GOGOANIME REGISTERED PASSWORD HERE",
json.dump({"EMAIL": "wihay47579@aregods.com",
"PASSWORD": "NeverGonnaGiveYouUp",
"DOWNLOADS_DIR": "ENTER DOWNLOAD LOCATION (Windows: Drive:\Folder, Linux: /path/to/folder)",
"ARIA_2_PATH": "ENTER THE PATH TO ARIA2's EXECUTABLE"}, f, indent=2, sort_keys=True)
self.logger.warning("Update your config file by adding your credentials and updating download location before using the application.")
Expand Down Expand Up @@ -113,4 +113,4 @@ def get_csrf_token(self) -> str:
Returns:
csrf_token (str): The CSRF token for login.
"""
return BeautifulSoup(self.session.get(self.CURRENT_URL + "/login.html").content, "html.parser").select("meta[name='csrf-token']")[0]["content"]
return BeautifulSoup(self.session.get(self.CURRENT_URL + "/login.html").content, "html.parser").select("meta[name='csrf-token']")[0]["content"]

0 comments on commit 6e41397

Please sign in to comment.