Skip to content

Commit

Permalink
scripts: Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
SenZmaKi committed Sep 2, 2024
1 parent c8fa729 commit 4d8d159
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ poetry run senpwai
## FAQ

<details> <summary> Why did you make this? </summary>
I couldn't afford wifi so I used my college wifi to download anime after class but batch downloading from streaming sites is a pain in the ass,
I couldn't afford wifi so I used my college wifi to batch download anime after class but batch downloading from streaming sites is a pain in the ass,
you have to click billions of links just to download one episode, so I made Senpwai to help me and possibly others that face a similar problem.
</details>

Expand All @@ -137,10 +137,10 @@ More sources means more writing more code which in turn means fixing more bugs.

## Links

[Sub-reddit](https://reddit.com/r/Senpwai)

[Discord server](https://discord.com/invite/e9UxkuyDX2)

[Subreddit](https://reddit.com/r/Senpwai)

[GitHub Sponsors](https://github.com/sponsors/SenZmaKi)

[Patreon](https://patreon.com/Senpwai)
Expand Down
3 changes: 2 additions & 1 deletion senpwai/common/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ def load_settings(self) -> None:
if gogo_norm_or_hls_mode is not None:
self.gogo_mode = gogo_norm_or_hls_mode
settings.pop("gogo_norm_or_hls_mode")
if "gogo_skip_calculate" in settings:
settings.pop("gogo_skip_calculate")
self.__dict__.update(settings)
except json.JSONDecodeError:
pass
Expand Down Expand Up @@ -233,7 +235,6 @@ def update_tracking_interval(self, tracking_interval: int) -> None:
self.tracking_interval = tracking_interval
self.save_settings()


def update_pahe_home_url(self, pahe_home_url: str) -> None:
self.pahe_home_url = pahe_home_url
self.save_settings()
Expand Down
1 change: 0 additions & 1 deletion senpwai/scrapers/pahe/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import re
import math
from tracemalloc import start
from typing import Any, Callable, NamedTuple, cast
from requests import Response
from bs4 import BeautifulSoup, Tag
Expand Down
11 changes: 6 additions & 5 deletions senpwai/windows/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
OS,
PATREON_ICON_PATH,
REDDIT_ICON_PATH,
SEN_ANILIST_ID,
SEN_ICON_PATH,
VERSION,
)
Expand Down Expand Up @@ -62,10 +63,10 @@ def __init__(self, main_window: "MainWindow"):
- If Senpwai can't find the quality you want it will pick the closest lower one e.g., if you choose 720p but only 1080p and 360p is available it'll pick 360p
- So long as the app is open Senpwai will try to resume⏯️ ongoing downloads even if you lose an internet connection
- Experiencing slow downloads? Use gogo hls mode for the fastest🚀 download speeds
- [Hover✨](https://open.spotify.com/playlist/460b5y4LB8Dixh0XajVVaL?si=fce0f0f762464e81) over something that you don't understand there's probably a tool tip for it
- [Hover✨](https://anilist.co/user/{SEN_ANILIST_ID}) over something that you don't understand there's probably a tool tip for it
- If the app screen📺 is white after you minimised it to tray and reopened it (usually on Windows🗑️), click the tray icon to fix it
- Open the settings folder by clicking the button with its location in the top left corner of the settings window
- Downloading from Pahe skips⏩ recap episodes
- Downloading from Pahe skips⏩ recap episodes, but this kinds of messes up the episode numbering
- To completely remove Senpwai (don't know why you would though), post-uninstallation delete the settings folder, 🫵🏿®️🅰️🤡
- To use a custom font family, edit the `font_family` value in the settings file, if left empty, it will default to your OS setting
- Hate the background images📸? Check out the [discord]({DISCORD_INVITE_LINK}) for [senptheme](https://discord.com/channels/1131981618777702540/1211137093955362837/1211175899895038033)
Expand Down Expand Up @@ -128,7 +129,7 @@ def __init__(self, main_window: "MainWindow"):
donation_buttons_widget.setLayout(donation_buttons_layout)
leave_a_star_label = StyledLabel()
leave_a_star_label.setText(
"You can also support Senpwai by leaving a star on the github repo, stars help other weebs like us know about it"
"You can also support Senpwai by starring the github repo, stars are free and help other weebs like us know about Senpwai"
)
set_minimum_size_policy(leave_a_star_label)
social_links_title = Title("Social Links")
Expand All @@ -151,11 +152,11 @@ def __init__(self, main_window: "MainWindow"):
discord_button.setToolTip(DISCORD_INVITE_LINK)
social_links_buttons_widget = QWidget()
social_links_buttons_layout = QHBoxLayout()
social_links_buttons_layout.addWidget(discord_button)
social_links_buttons_layout.addSpacing(30)
social_links_buttons_layout.addWidget(github_button)
social_links_buttons_layout.addSpacing(30)
social_links_buttons_layout.addWidget(reddit_button)
social_links_buttons_layout.addSpacing(30)
social_links_buttons_layout.addWidget(discord_button)
social_links_buttons_layout.setAlignment(Qt.AlignmentFlag.AlignLeft)
social_links_buttons_widget.setLayout(social_links_buttons_layout)
version_title = Title(f"Version {VERSION}")
Expand Down

0 comments on commit 4d8d159

Please sign in to comment.