File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -192,11 +192,12 @@ export default defineComponent({
192
192
} ,
193
193
194
194
youtubeShareUrl : function ( ) {
195
+ const videoUrl = `https://youtu.be/${ this . id } `
195
196
if ( this . playlistSharable ) {
196
197
// `index` seems can be ignored
197
- return `https://youtu.be/ ${ this . id } ?list=${ this . playlistIdFinal } `
198
+ return `${ videoUrl } ?list=${ this . playlistIdFinal } `
198
199
}
199
- return `https://youtu.be/ ${ this . id } `
200
+ return videoUrl
200
201
} ,
201
202
202
203
youtubeChannelUrl : function ( ) {
Original file line number Diff line number Diff line change @@ -127,11 +127,12 @@ export default defineComponent({
127
127
if ( this . isPlaylist ) {
128
128
return this . youtubePlaylistUrl
129
129
}
130
+ const videoUrl = `https://youtu.be/${ this . id } `
130
131
if ( this . playlistSharable ) {
131
132
// `index` seems can be ignored
132
- return `https://www.youtube.com/watch?v= ${ this . id } & list=${ this . playlistId } `
133
+ return `${ videoUrl } ? list=${ this . playlistId } `
133
134
}
134
- return `https://youtu.be/ ${ this . id } `
135
+ return videoUrl
135
136
} ,
136
137
137
138
youtubeEmbedURL ( ) {
You can’t perform that action at this time.
0 commit comments