Commit 525e1618 authored by hujun's avatar hujun

1

parent 024e5f1b
...@@ -110,9 +110,9 @@ class DownFile: ...@@ -110,9 +110,9 @@ class DownFile:
string_end = url.find("?") string_end = url.find("?")
file_url = url[0:string_end] file_url = url[0:string_end]
time_array = time.strptime(item['call_time'], '%Y-%m-%d') time_array = time.strptime(item['call_time'], '%Y-%m-%d %H:%M:%S')
local_dir = time.strftime('%Y-%m-%d', time_array) local_dir = time.strftime('%Y%m%d', time_array)
local_file = self.save_path + local_dir + re.findall(r".com\D.*", file_url)[0][5:] local_file = self.save_path + local_dir + '/' + re.findall(r".com\D.*", file_url)[0][5:]
if self.check_file(local_file): if self.check_file(local_file):
old_num = old_num + 1 old_num = old_num + 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment