fix for upstream usenet

This commit is contained in:
zefie
2025-08-14 15:52:38 -04:00
parent e861591a8a
commit be5e2f2734
2 changed files with 1 additions and 3 deletions

View File

@@ -39,7 +39,6 @@ async function WebTVListGroup(group) {
wtvnews.selectGroup(group).then((response) => {
let limit_per_page = (request_headers.query.limit) ? parseInt(request_headers.query.limit) : page_limit_default;
const page = (request_headers.query.chunk) ? parseInt(request_headers.query.chunk) : 0;
console.log(response);
let page_start = (limit_per_page * page) + 1;
let page_end = (page + 1) * limit_per_page;
if (page_end > response.group.high) {

View File

@@ -111,7 +111,7 @@ class WTVNews {
reject(e);
});
} else {
this.client.listNewsgroups((search === '*') ? '*' : '*' + search + '*').then((data) => {
this.client.listNewsgroups(search).then((data) => {
resolve(this.processGroupList(data));
}).catch((e) => {
console.error(" * WTVNews Error:", "Command: listGroups (search)", search, e);
@@ -359,7 +359,6 @@ class WTVNews {
if (article === "getCaseInsensitiveKey" || isNaN(article)) continue;
promises.push(new Promise((resolve, reject) => {
this.getHeader(NGArticles[article]).then((data) => {
console.log(data)
if (data.article) messages.push(data.article)
resolve();
}).catch((e) => {