Skip to content

Commit

Permalink
Merge pull request #42 from vc1x/main
Browse files Browse the repository at this point in the history
2.8.6: Fix gofile
  • Loading branch information
SkyCloudDev authored Mar 24, 2024
2 parents a4b525d + 4a92088 commit 64bff3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dist/build.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1987,9 +1987,9 @@ const resolvers = [
const resolveAlbum = async (url, spoilers) => {
const contentId = url.split('/').reverse()[0];

const apiUrl = `https://api.gofile.io/getContent?contentId=${contentId}&token=${settings.hosts.goFile.token}&wt=4fd6sg89d7s6&cache=true`;
const apiUrl = `https://api.gofile.io/contents/${contentId}?wt=4fd6sg89d7s6`;

let { source } = await http.get(apiUrl);
let { source } = await http.get(apiUrl, {}, { 'Authorization': `Bearer ${settings.hosts.goFile.token}` });

if (h.contains('error-notFound', source)) {
log.host.error(postId, `::Album not found::: ${url}`, 'gofile.io');
Expand Down Expand Up @@ -2044,15 +2044,15 @@ const resolvers = [
const resolved = [];

const getChildAlbums = async (props, spoilers) => {
if (!props || props.status !== 'ok' || !props.data || !props.data.childs || !props.data.childs.length) {
if (!props || props.status !== 'ok' || !props.data || !props.data.children) {
return [];
}

const resolved = [];

folderName = props.data.name;

const files = props.data.contents;
const files = props.data.children;

for (const file in files) {
const obj = files[file];
Expand Down

0 comments on commit 64bff3c

Please sign in to comment.