@@ -17,7 +17,7 @@ def getInfo(urls):
1717
1818 for chunk in chunks (urls , 90 ):
1919 api_param_file = {"links" : "\n " .join (x .replace ("http://www.share-online.biz/dl/" ,"" ).rstrip ("/" ) for x in chunk )} #api only supports old style links
20- src = getURL (api_url_base , post = api_param_file )
20+ src = getURL (api_url_base , post = api_param_file , decode = True )
2121 result = []
2222 for i , res in enumerate (src .split ("\n " )):
2323 if not res :
@@ -43,7 +43,7 @@ class ShareonlineBiz(Hoster):
4343 __name__ = "ShareonlineBiz"
4444 __type__ = "hoster"
4545 __pattern__ = r"http://[\w\.]*?(share\-online\.biz|egoshare\.com)/(download.php\?id\=|dl/)[\w]+"
46- __version__ = "0.34 "
46+ __version__ = "0.35 "
4747 __description__ = """Shareonline.biz Download Hoster"""
4848 __author_name__ = ("spoob" , "mkaay" , "zoidberg" )
4949 __author_mail__ = ("spoob@pyload.org" , "mkaay@mkaay.de" , "zoidberg@mujmail.cz" )
@@ -57,7 +57,8 @@ def setup(self):
5757 self .file_id = re .search (r"(id\=|/dl/)([a-zA-Z0-9]+)" , self .pyfile .url ).group (2 )
5858 self .pyfile .url = "http://www.share-online.biz/dl/" + self .file_id
5959
60- self .resumeDownload = self .multiDL = self .premium
60+ self .resumeDownload = self .premium
61+ self .multiDL = False
6162 #self.chunkLimit = 1
6263
6364 self .check_data = None
@@ -84,7 +85,7 @@ def process(self, pyfile):
8485 def downloadAPIData (self ):
8586 api_url_base = "http://api.share-online.biz/linkcheck.php?md5=1"
8687 api_param_file = {"links" : self .pyfile .url .replace ("http://www.share-online.biz/dl/" ,"" )} #api only supports old style links
87- src = self .load (api_url_base , cookies = False , post = api_param_file )
88+ src = self .load (api_url_base , cookies = False , post = api_param_file , decode = True )
8889
8990 fields = src .split (";" )
9091 self .api_data = {"fileid" : fields [0 ],
@@ -139,7 +140,6 @@ def handleFree(self):
139140 self .retry (5 , 60 , "Cookie failure" )
140141 elif check == "fail" :
141142 self .retry (5 , 300 , "Download failed" )
142-
143143
144144 def checkErrors (self ):
145145 found = re .search (r"/failure/(.*?)/1" , self .req .lastEffectiveURL )
@@ -182,6 +182,7 @@ def handleAPIPremium(self): #should be working better
182182 if dlLink == "server_under_maintenance" :
183183 self .tempoffline ()
184184 else :
185+ self .multiDL = True
185186 self .download (dlLink )
186187
187188 def checksum (self , local_file ):
0 commit comments