File tree 3 files changed +6
-4
lines changed 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 16
16
from nlightreader .consts .app import APP_BRANCH , APP_NAME , APP_VERSION
17
17
from nlightreader .consts .files import Icons
18
18
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
20
20
from nlightreader .utils .config import cfg
21
21
from nlightreader .utils .kodik_server import KodikHTTPRequestHandler
22
22
from nlightreader .utils .threads import Thread
@@ -82,7 +82,7 @@ def start_check_for_updates_thread(self):
82
82
83
83
def check_for_updates (self ) -> str | None :
84
84
response = get_html (
85
- f"{ GITHUB_REPO } /releases" ,
85
+ f"{ GITHUB_REPO_API } /releases" ,
86
86
params = {"per_page" : 2 },
87
87
content_type = "json" ,
88
88
)
Original file line number Diff line number Diff line change 43
43
MANGA_DEX_HEADERS = {"User-Agent" : "Nlight" }
44
44
45
45
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"
Original file line number Diff line number Diff line change 13
13
from PySide6 .QtCore import Qt , Signal
14
14
from PySide6 .QtWidgets import QWidget
15
15
from nlightreader .consts .app import APP_VERSION
16
+ from nlightreader .consts .urls import GITHUB_REPO
16
17
from nlightreader .utils .config import cfg
17
18
18
19
@@ -116,7 +117,7 @@ def __init__(self, parent=None):
116
117
self .scrollWidget ,
117
118
)
118
119
self .projectCard = HyperlinkCard (
119
- "https://github.com/brandonzorn/Nlight/" ,
120
+ GITHUB_REPO ,
120
121
self .tr ("Project on GitHub" ),
121
122
FluentIcon .GITHUB ,
122
123
self .tr ("Project on GitHub" ),
You can’t perform that action at this time.
0 commit comments