fix reg_torrents_POST
This commit is contained in:
parent
8fb22554f2
commit
b446bc0c15
|
@ -131,6 +131,9 @@ def reg_torrents_POST(url_name, proxy_command):
|
||||||
def POST(self, torrent_ids):
|
def POST(self, torrent_ids):
|
||||||
getattr(proxy, proxy_command)(torrent_ids)
|
getattr(proxy, proxy_command)(torrent_ids)
|
||||||
do_redirect()
|
do_redirect()
|
||||||
|
|
||||||
|
_page_class.__name__ = "TORRENTS_POST:" + proxy_command
|
||||||
|
|
||||||
route("/torrent/%s/(.*)" % url_name, _page_class)
|
route("/torrent/%s/(.*)" % url_name, _page_class)
|
||||||
|
|
||||||
reg_torrents_POST("start", "resume_torrent")
|
reg_torrents_POST("start", "resume_torrent")
|
||||||
|
|
Loading…
Reference in New Issue