From 9f5da1802016c1eeebd2c7f81104dcdfc2531aed Mon Sep 17 00:00:00 2001 From: loma-one Date: Sun, 3 Dec 2023 18:54:39 +0100 Subject: [PATCH 1/2] invidious/invidious.php aktualisiert Redirects from youtu.be do not work reliably. Therefore this one has been removed. --- invidious/invidious.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/invidious/invidious.php b/invidious/invidious.php index 4ff57fc0..c647fd1b 100644 --- a/invidious/invidious.php +++ b/invidious/invidious.php @@ -53,10 +53,6 @@ function invidious_render(array &$b) if (strstr($b['html'], 'https://youtube.com')) { $b['html'] = str_replace('https://youtube.com', $invidious, $b['html']); $replaced = true; - } - if (strstr($b['html'], 'https://youtu.be')) { - $b['html'] = str_replace('https://youtu.be', $invidious, $b['html']); - $replaced = true; } if ($replaced) { $b['html'] .= '

' . DI::l10n()->t('(Invidious addon enabled: YouTube links via %s)', $invidious) . '

'; From 750b25a16051c6763958289c7294ad6657dc746a Mon Sep 17 00:00:00 2001 From: loma-one Date: Sun, 3 Dec 2023 20:29:19 +0100 Subject: [PATCH 2/2] invidious/lang/C/messages.po aktualisiert --- invidious/lang/C/messages.po | 41 +++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/invidious/lang/C/messages.po b/invidious/lang/C/messages.po index 8d1c8b69..f93a87d6 100644 --- a/invidious/lang/C/messages.po +++ b/invidious/lang/C/messages.po @@ -1 +1,40 @@ - + # ADDON invidious +# Copyright (C) +# This file is distributed under the same license as the Friendica invidious addon package. +# +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-12-03 20:21+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: invidious.php:35 +#, php-format +msgid "" +"Which Invidious server shall be used for the replacements in the post " +"bodies? Use the URL with servername and protocol. See %s for a list of " +"available public Invidious servers." +msgstr "" + +#: invidious.php:36 +msgid "Invidious server" +msgstr "" + +#: invidious.php:37 +msgid "Save Settings" +msgstr "" + +#: invidious.php:64 +#, php-format +msgid "(Invidious addon enabled: YouTube links via %s)" +msgstr "" +