Prepare search code for pagination
This commit is contained in:
parent
e0e6433b6c
commit
2b31078e05
|
@ -18544,9 +18544,9 @@
|
|||
"integrity": "sha512-MH9xq4gxR54oktdPnkMXftKJ7aqp3iCDURKjEg/5NBoCPsOZUGFMtyAaVUBVNQsoAg1Dd0vxEPinbC/aJa/InQ=="
|
||||
},
|
||||
"ytdl-core": {
|
||||
"version": "4.1.4",
|
||||
"resolved": "https://registry.npmjs.org/ytdl-core/-/ytdl-core-4.1.4.tgz",
|
||||
"integrity": "sha512-f9M2ctrQNH9/X+jOZ/4iA4h6DvNcyuJ+fDvacheeaxtV7sX13qaNmQgNAe7UeTlJWh7Dn3RHQ6imqJJh5beGQg==",
|
||||
"version": "4.1.5",
|
||||
"resolved": "https://registry.npmjs.org/ytdl-core/-/ytdl-core-4.1.5.tgz",
|
||||
"integrity": "sha512-3MSGIFg3jBWuYZthumSZh69pLwC8/0Wz4Ov+Q6StsGsGcbwBN0OGtz3XvtlYS5YWLrxLeIs/FRBMXrgeEOSA+w==",
|
||||
"requires": {
|
||||
"html-entities": "^1.3.1",
|
||||
"m3u8stream": "^0.8.3",
|
||||
|
|
|
@ -47,9 +47,9 @@
|
|||
"yt-dash-manifest-generator": "^1.1.0",
|
||||
"yt-trending-scraper": "^1.0.4",
|
||||
"yt-xml2vtt": "^1.1.3",
|
||||
"ytdl-core": "^4.1.4",
|
||||
"ytpl": "^2.0.0",
|
||||
"ytsr": "^2.0.0"
|
||||
"ytdl-core": "^4.1.5",
|
||||
"ytpl": "^2.0.1",
|
||||
"ytsr": "^2.0.1"
|
||||
},
|
||||
"description": "A private YouTube client",
|
||||
"devDependencies": {
|
||||
|
|
|
@ -24,6 +24,13 @@ const actions = {
|
|||
resolve(false)
|
||||
}
|
||||
|
||||
if (typeof payload.options.nextPageRef !== 'undefined') {
|
||||
const continuation = payload.options.nextPageRef
|
||||
const nextPageResults = ytsr.continueReq(continuation)
|
||||
console.log(nextPageResults)
|
||||
resolve(nextPageResults)
|
||||
}
|
||||
|
||||
const defaultFilters = {
|
||||
sortBy: 'relevance',
|
||||
time: '',
|
||||
|
|
|
@ -113,6 +113,7 @@ export default Vue.extend({
|
|||
performSearchLocal: function (payload) {
|
||||
if (!payload.nextPage) {
|
||||
this.isLoading = true
|
||||
// payload.options.pages = 1
|
||||
}
|
||||
|
||||
this.$store.dispatch('ytSearch', payload).then((result) => {
|
||||
|
@ -171,7 +172,7 @@ export default Vue.extend({
|
|||
this.shownResults = returnDataInvidious
|
||||
}
|
||||
|
||||
this.nextPageRef = result.nextpageRef
|
||||
this.nextPageRef = result.continuation
|
||||
this.isLoading = false
|
||||
|
||||
const historyPayload = {
|
||||
|
|
Loading…
Reference in New Issue