Browse Source

make search non-greedy

fixes some problems when return json isn't in regular pomf order
master
lc-guy 3 years ago
parent
commit
e0398089dc
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      limf/uploader.py

+ 1
- 1
limf/uploader.py View File

@@ -16,7 +16,7 @@ def upload_files(selected_file, selected_host, only_link, file_name):
answer = requests.post(
url=selected_host[0]+"upload.php",
files={'files[]':selected_file})
file_name_1 = re.findall(r'"url": *"((h.+\/){0,1}(.+))"[,\}]', \
file_name_1 = re.findall(r'"url": *"((h.+\/){0,1}(.+?))"[,\}]', \
answer.text.replace("\\", ""))[0][2]
if only_link:
return [selected_host[1]+file_name_1, "{}: {}{}".format(file_name, selected_host[1], file_name_1)]

Loading…
Cancel
Save