Skip to content

Commit 59b5b1d

Browse files
committed
Add GitHub repo const
1 parent 99be058 commit 59b5b1d

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from nlightreader.consts.app import APP_BRANCH, APP_NAME, APP_VERSION
1717
from nlightreader.consts.files import Icons
1818
from nlightreader.consts.paths import APP_DATA_PATH
19-
from nlightreader.consts.urls import GITHUB_REPO
19+
from nlightreader.consts.urls import GITHUB_REPO_API
2020
from nlightreader.utils.config import cfg
2121
from nlightreader.utils.kodik_server import KodikHTTPRequestHandler
2222
from nlightreader.utils.threads import Thread
@@ -82,7 +82,7 @@ def start_check_for_updates_thread(self):
8282

8383
def check_for_updates(self) -> str | None:
8484
response = get_html(
85-
f"{GITHUB_REPO}/releases",
85+
f"{GITHUB_REPO_API}/releases",
8686
params={"per_page": 2},
8787
content_type="json",
8888
)

nlightreader/consts/urls.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@
4343
MANGA_DEX_HEADERS = {"User-Agent": "Nlight"}
4444

4545

46-
GITHUB_REPO = "https://api.github.com/repos/brandonzorn/Nlight"
46+
GITHUB_REPO = "https://github.com/brandonzorn/Nlight/"
47+
GITHUB_REPO_API = "https://api.github.com/repos/brandonzorn/Nlight"

nlightreader/widgets/pages/settings_intefrace.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from PySide6.QtCore import Qt, Signal
1414
from PySide6.QtWidgets import QWidget
1515
from nlightreader.consts.app import APP_VERSION
16+
from nlightreader.consts.urls import GITHUB_REPO
1617
from nlightreader.utils.config import cfg
1718

1819

@@ -116,7 +117,7 @@ def __init__(self, parent=None):
116117
self.scrollWidget,
117118
)
118119
self.projectCard = HyperlinkCard(
119-
"https://github.com/brandonzorn/Nlight/",
120+
GITHUB_REPO,
120121
self.tr("Project on GitHub"),
121122
FluentIcon.GITHUB,
122123
self.tr("Project on GitHub"),

0 commit comments

Comments
 (0)