@@ -67,20 +67,9 @@ rescue ex
6767 puts " Check your 'config.yml' database settings or PostgreSQL settings."
6868 exit(1 )
6969end
70- ARCHIVE_URL = URI .parse(" https://archive.org" )
71- PUBSUB_URL = URI .parse(" https://pubsubhubbub.appspot.com" )
72- REDDIT_URL = URI .parse(" https://www.reddit.com" )
73- YT_URL = URI .parse(" https://www.youtube.com" )
74- HOST_URL = make_host_url(Kemal .config)
75-
76- CHARS_SAFE = " ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
77- TEST_IDS = {" AgbeGFYluEA" , " BaW_jenozKc" , " a9LDPn-MO4I" , " ddFvjfvPnqk" , " iqKdEhx-dD4" }
70+ HOST_URL = make_host_url(Kemal .config)
7871MAX_ITEMS_PER_PAGE = 1500
7972
80- REQUEST_HEADERS_WHITELIST = {" accept" , " accept-encoding" , " cache-control" , " content-length" , " if-none-match" , " range" }
81- RESPONSE_HEADERS_BLACKLIST = {" access-control-allow-origin" , " alt-svc" , " server" , " cross-origin-opener-policy-report-only" , " report-to" , " cross-origin" , " timing-allow-origin" , " cross-origin-resource-policy" }
82- HTTP_CHUNK_SIZE = 10485760 # ~10MB
83-
8473CURRENT_BRANCH = {{ " #{ ` git branch | sed -n '/* /s///p'` .strip} " }}
8574CURRENT_COMMIT = {{ " #{ ` git rev-list HEAD --max-count=1 --abbrev-commit` .strip} " }}
8675CURRENT_VERSION = {{ " #{ ` git log -1 --format=%ci | awk '{print $1}' | sed s/-/./g` .strip} " }}
@@ -97,7 +86,7 @@ SOFTWARE = {
9786 " branch" => " #{ CURRENT_BRANCH } " ,
9887}
9988
100- YT_POOL = YoutubeConnectionPool .new(YT_URL , capacity: CONFIG .pool_size)
89+ YT_POOL = YoutubeConnectionPool .new(URI .parse( " https://www.youtube.com " ) , capacity: CONFIG .pool_size)
10190
10291# Image request pool
10392
0 commit comments