Fix wrong URL composition

pull/73/head
MillenniumEarl 2021-03-02 14:03:57 +01:00
parent f85da9f288
commit d4a1d4dd04
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -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",
};