mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-07-31 07:56:19 +00:00
parent
826bdf4997
commit
07186f8787
1 changed files with 5 additions and 2 deletions
|
@ -282,8 +282,11 @@ export default {
|
|||
if (!this.isEmbed) this.fetchSubscribedStatus();
|
||||
|
||||
this.video.description = this.video.description
|
||||
.replaceAll("http://www.youtube.com", "")
|
||||
.replaceAll("https://www.youtube.com", "")
|
||||
.replaceAll(/(?:http(?:s)?:\/\/)?(?:www\.)?youtube\.com(\/[/a-zA-Z0-9?=&]*)/gm, "$1")
|
||||
.replaceAll(
|
||||
/(?:http(?:s)?:\/\/)?(?:www\.)?youtu\.be\/(?:watch\?v=)?([/a-zA-Z0-9?=&]*)/gm,
|
||||
"/watch?v=$1",
|
||||
)
|
||||
.replaceAll("\n", "<br>");
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue