]> git.mxchange.org Git - friendica-addons.git/commitdiff
invidious/invidious.php aktualisiert
authorloma-one <m.ebers@web.de>
Sat, 7 Sep 2024 19:10:02 +0000 (21:10 +0200)
committerTobias Diekershoff <tobias@noreply.git.friendi.ca>
Sun, 8 Sep 2024 06:50:39 +0000 (08:50 +0200)
Further addresses have been added, which are now redirected.

invidious/invidious.php

index 7153aab96d7bbb6636c3ffedb174ec71c4e8569c..033ecce5997009954678ff56642e2fea90c37451 100644 (file)
@@ -96,6 +96,8 @@ function invidious_render(array &$b)
        $b['html'] = preg_replace("~https?://(?:www\.)?youtube\.com/watch\?v=(.*?)~ism", $server . '/watch?v=$1', $b['html']);
        $b['html'] = preg_replace("~https?://(?:www\.)?youtube\.com/embed/(.*?)~ism", $server . '/embed/$1', $b['html']);
        $b['html'] = preg_replace("~https?://(?:www\.)?youtube\.com/shorts/(.*?)~ism", $server . '/shorts/$1', $b['html']);
+       $b['html'] = preg_replace ("/https?:\/\/music.youtube.com\/(.*?)/ism", $server . '/watch?v=$1', $b['html']);
+       $b['html'] = preg_replace ("/https?:\/\/m.youtube.com\/(.*?)/ism", $server . '/watch?v=$1', $b['html']);
        $b['html'] = preg_replace("/https?:\/\/youtu.be\/(.*?)/ism", $server . '/watch?v=$1', $b['html']);
 
        if ($original != $b['html']) {