mirror of
https://github.com/janeczku/calibre-web
synced 2025-11-05 17:55:01 +00:00
Gdrive optional
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user