diff --git a/src/renderer/components/ft-list-video/ft-list-video.js b/src/renderer/components/ft-list-video/ft-list-video.js index 7ea55f3d..7285f57d 100644 --- a/src/renderer/components/ft-list-video/ft-list-video.js +++ b/src/renderer/components/ft-list-video/ft-list-video.js @@ -52,7 +52,9 @@ export default Vue.extend({ 'openInvidious', 'copyInvidious', 'openYoutubeChannel', - 'copyYoutubeChannel' + 'copyYoutubeChannel', + 'openInvidiousChannel', + 'copyInvidiousChannel' ] } }, @@ -91,6 +93,10 @@ export default Vue.extend({ return `${this.invidiousInstance}/watch?v=${this.id}` }, + invidiousChannelUrl: function () { + return `${this.invidiousInstance}/channel/${this.channelId}` + }, + youtubeUrl: function () { return `https://www.youtube.com/watch?v=${this.id}` }, @@ -120,7 +126,9 @@ export default Vue.extend({ this.$t('Video.Open in Invidious'), this.$t('Video.Copy Invidious Link'), this.$t('Video.Open Channel in YouTube'), - this.$t('Video.Copy YouTube Channel Link') + this.$t('Video.Copy YouTube Channel Link'), + this.$t('Video.Open Channel in Invidious'), + this.$t('Video.Copy Invidious Channel Link') ] if (this.watched) { @@ -228,6 +236,18 @@ export default Vue.extend({ shell.openExternal(this.youtubeChannelUrl) } break + case 'copyInvidiousChannel': + navigator.clipboard.writeText(this.invidiousChannelUrl) + this.showToast({ + message: this.$t('Share.Invidious Channel URL copied to clipboard') + }) + break + case 'openInvidiousChannel': + if (this.usingElectron) { + const shell = require('electron').shell + shell.openExternal(this.invidiousChannelUrl) + } + break } }, diff --git a/static/locales/en-US.yaml b/static/locales/en-US.yaml index 79a76172..2340884c 100644 --- a/static/locales/en-US.yaml +++ b/static/locales/en-US.yaml @@ -396,6 +396,8 @@ Video: Copy Invidious Link: Copy Invidious Link Open Channel in YouTube: Open Channel in YouTube Copy YouTube Channel Link: Copy YouTube Channel Link + Open Channel in Invidious: Open Channel in Invidious + Copy Invidious Channel Link: Copy Invidious Channel Link View: View Views: Views Loop Playlist: Loop Playlist @@ -508,6 +510,7 @@ Share: # On Click Invidious URL copied to clipboard: Invidious URL copied to clipboard Invidious Embed URL copied to clipboard: Invidious Embed URL copied to clipboard + Invidious Channel URL copied to clipboard: Invidious Channel URL copied to clipboard YouTube URL copied to clipboard: YouTube URL copied to clipboard YouTube Embed URL copied to clipboard: YouTube Embed URL copied to clipboard YouTube Channel URL copied to clipboard: YouTube Channel URL copied to clipboard