mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-13 03:38:23 +00:00
parent
826bdf4997
commit
07186f8787
@ -282,8 +282,11 @@ export default {
|
|||||||
if (!this.isEmbed) this.fetchSubscribedStatus();
|
if (!this.isEmbed) this.fetchSubscribedStatus();
|
||||||
|
|
||||||
this.video.description = this.video.description
|
this.video.description = this.video.description
|
||||||
.replaceAll("http://www.youtube.com", "")
|
.replaceAll(/(?:http(?:s)?:\/\/)?(?:www\.)?youtube\.com(\/[/a-zA-Z0-9?=&]*)/gm, "$1")
|
||||||
.replaceAll("https://www.youtube.com", "")
|
.replaceAll(
|
||||||
|
/(?:http(?:s)?:\/\/)?(?:www\.)?youtu\.be\/(?:watch\?v=)?([/a-zA-Z0-9?=&]*)/gm,
|
||||||
|
"/watch?v=$1",
|
||||||
|
)
|
||||||
.replaceAll("\n", "<br>");
|
.replaceAll("\n", "<br>");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user