From e4178913bd8bc3a1d9f1260a77a49e06c4bb6024 Mon Sep 17 00:00:00 2001 From: Revvy Date: Sun, 26 Mar 2023 19:51:29 -0400 Subject: [PATCH 1/3] remove bibliogram --- config.php.example | 6 ------ docker/README.md | 1 - docker/attributes.sh | 1 - docker/php/config.php | 6 ------ docker/php/php.dockerfile | 1 - misc/tools.php | 6 ------ 6 files changed, 21 deletions(-) diff --git a/config.php.example b/config.php.example index be4fc64..9f9eeb2 100644 --- a/config.php.example +++ b/config.php.example @@ -32,12 +32,6 @@ "original_name" => "YouTube", "original_url" => "youtube.com" ), - "bibliogram" => array( - "instance_url" => "", - "project_url" => "https://git.sr.ht/~cadence/bibliogram-docs/tree/master/docs/Instances.md", - "original_name" => "Instagram", - "original_url" => "instagram.com" - ), "rimgo" => array( "instance_url" => "", "project_url" => "https://codeberg.org/video-prize-ranch/rimgo#instances", diff --git a/docker/README.md b/docker/README.md index b7bc5d6..f0c5cb9 100644 --- a/docker/README.md +++ b/docker/README.md @@ -107,7 +107,6 @@ This docker image was developed with high configurability in mind, so here is th | Variables | Default | Examples | Description | |:----------|:-------------|:---------|:------| | APP_INVIDIOUS | "" | string | Integration with external self-hosted apps, configure the desired host. | -| APP_BIBLIOGRAM | "" | string | Integration with external self-hosted apps, configure the desired host. | | APP_RIMGO | "" | string | Integration with external self-hosted apps, configure the desired host. | | APP_SCRIBE | "" | string | Integration with external self-hosted apps, configure the desired host. | | APP_LIBRARIAN | "" | string | Integration with external self-hosted apps, configure the desired host. | diff --git a/docker/attributes.sh b/docker/attributes.sh index 664b2ce..bbd529a 100755 --- a/docker/attributes.sh +++ b/docker/attributes.sh @@ -34,7 +34,6 @@ export CONFIG_WIKIPEDIA_LANGUAGE=${CONFIG_WIKIPEDIA_LANGUAGE:-${CONFIG_GOOGLE_LA # Supported apps integration configuration. These empty spaces can be set up using free hosts as pointers # A particular example is using the "https://yewtu.be" or a self-hosted host to integrate the invidious app to librex export APP_INVIDIOUS=${APP_INVIDIOUS:-""} -export APP_BIBLIOGRAM=${APP_BIBLIOGRAM:-""} export APP_RIMGO=${APP_RIMGO:-""} export APP_SCRIBE=${APP_SCRIBE:-""} export APP_LIBRARIAN=${APP_LIBRARIAN:-""} diff --git a/docker/php/config.php b/docker/php/config.php index a588745..260376e 100644 --- a/docker/php/config.php +++ b/docker/php/config.php @@ -18,12 +18,6 @@ "original_name" => "YouTube", "original_url" => "youtube.com" ), - "bibliogram" => array( - "instance_url" => "${APP_BIBLIOGRAM}", - "project_url" => "https://git.sr.ht/~cadence/bibliogram-docs/tree/master/docs/Instances.md", - "original_name" => "Instagram", - "original_url" => "instagram.com" - ), "rimgo" => array( "instance_url" => "${APP_RIMGO}", "project_url" => "https://codeberg.org/video-prize-ranch/rimgo#instances", diff --git a/docker/php/php.dockerfile b/docker/php/php.dockerfile index b1b7b82..a2c8022 100644 --- a/docker/php/php.dockerfile +++ b/docker/php/php.dockerfile @@ -22,7 +22,6 @@ ENV CONFIG_BITTORRENT_TRACKERS="&tr=http://nyaa.tracker.wf:7777/announce&tr=udp: # Supported apps integration configuration. These empty spaces can be set up using free hosts as pointers # A particular example is using the "https://yewtu.be" or a self-hosted host to integrate the invidious app to librex ENV APP_INVIDIOUS="" -ENV APP_BIBLIOGRAM="" ENV APP_RIMGO="" ENV APP_SCRIBE="" ENV APP_LIBRARIAN="" diff --git a/misc/tools.php b/misc/tools.php index 191ca4c..96dc08b 100644 --- a/misc/tools.php +++ b/misc/tools.php @@ -30,12 +30,6 @@ else if (!empty($frontends[$frontend]["instance_url"])) $frontend = $frontends[$frontend]["instance_url"]; - if ($original == "instagram.com") - { - if (!strpos($url, "/p/")) - $frontend .= "/u"; - } - if (empty(trim($frontend))) return $url; From 2283a4fee8c2b2e70f6a0d80796f13b4c68e68c3 Mon Sep 17 00:00:00 2001 From: Revvy Date: Sun, 26 Mar 2023 20:10:15 -0400 Subject: [PATCH 2/3] suds => snopes --- config.php.example | 6 ++++++ docker/README.md | 1 + docker/attributes.sh | 1 + docker/php/config.php | 7 +++++++ docker/php/php.dockerfile | 1 + 5 files changed, 16 insertions(+) diff --git a/config.php.example b/config.php.example index 9f9eeb2..2b883a9 100644 --- a/config.php.example +++ b/config.php.example @@ -105,6 +105,12 @@ "project_url" => "https://github.com/httpjamesm/AnonymousOverflow#clearnet-instances", "original_name" => "StackOverflow", "original_url" => "stackoverflow.com" + ), + "suds" => array( + "instance_url" => "", + "project_url" => "https://git.vern.cc/cobra/Suds/src/branch/main/instances.json", + "original_name" => "Suds", + "original_url" => "snopes.com" ) ), diff --git a/docker/README.md b/docker/README.md index f0c5cb9..85d8196 100644 --- a/docker/README.md +++ b/docker/README.md @@ -119,6 +119,7 @@ This docker image was developed with high configurability in mind, so here is th | APP_LIBREMDB | "" | string | Integration with external self-hosted apps, configure the desired host. | | APP_BREEZEWIKI | "" | string | Integration with external self-hosted apps, configure the desired host. | | APP_ANONYMOUS_OVERFLOW | "" | string | Integration with external self-hosted apps, configure the desired host. | +| APP_SUDS | "" | string | Integration with external self-hosted apps, configure the desired host. |
diff --git a/docker/attributes.sh b/docker/attributes.sh index bbd529a..16ff1c9 100755 --- a/docker/attributes.sh +++ b/docker/attributes.sh @@ -46,6 +46,7 @@ export APP_QUETRE=${APP_QUETRE:-""} export APP_LIBREMDB=${APP_LIBREMDB:-""} export APP_BREEZEWIKI=${APP_BREEZEWIKI:-""} export APP_ANONYMOUS_OVERFLOW=${APP_ANONYMOUS_OVERFLOW:-""} +export APP_SUDS=${APP_SUDS:-""} # GNU/Curl configurations. Leave 'CURLOPT_PROXY' blank whether you don't need to use a proxy for requests # Generally, a proxy is needed when your IP address is blocked by search engines in response to multiple requests within a short time frame. In these cases, it is recommended to use rotating proxies diff --git a/docker/php/config.php b/docker/php/config.php index 260376e..92560c3 100644 --- a/docker/php/config.php +++ b/docker/php/config.php @@ -91,7 +91,14 @@ "project_url" => "https://github.com/httpjamesm/AnonymousOverflow#clearnet-instances", "original_name" => "StackOverflow", "original_url" => "stackoverflow.com" + ), + "suds" => array( + "instance_url" => "${APP_SUDS}", + "project_url" => "https://git.vern.cc/cobra/Suds/src/branch/main/instances.json", + "original_name" => "Suds", + "original_url" => "snopes.com" ) + ), "curl_settings" => array( diff --git a/docker/php/php.dockerfile b/docker/php/php.dockerfile index a2c8022..1878193 100644 --- a/docker/php/php.dockerfile +++ b/docker/php/php.dockerfile @@ -34,6 +34,7 @@ ENV APP_QUETRE="" ENV APP_LIBREMDB="" ENV APP_BREEZEWIKI="" ENV APP_ANONYMOUS_OVERFLOW="" +ENV APP_SUDS="" # GNU/Curl configurations. Leave 'CURLOPT_PROXY' blank whether you don't need to use a proxy for requests # Generally, a proxy is needed when your IP address is blocked by search engines in response to multiple requests within a short time frame. In these cases, it is recommended to use rotating proxies From b52b2aa4dae916ce35619ad811c86a1a893aca61 Mon Sep 17 00:00:00 2001 From: Revvy Date: Sun, 9 Apr 2023 18:37:22 -0400 Subject: [PATCH 3/3] fix original_name --- config.php.example | 2 +- docker/php/config.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.php.example b/config.php.example index 2b883a9..58c17b9 100644 --- a/config.php.example +++ b/config.php.example @@ -109,7 +109,7 @@ "suds" => array( "instance_url" => "", "project_url" => "https://git.vern.cc/cobra/Suds/src/branch/main/instances.json", - "original_name" => "Suds", + "original_name" => "Snopes", "original_url" => "snopes.com" ) ), diff --git a/docker/php/config.php b/docker/php/config.php index 92560c3..e866196 100644 --- a/docker/php/config.php +++ b/docker/php/config.php @@ -95,7 +95,7 @@ "suds" => array( "instance_url" => "${APP_SUDS}", "project_url" => "https://git.vern.cc/cobra/Suds/src/branch/main/instances.json", - "original_name" => "Suds", + "original_name" => "Snopes", "original_url" => "snopes.com" )