|
|
|
@ -246,6 +246,7 @@
|
|
|
|
|
'SDIR-JSON' => 'https://session.directory/scrape.php',
|
|
|
|
|
'SIMP' => 'https://simplifiedprivacy.com/techgroups',
|
|
|
|
|
'FARK' => 'https://freearkham.cc/',
|
|
|
|
|
'NSFW' => 'https://nsfwlisting.carrd.co/',
|
|
|
|
|
|
|
|
|
|
// Unused
|
|
|
|
|
'SDIR' => 'https://session.directory/?all=groups',
|
|
|
|
@ -258,6 +259,7 @@
|
|
|
|
|
private readonly string $contents_sdir;
|
|
|
|
|
private readonly string $contents_fark;
|
|
|
|
|
private readonly string $contents_simp;
|
|
|
|
|
private readonly string $contents_nsfw;
|
|
|
|
|
private readonly string $contents_aggregated;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -285,6 +287,9 @@
|
|
|
|
|
log_info("Requesting SimplifiedPrivacy.com list...");
|
|
|
|
|
$this->contents_simp = CommunitySources::fetch_source('SIMP');
|
|
|
|
|
|
|
|
|
|
log_info("Requesting NSFW Carrd list...");
|
|
|
|
|
$this->contents_nsfw = CommunitySources::fetch_source('NSFW');
|
|
|
|
|
|
|
|
|
|
log_info("Parsing extra information...");
|
|
|
|
|
if (!$this->process_sources()) {
|
|
|
|
|
log_error("Could not parse extra information from one or more sources.");
|
|
|
|
@ -297,6 +302,7 @@
|
|
|
|
|
$this->contents_fark .
|
|
|
|
|
$this->contents_loki .
|
|
|
|
|
$this->contents_simp .
|
|
|
|
|
$this->contents_nsfw .
|
|
|
|
|
// Slashes are escaped when served, unescape them
|
|
|
|
|
str_replace("\\/", "/", $this->contents_sdir);
|
|
|
|
|
}
|
|
|
|
|