mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-10 02:08:21 +00:00
Fix playlist continuation.
This commit is contained in:
parent
d93d05d424
commit
78dff1491b
@ -82,7 +82,12 @@ export default {
|
||||
.then(() => (document.title = this.playlist.name + " - Piped"));
|
||||
},
|
||||
handleScroll() {
|
||||
if (this.loading || !this.playlist || !this.playlist.nextpage)
|
||||
if (
|
||||
this.loading ||
|
||||
!this.playlist ||
|
||||
!this.playlist.nextpage ||
|
||||
!this.playlist.nextid
|
||||
)
|
||||
return;
|
||||
if (
|
||||
window.innerHeight + window.scrollY >=
|
||||
@ -94,10 +99,13 @@ export default {
|
||||
"/nextpage/playlists/" +
|
||||
this.$route.query.list +
|
||||
"?url=" +
|
||||
encodeURIComponent(this.playlist.nextpage)
|
||||
encodeURIComponent(this.playlist.nextpage) +
|
||||
"&id=" +
|
||||
encodeURIComponent(this.playlist.nextid)
|
||||
).then(json => {
|
||||
this.playlist.relatedStreams.concat(json.relatedStreams);
|
||||
this.playlist.nextpage = json.nextpage;
|
||||
this.playlist.nextid = json.nextid;
|
||||
this.loading = false;
|
||||
json.relatedStreams.map(stream =>
|
||||
this.playlist.relatedStreams.push(stream)
|
||||
|
Loading…
Reference in New Issue
Block a user