log: toloka
This commit is contained in:
1 parent
5e9e7cb6a8
commit
335e26aa76
1 file changed
+6
-2
@@ -27,7 +27,10 @@ export class Toloka {
|
||||
const html = parse(data);
|
||||
const rows = html?.querySelectorAll('.prow1, .prow2');
|
||||
|
||||
return rows?.map((row) => {
|
||||
console.log(data);
|
||||
|
||||
return rows?.length
|
||||
? (rows?.map((row) => {
|
||||
const originalTitle = row.querySelector('td:nth-child(3)')?.innerText;
|
||||
const size = row.querySelector('td:nth-child(7)')?.innerText;
|
||||
const seeders = row.querySelector('td:nth-child(10)')?.innerText;
|
||||
@@ -51,7 +54,8 @@ export class Toloka {
|
||||
magnet: '',
|
||||
download
|
||||
};
|
||||
}) as Torrent[];
|
||||
}) as Torrent[])
|
||||
: data;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user