mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-11-22 13:37:23 +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"));
|
.then(() => (document.title = this.playlist.name + " - Piped"));
|
||||||
},
|
},
|
||||||
handleScroll() {
|
handleScroll() {
|
||||||
if (this.loading || !this.playlist || !this.playlist.nextpage)
|
if (
|
||||||
|
this.loading ||
|
||||||
|
!this.playlist ||
|
||||||
|
!this.playlist.nextpage ||
|
||||||
|
!this.playlist.nextid
|
||||||
|
)
|
||||||
return;
|
return;
|
||||||
if (
|
if (
|
||||||
window.innerHeight + window.scrollY >=
|
window.innerHeight + window.scrollY >=
|
||||||
@ -94,10 +99,13 @@ export default {
|
|||||||
"/nextpage/playlists/" +
|
"/nextpage/playlists/" +
|
||||||
this.$route.query.list +
|
this.$route.query.list +
|
||||||
"?url=" +
|
"?url=" +
|
||||||
encodeURIComponent(this.playlist.nextpage)
|
encodeURIComponent(this.playlist.nextpage) +
|
||||||
|
"&id=" +
|
||||||
|
encodeURIComponent(this.playlist.nextid)
|
||||||
).then(json => {
|
).then(json => {
|
||||||
this.playlist.relatedStreams.concat(json.relatedStreams);
|
this.playlist.relatedStreams.concat(json.relatedStreams);
|
||||||
this.playlist.nextpage = json.nextpage;
|
this.playlist.nextpage = json.nextpage;
|
||||||
|
this.playlist.nextid = json.nextid;
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
json.relatedStreams.map(stream =>
|
json.relatedStreams.map(stream =>
|
||||||
this.playlist.relatedStreams.push(stream)
|
this.playlist.relatedStreams.push(stream)
|
||||||
|
Loading…
Reference in New Issue
Block a user