mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-17 17:23:41 +00:00
invidious/invidious.php aktualisiert
Ergänzung um "m.youtube.com"
This commit is contained in:
parent
528c71879d
commit
fe7cb760cd
1 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
|||
* Version: 0.5
|
||||
* Author: Matthias Ebers <https://loma.ml/profile/feb>
|
||||
* Author: Michael Vogel <https://pirati.ca/profile/heluecht>
|
||||
* Status:
|
||||
* Status: Unsupported
|
||||
* Note: Please use the URL Replace addon instead
|
||||
*/
|
||||
|
||||
|
@ -97,6 +97,7 @@ function invidious_render(array &$b)
|
|||
$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']) {
|
||||
|
|
Loading…
Reference in a new issue