Compare commits

..

No commits in common. "517574720e757b7cfc6f5b1c575cf1459c9c9776" and "4956eabbf4f92d3df613a3dc7b99e3a51c3c4556" have entirely different histories.

View file

@ -184,11 +184,10 @@ async function importFound(watch, collection) {
const { rows: [live] } = await db.query('SELECT enabled FROM watched_collections WHERE id = $1', [watch.id]); const { rows: [live] } = await db.query('SELECT enabled FROM watched_collections WHERE id = $1', [watch.id]);
if (!live || !live.enabled) break; if (!live || !live.enabled) break;
const url = makerworld.designUrl(design); const url = makerworld.designUrl(design);
// While MakerWorld is waiting for you to prove you're not a robot, the
// check still brings in the models — their files wait for you. Decided out
// here because the wait after each import depends on it.
const withFiles = Boolean(watch.fetch_files) && !downloadBlock.isBlocked('makerworld');
try { try {
// While MakerWorld is waiting for you to prove you're not a robot, the
// check still brings in the models — their files wait for you.
const withFiles = Boolean(watch.fetch_files) && !downloadBlock.isBlocked('makerworld');
const result = await deps.importFromUrl(url, { const result = await deps.importFromUrl(url, {
projects: watch.project_id ? [watch.project_id] : [], projects: watch.project_id ? [watch.project_id] : [],
withFiles, // off by default: MakerWorld refuses quick bursts withFiles, // off by default: MakerWorld refuses quick bursts