Add Invidious channel url option to dropdown
This commit is contained in:
parent
4113ebb6bb
commit
29a80ef160
|
@ -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
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue