mirror of
https://git.nerdvpn.de/NerdVPN.de/invidious
synced 2026-02-14 22:51:42 +01:00
Remove temporary patch aince thats now included in upstream
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
From cebaeafcd661c730953067ef48457be3e26967a7 Mon Sep 17 00:00:00 2001
|
||||
From: weidenwiesel <webmaster@nerdvpn.de>
|
||||
Date: Sat, 20 Dec 2025 11:28:56 +0100
|
||||
Subject: [PATCH 17/17] Remove livestreams
|
||||
|
||||
---
|
||||
src/invidious/routes/watch.cr | 4 ++++
|
||||
1 files changed, 4 insertions(+)
|
||||
|
||||
diff --git a/src/invidious/routes/watch.cr b/src/invidious/routes/watch.cr
|
||||
index af8a20ca..83944c37 100644
|
||||
--- a/src/invidious/routes/watch.cr
|
||||
+++ b/src/invidious/routes/watch.cr
|
||||
@@ -61,6 +61,10 @@ module Invidious::Routes::Watch
|
||||
return error_template(500, ex)
|
||||
end
|
||||
|
||||
+ if video.live_now
|
||||
+ return error_template(403, "Livestreams are disabled because YouTube keeps breaking them.")
|
||||
+ end
|
||||
+
|
||||
if preferences.annotations_subscribed &&
|
||||
subscriptions.includes?(video.ucid) &&
|
||||
(env.params.query["iv_load_policy"]? || "1") == "1"
|
||||
|
||||
Reference in New Issue
Block a user