Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix " ' bug in xunlei

  • Loading branch information...
commit d33064a6d3e61e892528e1ebfc4de9e522929503 1 parent 3937bd9
Binux authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  libs/lixian_api.py
2  libs/lixian_api.py
View
@@ -128,9 +128,11 @@ def _get_task_list(self, pagenum, st):
input_value = each.get("value", "")
tmp[input_attr] = input_value
assert tmp["input"]
+ assert tmp["taskname"]
process = task.find("em", **{"class": "loadnum"})
assert process.string
tmp["process"] = float(process.string.rstrip("%"))
+ tmp["taskname"] = tmp["taskname"].replace('\\"', '"').replace("\\'", "'")
result.append(tmp)
DEBUG(pformat(result))
return result
Please sign in to comment.
Something went wrong with that request. Please try again.