initial json/xml export

This commit is contained in:
j 2012-02-15 13:15:00 +05:30
commit 3ec896aa49
2 changed files with 51 additions and 0 deletions

View file

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