summaryrefslogtreecommitdiffstats
path: root/src/invidious.cr
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2022-02-04 03:44:10 +0100
committerSamantaz Fox <coding@samantaz.fr>2022-02-07 17:15:22 +0100
commitad4a06fca5d11b57705540818d3eb4e86bb6ac14 (patch)
tree5bd80b371639be18e9804bdd8fbfb42cd877c544 /src/invidious.cr
parentc04f45d5e36499e6faefd163e92c58fa1abaa7ae (diff)
downloadinvidious-ad4a06fca5d11b57705540818d3eb4e86bb6ac14.tar.gz
invidious-ad4a06fca5d11b57705540818d3eb4e86bb6ac14.tar.bz2
invidious-ad4a06fca5d11b57705540818d3eb4e86bb6ac14.zip
Move user captcha code to its own module
Diffstat (limited to 'src/invidious.cr')
-rw-r--r--src/invidious.cr15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 1e78ef5d..06ce3ead 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -38,14 +38,13 @@ require "./invidious/jobs/**"
CONFIG = Config.load
HMAC_KEY = CONFIG.hmac_key || Random::Secure.hex(32)
-PG_DB = DB.open CONFIG.database_url
-ARCHIVE_URL = URI.parse("https://archive.org")
-LOGIN_URL = URI.parse("https://accounts.google.com")
-PUBSUB_URL = URI.parse("https://pubsubhubbub.appspot.com")
-REDDIT_URL = URI.parse("https://www.reddit.com")
-TEXTCAPTCHA_URL = URI.parse("https://textcaptcha.com")
-YT_URL = URI.parse("https://www.youtube.com")
-HOST_URL = make_host_url(Kemal.config)
+PG_DB = DB.open CONFIG.database_url
+ARCHIVE_URL = URI.parse("https://archive.org")
+LOGIN_URL = URI.parse("https://accounts.google.com")
+PUBSUB_URL = URI.parse("https://pubsubhubbub.appspot.com")
+REDDIT_URL = URI.parse("https://www.reddit.com")
+YT_URL = URI.parse("https://www.youtube.com")
+HOST_URL = make_host_url(Kemal.config)
CHARS_SAFE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
TEST_IDS = {"AgbeGFYluEA", "BaW_jenozKc", "a9LDPn-MO4I", "ddFvjfvPnqk", "iqKdEhx-dD4"}