Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Commit

Permalink
Fixes #5 :wap support
Browse files Browse the repository at this point in the history
  • Loading branch information
sdvcrx committed Mar 22, 2014
1 parent e115387 commit 8e22c15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bddown_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,10 @@ def download(args):
if namespace.output_dir:
output_dir = namespace.output_dir

links = filter(check_url, links) # filter the wrong url
links = map(add_http, links) # add 'http://'
# if is wap
links = [link.replace("wap/link", "share/link") for link in links]
links = filter(check_url, links) # filter the wrong url
links = map(add_http, links) # add 'http://'
for url in links:
pan = BaiduDown(url, secret=secret)
filename = pan.filename
Expand Down

0 comments on commit 8e22c15

Please sign in to comment.