Fix wrong URL composition
parent
f85da9f288
commit
d4a1d4dd04
|
@ -218,7 +218,7 @@ export default class Thread {
|
||||||
*/
|
*/
|
||||||
public async fetch() {
|
public async fetch() {
|
||||||
// Prepare the url
|
// Prepare the url
|
||||||
this._url = new URL(this.id.toString(), urls.F95_BASE_URL).toString();
|
this._url = new URL(this.id.toString(), urls.F95_THREADS).toString();
|
||||||
|
|
||||||
// Fetch the HTML source
|
// Fetch the HTML source
|
||||||
const htmlResponse = await fetchHTML(this.url);
|
const htmlResponse = await fetchHTML(this.url);
|
||||||
|
|
|
@ -2,6 +2,7 @@ export const urls = {
|
||||||
F95_BASE_URL: "https://f95zone.to",
|
F95_BASE_URL: "https://f95zone.to",
|
||||||
F95_SEARCH_URL: "https://f95zone.to/search",
|
F95_SEARCH_URL: "https://f95zone.to/search",
|
||||||
F95_LATEST_UPDATES: "https://f95zone.to/latest",
|
F95_LATEST_UPDATES: "https://f95zone.to/latest",
|
||||||
|
F95_THREADS: "https://f95zone.to/threads/",
|
||||||
F95_LOGIN_URL: "https://f95zone.to/login/login",
|
F95_LOGIN_URL: "https://f95zone.to/login/login",
|
||||||
F95_WATCHED_THREADS: "https://f95zone.to/watched/threads",
|
F95_WATCHED_THREADS: "https://f95zone.to/watched/threads",
|
||||||
F95_LATEST_PHP: "https://f95zone.to/new_latest.php",
|
F95_LATEST_PHP: "https://f95zone.to/new_latest.php",
|
||||||
|
@ -21,4 +22,5 @@ export const urls = {
|
||||||
*/
|
*/
|
||||||
F95_ALERTS: "https://f95zone.to/account/alerts",
|
F95_ALERTS: "https://f95zone.to/account/alerts",
|
||||||
F95_POSTS_NUMBER: "https://f95zone.to/account/dpp-update",
|
F95_POSTS_NUMBER: "https://f95zone.to/account/dpp-update",
|
||||||
|
F95_MEMBERS: "https://f95zone.to/members",
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue