diff --git a/zhuaxia/xiami.py b/zhuaxia/xiami.py index eabb9b2..4bcc723 100644 --- a/zhuaxia/xiami.py +++ b/zhuaxia/xiami.py @@ -455,7 +455,11 @@ def decode_xiami_link(self,mess): for i in xrange(len_url): durl += l[i%rows][i/rows] - return urllib.unquote(durl).replace('^', '0') + durl = urllib.unquote(durl).replace('^', '0') + + #if it is not started by 'http:', add the protocol + durl = ("" if durl.startswith('http:') else 'http:') + durl + return durl def get_real_id(self,url, regex): """ diff --git a/zhuaxia/zxver.py b/zhuaxia/zxver.py index 9384aaf..a441c45 100644 --- a/zhuaxia/zxver.py +++ b/zhuaxia/zxver.py @@ -1 +1 @@ -version='3.2.5' +version='3.2.6'