forked from MarseyWorld/MarseyWorld
embed live youtube urls https://rdrama.net/post/207580/critical-update-yale-rpe-student-takes
parent
ab9172ed06
commit
dbb856bd70
|
@ -755,6 +755,7 @@ def normalize_url(url):
|
||||||
.replace("https://www.youtube.com", "https://youtube.com") \
|
.replace("https://www.youtube.com", "https://youtube.com") \
|
||||||
.replace("https://m.youtube.com", "https://youtube.com") \
|
.replace("https://m.youtube.com", "https://youtube.com") \
|
||||||
.replace("https://youtube.com/shorts/", "https://youtube.com/watch?v=") \
|
.replace("https://youtube.com/shorts/", "https://youtube.com/watch?v=") \
|
||||||
|
.replace("https://youtube.com/live/", "https://youtube.com/watch?v=") \
|
||||||
.replace("https://youtube.com/v/", "https://youtube.com/watch?v=") \
|
.replace("https://youtube.com/v/", "https://youtube.com/watch?v=") \
|
||||||
.replace("https://mobile.twitter.com", "https://twitter.com") \
|
.replace("https://mobile.twitter.com", "https://twitter.com") \
|
||||||
.replace("https://x.com", "https://twitter.com") \
|
.replace("https://x.com", "https://twitter.com") \
|
||||||
|
|
Loading…
Reference in New Issue