summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/GoogledriveCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/GoogledriveCom.py')
-rw-r--r--module/plugins/hoster/GoogledriveCom.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hoster/GoogledriveCom.py b/module/plugins/hoster/GoogledriveCom.py
index 27141dbe8..00a540e47 100644
--- a/module/plugins/hoster/GoogledriveCom.py
+++ b/module/plugins/hoster/GoogledriveCom.py
@@ -7,13 +7,13 @@ import re
import urlparse
from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
-from module.utils import html_unescape
+from module.plugins.internal.utils import html_unescape
class GoogledriveCom(SimpleHoster):
__name__ = "GoogledriveCom"
__type__ = "hoster"
- __version__ = "0.14"
+ __version__ = "0.15"
__status__ = "testing"
__pattern__ = r'https?://(?:www\.)?(drive|docs)\.google\.com/(file/d/\w+|uc\?.*id=)'
@@ -45,12 +45,12 @@ class GoogledriveCom(SimpleHoster):
return
link = self.fixurl(link, "https://docs.google.com/")
- direct_link = self.direct_link(link, False)
+ dl = self.is_download(link, redirect=False)
- if not direct_link:
+ if not dl:
self.html = self.load(link)
else:
- self.link = direct_link
+ self.link = dl
break