So glad to see @Prefinem working on this again =]
- I pulled the latest commit hoping it would fix torrent updates in loader.js but it seems the same behaviour to me. I don't see seed/leech being updated. Nothing shows up in loader-out.log, or loader.error.log with debug = true in index.js. When I run scraper.js I see in log:
Total Torrents: 785004
Torrents without Tracker: 781921
Torrents not in Search: 361
- Another issue I found was that I kept noticing 0 byte files being scraped, or at least I thought they were 0byte! When I checked mysql I found they had a proper length field BUT they had a huge files field which was always truncated abruptly due to max length on TEXT type field in mysql. You can maybe see what I mean here: https://pastebin.com/STBrvykL
I did this to test (ALTER TABLE torrents MODIFY `files` MEDIUMTEXT;) and it seems no more broken file lists but this opens us up to 16mb max record sizes on this field. Might be worth it to truncate these instead in parser.js but I'm not sure the best approach :/
- The last issue I noticed is I still cannot seem to filter out the invalid character � from scrapes, I've tried
0xFFFD, � - and a few others...but I'll keep trying. I haven't tested but I think this should work on all unexpected characters: dataStr.replace(/[\u{0080}-\u{FFFF}]/gu,"");
So glad to see @Prefinem working on this again =]
Total Torrents: 785004Torrents without Tracker: 781921Torrents not in Search: 361I did this to test (
ALTER TABLE torrents MODIFY `files` MEDIUMTEXT;) and it seems no more broken file lists but this opens us up to 16mb max record sizes on this field. Might be worth it to truncate these instead in parser.js but I'm not sure the best approach :/0xFFFD, �- and a few others...but I'll keep trying. I haven't tested but I think this should work on all unexpected characters:dataStr.replace(/[\u{0080}-\u{FFFF}]/gu,"");