- Added support for unauthenticated feeds #42
- Added support for Romanian
- Closes #66
- Closes #81
- Closes #82
- Closes #84
This commit is contained in:
Shiny Nematoda 2022-11-30 17:29:42 +00:00
parent 599e024afa
commit 29eb3d0c35
No known key found for this signature in database
GPG key ID: 6506D50F5613A42D
9 changed files with 92 additions and 29 deletions

View file

@ -67,7 +67,10 @@ export const useResults = defineStore('results', () => {
useRoute(e);
useNav().state.page = 'home';
next.value = hash + '?nextpage=' + encodeURIComponent(json.nextpage);
next.value =
json.nextpage || json.nextpage != 'null'
? hash + '?nextpage=' + encodeURIComponent(json.nextpage)
: null;
}
return {
@ -88,6 +91,7 @@ export const useArtist = defineStore('artist', () => {
title: null,
description: null,
subscriberCount: 0,
hash: null,
thumbnails: [],
});
@ -99,7 +103,7 @@ export const useArtist = defineStore('artist', () => {
function set(obj) {
for (let i in obj) {
state[i] = obj[i];
if (i in state) state[i] = obj[i];
}
}
@ -122,6 +126,7 @@ export const useArtist = defineStore('artist', () => {
console.log(results.items);
json.items = undefined;
json.hash = e;
reset();
set(json);