summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/BitshareCom.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2014-06-30 13:06:54 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2014-06-30 13:06:54 +0200
commitc0a976b02b13fcda9d20372b4562a1fdfae61f82 (patch)
tree6cb8604542628e1a9e5f2b8dbeea5526aba47306 /module/plugins/hoster/BitshareCom.py
parent[RSDF] Improve code a bit (thx charlie89) (diff)
downloadpyload-c0a976b02b13fcda9d20372b4562a1fdfae61f82.tar.xz
[Bitshare] Fixed #663
Diffstat (limited to 'module/plugins/hoster/BitshareCom.py')
-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: