File tree 2 files changed +2
-2
lines changed
bot/helper/mirror_utils/upload_utils
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class GoogleDriveHelper:
16
16
def __init__ (self , name = None , listener = None ):
17
17
self .__G_DRIVE_TOKEN_FILE = "token.pickle"
18
18
# Check https://developers.google.com/drive/scopes for all available scopes
19
- self .__OAUTH_SCOPE = "https://www.googleapis.com/auth/drive.file "
19
+ self .__OAUTH_SCOPE = "https://www.googleapis.com/auth/drive"
20
20
# Redirect URI for installed apps, can be left as is
21
21
self .__REDIRECT_URI = "urn:ietf:wg:oauth:2.0:oob"
22
22
self .__G_DRIVE_DIR_MIME_TYPE = "application/vnd.google-apps.folder"
Original file line number Diff line number Diff line change 5
5
6
6
credentials = None
7
7
__G_DRIVE_TOKEN_FILE = "token.pickle"
8
- __OAUTH_SCOPE = ["https://www.googleapis.com/auth/drive.file " ]
8
+ __OAUTH_SCOPE = ["https://www.googleapis.com/auth/drive" ]
9
9
if os .path .exists (__G_DRIVE_TOKEN_FILE ):
10
10
with open (__G_DRIVE_TOKEN_FILE , 'rb' ) as f :
11
11
credentials = pickle .load (f )
You can’t perform that action at this time.
0 commit comments