Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
3916205a
Commit
3916205a
authored
Mar 16, 2017
by
Jack Darlington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gdrive optional
parent
b352bbfd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
gdriveutils.py
cps/gdriveutils.py
+5
-2
helper.py
cps/helper.py
+4
-1
web.py
cps/web.py
+6
-3
No files found.
cps/gdriveutils.py
View file @
3916205a
from
pydrive.auth
import
GoogleAuth
from
pydrive.drive
import
GoogleDrive
try
:
from
pydrive.auth
import
GoogleAuth
from
pydrive.drive
import
GoogleDrive
except
ImportError
:
pass
import
os
,
time
from
ub
import
config
...
...
cps/helper.py
View file @
3916205a
...
...
@@ -35,7 +35,10 @@ import shutil
import
requests
import
zipfile
from
tornado.ioloop
import
IOLoop
import
gdriveutils
as
gd
try
:
import
gdriveutils
as
gd
except
ImportError
:
pass
import
web
try
:
...
...
cps/web.py
View file @
3916205a
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from
pydrive.auth
import
GoogleAuth
try
:
from
pydrive.auth
import
GoogleAuth
from
googleapiclient.errors
import
HttpError
gdrive_support
=
True
except
ImportError
:
gdrive_support
=
False
import
mimetypes
import
logging
...
...
@@ -56,8 +61,6 @@ import io
import
hashlib
import
threading
from
googleapiclient.errors
import
HttpError
from
tornado
import
version
as
tornadoVersion
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment