fb fixes
This commit is contained in:
@@ -15,7 +15,8 @@ def announce_articleid(id):
|
||||
s.get( u % id)
|
||||
|
||||
def downloadfile(url):
|
||||
relative_name=path.join("downloads",str(md5(url).hexdigest()),url.split('/')[-1])
|
||||
u=urlparse.urlparse(url)
|
||||
relative_name=path.join("downloads",str(md5(url).hexdigest()),u[2].split('/')[-1])
|
||||
local_filename = path.join(download_path,relative_name)
|
||||
if not os.path.exists(os.path.dirname(local_filename)):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user