mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-25 01:20:32 +00:00
Gdrive optional
This commit is contained in:
parent
b352bbfd14
commit
3916205a95
@ -1,5 +1,8 @@
|
||||
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
|
||||
|
@ -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:
|
||||
|
@ -1,6 +1,11 @@
|
||||
#!/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:
|
||||
|
Loading…
Reference in New Issue
Block a user