From d4a1d4dd04a383a2bbb17b69d453bd8fe8f68b0c Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Tue, 2 Mar 2021 14:03:57 +0100 Subject: [PATCH] Fix wrong URL composition --- src/scripts/classes/thread.ts | 2 +- src/scripts/constants/url.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripts/classes/thread.ts b/src/scripts/classes/thread.ts index 1563cd3..017cd62 100644 --- a/src/scripts/classes/thread.ts +++ b/src/scripts/classes/thread.ts @@ -218,7 +218,7 @@ export default class Thread { */ public async fetch() { // 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 const htmlResponse = await fetchHTML(this.url); diff --git a/src/scripts/constants/url.ts b/src/scripts/constants/url.ts index 37d9781..4889b8a 100644 --- a/src/scripts/constants/url.ts +++ b/src/scripts/constants/url.ts @@ -2,6 +2,7 @@ export const urls = { F95_BASE_URL: "https://f95zone.to", F95_SEARCH_URL: "https://f95zone.to/search", F95_LATEST_UPDATES: "https://f95zone.to/latest", + F95_THREADS: "https://f95zone.to/threads/", F95_LOGIN_URL: "https://f95zone.to/login/login", F95_WATCHED_THREADS: "https://f95zone.to/watched/threads", F95_LATEST_PHP: "https://f95zone.to/new_latest.php", @@ -21,4 +22,5 @@ export const urls = { */ F95_ALERTS: "https://f95zone.to/account/alerts", F95_POSTS_NUMBER: "https://f95zone.to/account/dpp-update", + F95_MEMBERS: "https://f95zone.to/members", };