invidious/invidious.php aktualisiert #1497
|
@ -5,7 +5,7 @@
|
||||||
* Version: 0.5
|
* Version: 0.5
|
||||||
* Author: Matthias Ebers <https://loma.ml/profile/feb>
|
* Author: Matthias Ebers <https://loma.ml/profile/feb>
|
||||||
* Author: Michael Vogel <https://pirati.ca/profile/heluecht>
|
* Author: Michael Vogel <https://pirati.ca/profile/heluecht>
|
||||||
* Status:
|
* Status: Unsupported
|
||||||
loma-one marked this conversation as resolved
Outdated
|
|||||||
* Note: Please use the URL Replace addon instead
|
* 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/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?://(?: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?:\/\/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']);
|
$b['html'] = preg_replace("/https?:\/\/youtu.be\/(.*?)/ism", $server . '/watch?v=$1', $b['html']);
|
||||||
|
|
||||||
if ($original != $b['html']) {
|
if ($original != $b['html']) {
|
||||||
|
|
Loading…
Reference in a new issue
This was added by us as we encourage people to use the
url_replace
addon instead. Please leave this label in place. I do not mind you adding changes to this addon but it isn't meant to be officially supported.The addon url_replace is a deterioration in terms of self-administration by users. The feature of being able to specify their own server was very important to them. Many users operate their own invidious servers or have an account on a server other than the one I have preset that they want to use. In addition, it relieves me in the event of an error (accessibility of invidious), as users can switch off independently.
A compromise suggestion: leave it active until the self-administration function desired by the users has been retrofitted in url_replace. In this case, the admin can continue to combine the addon. I would be happy to post an issue on this.
This addon isn't going anywhere yet, and admins can choose to show unsupported addons in the list by setting
system.show_unsupported_addons
. We made the decision of favoringurl_replace
over theinvidious
andnitter
addons, so it won't be reinstated.