add option to have direct download instead of torrent

This commit is contained in:
j 2013-09-14 14:09:37 +00:00
commit f3c9d7b7af
9 changed files with 42 additions and 3 deletions

View file

@ -19,6 +19,9 @@ urlpatterns = patterns("item.views",
(r'^(?P<id>[A-Z0-9].*)/torrent$', 'torrent'),
(r'^(?P<id>[A-Z0-9].*)/torrent/(?P<filename>.*?)$', 'torrent'),
#download
(r'^(?P<id>[A-Z0-9].*)/download/$', 'download'),
#export
(r'^(?P<id>[A-Z0-9].*)/json$', 'item_json'),
(r'^(?P<id>[A-Z0-9].*)/xml$', 'item_xml'),