Skip to content

Commit

Permalink
new
Browse files Browse the repository at this point in the history
  • Loading branch information
alx-xlx committed Apr 12, 2021
1 parent ccef476 commit 669124c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<img src="https://i.imgur.com/7iC0dbz.png" alt="goindex" height="">
<img src="https://i.imgur.com/ucUTdrZ.png" alt="goindex" height="">
</div>
<div align="center">

Expand Down Expand Up @@ -67,12 +67,14 @@ Worker Script - [index.js](https://github.com/alx-xlx/goindex/blob/2.0.8-darkmod
## Python Example
import requests

to_upload = "https://i.imgur.com/8w2KDrG.gif"
# "upload: true" in the script
to_upload = "https://i.imgur.com/8w2KDrG.gif"
baseURL = "https://gdindex-dark.teamsdrives.workers.dev/"
fileName = "goindex.gif"
# "folder1/folder2/goindex.gif"
teamDriveID = "0ANCHcQq-8cmvUk9PVA" # Default - "root"
# Subdirectories of Folder in Google Drive
fileName = "folder1/folder2/goindex.gif"
# Default teamDriveID is "root"
teamDriveID = "0ANCHcQq-8cmvUk9PVA"

URL = baseURL + "/" + fileName + "?rootId=" + teamDriveID + "&url=" + to_upload
r = requests.put(URL)
Expand Down Expand Up @@ -116,7 +118,7 @@ Get free Google Shared Drives
- [team.hackgence.com](https://team.hackgence.com)

## Quick Deployment
1.Open https://installen.gd.workers.dev/
1.Open https://goindex.glitch.me/
2.Auth and get the code
3.Deploy the code to [Cloudflare Workers](https://www.cloudflare.com/)

Expand Down
4 changes: 2 additions & 2 deletions goindex-acrou/go2index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ class googleDrive {
params.q = `'${parent}' in parents and trashed = false AND name !='.password'`;
params.orderBy = "folder,name,modifiedTime desc";
params.fields =
"nextPageToken, files(name, mimeType, size , modifiedTime, thumbnailLink, description)";
"nextPageToken, files(id, name, mimeType, size , modifiedTime, thumbnailLink, description)";
params.pageSize = this.authConfig.files_list_page_size;

if (page_token) {
Expand Down Expand Up @@ -687,7 +687,7 @@ class googleDrive {
}
params.q = `trashed = false AND name !='.password' AND (${name_search_str})`;
params.fields =
"nextPageToken, files(name, mimeType, size , modifiedTime, thumbnailLink, description)";
"nextPageToken, files(id, name, mimeType, size , modifiedTime, thumbnailLink, description)";
params.pageSize = this.authConfig.search_result_list_page_size;
// params.orderBy = 'folder,name,modifiedTime desc';

Expand Down

0 comments on commit 669124c

Please sign in to comment.