Add support to import gallery

This commit is contained in:
2024-06-07 20:49:21 +08:00
parent 0e841b61a5
commit fc81a4e1af
10 changed files with 533 additions and 19 deletions

View File

@@ -88,6 +88,9 @@ class Image {
get src() {
return this.data?.img_url;
}
get token() {
return this.base.token;
}
get xres() {
return this.data?.xres;
}

View File

@@ -136,6 +136,9 @@ class MPVImage {
get thumbnail() {
return this.base.t;
}
get token() {
return this.base.k;
}
get xres() {
const xres = this.data?.xres;
if (!xres) return undefined;