mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2025-11-03 22:21:55 +00:00 
			
		
		
		
	feat: include playlist link in 'watch on youtube' button
This commit is contained in:
		@@ -136,7 +136,7 @@
 | 
			
		||||
                            <i class="i-fa6-solid:share mx-1.5" />
 | 
			
		||||
                        </button>
 | 
			
		||||
                        <!-- YouTube -->
 | 
			
		||||
                        <WatchOnButton :link="`https://youtu.be/${getVideoId()}?t=${Math.round(currentTime)}`" />
 | 
			
		||||
                        <WatchOnButton :link="youtubeVideoHref" />
 | 
			
		||||
                        <!-- Odysee -->
 | 
			
		||||
                        <WatchOnButton
 | 
			
		||||
                            v-if="video.lbryId"
 | 
			
		||||
@@ -363,6 +363,11 @@ export default {
 | 
			
		||||
        purifiedDescription() {
 | 
			
		||||
            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() {
 | 
			
		||||
        // check screen size
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user