|
|
|
@ -243,13 +243,14 @@
|
|
|
|
|
private const SOURCES = array(
|
|
|
|
|
'ASGL' => 'https://raw.githubusercontent.com/GNU-Linux-libre/Awesome-Session-Group-List/main/README.md',
|
|
|
|
|
'LOKI' => 'https://lokilocker.com/Mods/Session-Groups/wiki/Session-Open-Groups',
|
|
|
|
|
'SDIR' => 'https://session.directory/?all=groups',
|
|
|
|
|
'SDIR-BASE' => 'https://session.directory/',
|
|
|
|
|
'SDIR-PATTERN' => '/view_session_group_user_lokinet\.php\?id=\d+/',
|
|
|
|
|
'SDIR-JSON' => 'https://session.directory/scrape.php',
|
|
|
|
|
'FARK' => 'https://freearkham.cc/',
|
|
|
|
|
'SIMP' => 'https://simplifiedprivacy.com/techgroups',
|
|
|
|
|
'LISP' => 'https://junk.landedin.space/communities.html',
|
|
|
|
|
'FARK' => 'https://freearkham.cc/',
|
|
|
|
|
|
|
|
|
|
// Unused
|
|
|
|
|
'SDIR' => 'https://session.directory/?all=groups',
|
|
|
|
|
'SDIR-PATTERN' => '/view_session_group_user_lokinet\.php\?id=\d+/',
|
|
|
|
|
'SDIR-BASE' => 'https://session.directory/',
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
private readonly string $contents_asgl;
|
|
|
|
@ -257,7 +258,6 @@
|
|
|
|
|
private readonly string $contents_sdir;
|
|
|
|
|
private readonly string $contents_fark;
|
|
|
|
|
private readonly string $contents_simp;
|
|
|
|
|
private readonly string $contents_lisp;
|
|
|
|
|
private readonly string $contents_aggregated;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -285,9 +285,6 @@
|
|
|
|
|
log_info("Requesting SimplifiedPrivacy.com list...");
|
|
|
|
|
$this->contents_simp = CommunitySources::fetch_source('SIMP');
|
|
|
|
|
|
|
|
|
|
log_info("Requesting landedin.space list...");
|
|
|
|
|
$this->contents_lisp = CommunitySources::fetch_source('LISP');
|
|
|
|
|
|
|
|
|
|
log_info("Parsing extra information...");
|
|
|
|
|
if (!$this->process_sources()) {
|
|
|
|
|
log_error("Could not parse extra information from one or more sources.");
|
|
|
|
@ -300,7 +297,6 @@
|
|
|
|
|
$this->contents_fark .
|
|
|
|
|
$this->contents_loki .
|
|
|
|
|
$this->contents_simp .
|
|
|
|
|
$this->contents_lisp .
|
|
|
|
|
// Slashes are escaped when served, unescape them
|
|
|
|
|
str_replace("\\/", "/", $this->contents_sdir);
|
|
|
|
|
}
|
|
|
|
|