mirror of
https://github.com/mmjee/Piped-Material.git
synced 2024-12-06 19:26:36 +01:00
Don't handle moving to the next related video from the player
This commit is contained in:
@@ -153,24 +153,7 @@ export default {
|
||||
})
|
||||
|
||||
videoEl.addEventListener('ended', () => {
|
||||
if (!this.selectedAutoLoop && this.selectedAutoPlay && this.video.relatedStreams.length > 0) {
|
||||
const params = this.$route.query
|
||||
let url = this.video.relatedStreams[0].url
|
||||
const searchParams = new URLSearchParams()
|
||||
for (const param in params) {
|
||||
switch (param) {
|
||||
case 'v':
|
||||
case 't':
|
||||
break
|
||||
default:
|
||||
searchParams.set(param, params[param])
|
||||
break
|
||||
}
|
||||
}
|
||||
const paramStr = searchParams.toString()
|
||||
if (paramStr.length > 0) url += '&' + paramStr
|
||||
this.$router.push(url)
|
||||
}
|
||||
this.$emit('videoEnded')
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user