summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/plugins/hoster/BitshareCom.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/module/plugins/hoster/BitshareCom.py b/module/plugins/hoster/BitshareCom.py
index d4b0668c0..c1a0d50f8 100644
--- a/module/plugins/hoster/BitshareCom.py
+++ b/module/plugins/hoster/BitshareCom.py
@@ -12,7 +12,7 @@ class BitshareCom(SimpleHoster):
__name__ = "BitshareCom"
__type__ = "hoster"
__pattern__ = r'http://(?:www\.)?bitshare\.com/(files/(?P<id1>[a-zA-Z0-9]+)(/(?P<name>.*?)\.html)?|\?f=(?P<id2>[a-zA-Z0-9]+))'
- __version__ = "0.49"
+ __version__ = "0.50"
__description__ = """Bitshare.com hoster plugin"""
__author_name__ = ("Paul King", "fragonib")
__author_mail__ = ("", "fragonib[AT]yahoo[DOT]es")
@@ -70,6 +70,12 @@ class BitshareCom(SimpleHoster):
self.logDebug("Downloading file with url [%s]" % url)
self.download(url)
+ check = self.checkDownload({"404": ">404 Not Found<", "Error": ">Error occured<"})
+ if check == "404":
+ self.retry(3, 60, 'Error 404')
+ elif check == "error":
+ self.retry(5, 5 * 60, "Bitshare host : Error occured")
+
def getDownloadUrl(self):
# Return location if direct download is active
if self.premium: