mirror of
https://git.nerdvpn.de/NerdVPN.de/invidious
synced 2026-02-14 22:51:42 +01:00
update patch for redis usage
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From 019134666dd15ace22d62456dffdae0ad2bb502f Mon Sep 17 00:00:00 2001
|
||||
From 65c62eb9a22a1c74c74000e1d760a40b1863b613 Mon Sep 17 00:00:00 2001
|
||||
From: Emilien Devos <contact@emiliendevos.be>
|
||||
Date: Sat, 10 Jun 2023 22:21:38 +0200
|
||||
Subject: [PATCH 1/1] use redis for video cache
|
||||
@@ -69,7 +69,7 @@ index 7ee0bb2a..97cc35e9 100644
|
||||
development_dependencies:
|
||||
spectator:
|
||||
diff --git a/src/invidious.cr b/src/invidious.cr
|
||||
index 27c4775e..79e5a8dd 100644
|
||||
index 636e28a6..eb18855e 100644
|
||||
--- a/src/invidious.cr
|
||||
+++ b/src/invidious.cr
|
||||
@@ -31,6 +31,7 @@ require "xml"
|
||||
@@ -92,8 +92,8 @@ index 27c4775e..79e5a8dd 100644
|
||||
+ puts "Connected to redis"
|
||||
+end
|
||||
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")
|
||||
diff --git a/src/invidious/config.cr b/src/invidious/config.cr
|
||||
index 9fc58409..524b2513 100644
|
||||
--- a/src/invidious/config.cr
|
||||
@@ -148,7 +148,7 @@ index 695f5b33..776ef5b1 100644
|
||||
end
|
||||
end
|
||||
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr
|
||||
index 0038a97a..e652e6d6 100644
|
||||
index f38b33e5..2a22a862 100644
|
||||
--- a/src/invidious/videos.cr
|
||||
+++ b/src/invidious/videos.cr
|
||||
@@ -355,7 +355,7 @@ def get_video(id, refresh = true, region = nil, force_refresh = false)
|
||||
|
||||
Reference in New Issue
Block a user