mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Save character data bank attachments as non-exportable
This commit is contained in:
@ -61,6 +61,20 @@ export class ScraperManager {
|
||||
}
|
||||
return scraper.scrape();
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a scraper is available.
|
||||
* @param {string} scraperId ID of the scraper to check
|
||||
* @returns {Promise<boolean>} Whether the scraper is available
|
||||
*/
|
||||
static isScraperAvailable(scraperId) {
|
||||
const scraper = ScraperManager.#scrapers.find(s => s.id === scraperId);
|
||||
if (!scraper) {
|
||||
console.warn(`Scraper with ID ${scraperId} not found`);
|
||||
return;
|
||||
}
|
||||
return scraper.isAvailable();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user