Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Binux committed Dec 30, 2011
1 parent 531886f commit efe8640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/lixian_api.py
Expand Up @@ -335,7 +335,7 @@ def _torrent_upload(self, filename, fp):
m = re.search("""btResult =(.*?);</script>""",
r.content)
if not m:
m = re.search(r"""(parent\.edit_bt_list.*?);\s*</script>""")
m = re.search(r"""(parent\.edit_bt_list.*?);\s*</script>""", r.content)
if not m:
return {}
function, args = parser_js_function_call(m.group(1))
Expand All @@ -350,7 +350,7 @@ def torrent_upload(self, filename, fp):
flag = info['ret_value'],
cid = info['infoid'],
is_full = info['is_full'],
random = info['random'],
random = info.get('random', 0),
title = info['ftitle'],
size = info['btsize'],
)
Expand Down

0 comments on commit efe8640

Please sign in to comment.