mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-09 09:48:22 +00:00
Merge pull request #3764 from ac615223s5/watch-on-youtube-button
include playlist link in 'watch on youtube' button
This commit is contained in:
commit
647f4132a6
@ -136,7 +136,7 @@
|
|||||||
<i class="i-fa6-solid:share mx-1.5" />
|
<i class="i-fa6-solid:share mx-1.5" />
|
||||||
</button>
|
</button>
|
||||||
<!-- YouTube -->
|
<!-- YouTube -->
|
||||||
<WatchOnButton :link="`https://youtu.be/${getVideoId()}?t=${Math.round(currentTime)}`" />
|
<WatchOnButton :link="youtubeVideoHref" />
|
||||||
<!-- Odysee -->
|
<!-- Odysee -->
|
||||||
<WatchOnButton
|
<WatchOnButton
|
||||||
v-if="video.lbryId"
|
v-if="video.lbryId"
|
||||||
@ -363,6 +363,11 @@ export default {
|
|||||||
purifiedDescription() {
|
purifiedDescription() {
|
||||||
return purifyHTML(this.video.description);
|
return purifyHTML(this.video.description);
|
||||||
},
|
},
|
||||||
|
youtubeVideoHref() {
|
||||||
|
let link = `https://youtu.be/${this.getVideoId()}?t=${Math.round(this.currentTime)}`;
|
||||||
|
if (this.playlistId) link += `&list=${this.playlistId}`;
|
||||||
|
return link;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// check screen size
|
// check screen size
|
||||||
|
Loading…
Reference in New Issue
Block a user