[invidious] Now replaces YouTube links without a leading "www." #1494
No reviewers
Labels
No labels
2018.09
2019.01
2019.03
2019.06
2019.09
2019.12
2020.03
2020.06
2020.09
2020.12
2021.03
2021.07
2021.09
2022.02
2022.06
2022.09
2022.12
2023.04
2023.05
2023.09
2024.03
2024.06
2024.09
2024.12
dependencies
Hackathon 2021
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: friendica/friendica-addons#1494
Loading…
Reference in a new issue
No description provided.
Delete branch ":develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Now intercepts YouTube links without a leading "www".
@ -97,1 +97,4 @@
$b['html'] = preg_replace("/https?:\/\/www.youtube.com\/shorts\/(.*?)/ism", $server . '/shorts/$1', $b['html']);
$b['html'] = preg_replace("/https?:\/\/youtube.com\/watch\?v\=(.*?)/ism", $server . '/watch?v=$1', $b['html']);
$b['html'] = preg_replace("/https?:\/\/youtube.com\/embed\/(.*?)/ism", $server . '/embed/$1', $b['html']);
$b['html'] = preg_replace("/https?:\/\/youtube.com\/shorts\/(.*?)/ism", $server . '/shorts/$1', $b['html']);
This can be accomplished simpler by tweaking the original pattern. I also changed the pattern delimiters to remove some escape characters and I added them back to the literal dot characters.
It looks like your branch has conflicts and needs to be rebased onto the parent repository's
develop
branch before we can merge it. Please let me know if you need help with this.invidious/invidious.php aktualisiertto [invidious] Now replaces YouTube links without a leading "www."That would be very kind of you. As I have only made the changes via the WebUI and do not have a local repository, I cannot make the changes via the console. Thank you very much.
2d7d11c7d8
to3bf547ee6e