summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/ZippyshareCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/ZippyshareCom.py')
-rw-r--r--module/plugins/hoster/ZippyshareCom.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/ZippyshareCom.py b/module/plugins/hoster/ZippyshareCom.py
index cdb37a18c..fbac432cd 100644
--- a/module/plugins/hoster/ZippyshareCom.py
+++ b/module/plugins/hoster/ZippyshareCom.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
import re
-from urllib import unquote
+import urllib
from BeautifulSoup import BeautifulSoup
@@ -53,8 +53,8 @@ class ZippyshareCom(SimpleHoster):
else:
self.link = self.get_link()
- if pyfile.name == 'file.html' and self.link:
- pyfile.name = unquote(self.link.split('/')[-1])
+ if self.link and pyfile.name == 'file.html':
+ pyfile.name = urllib.unquote(self.link.split('/')[-1])
def get_link(self):