Skip to content

Commit

Permalink
[#60] xiami cut the "http:" off from dl-link
Browse files Browse the repository at this point in the history
  • Loading branch information
sk1418 committed Jun 29, 2018
1 parent e4cdd9f commit c6eeb21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion zhuaxia/xiami.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down
2 changes: 1 addition & 1 deletion zhuaxia/zxver.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version='3.2.5'
version='3.2.6'

0 comments on commit c6eeb21

Please sign in to comment.