2010-02-03 11:59:11 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vi:si:et:sw=4:sts=4:ts=4
|
|
|
|
|
|
|
|
from django.conf.urls.defaults import *
|
|
|
|
|
|
|
|
|
2010-11-08 16:34:25 +00:00
|
|
|
urlpatterns = patterns("item.views",
|
2011-08-06 18:00:15 +00:00
|
|
|
#frames
|
2011-08-16 10:11:07 +00:00
|
|
|
(r'^(?P<id>[A-Z0-9].+)/(?P<size>\d+)p(?P<position>[\d\.]*)\.jpg$', 'frame'),
|
2011-08-06 18:00:15 +00:00
|
|
|
|
|
|
|
#timelines
|
|
|
|
(r'^(?P<id>[A-Z0-9].+)/timeline(?P<size>\d+)p(?P<position>\d+)\.png$', 'timeline'),
|
|
|
|
(r'^(?P<id>[A-Z0-9].+)/timeline(?P<size>\d+)p\.png$', 'timeline_overview'),
|
|
|
|
|
|
|
|
#video
|
2011-08-18 12:01:37 +00:00
|
|
|
(r'^(?P<id>[A-Z0-9].+)/(?P<resolution>\d+)p(?P<index>\d*)\.(?P<format>webm|ogv|mp4)$', 'video'),
|
2011-08-06 18:00:15 +00:00
|
|
|
|
|
|
|
#torrent
|
2011-08-11 20:10:06 +00:00
|
|
|
(r'^(?P<id>[A-Z0-9][A-Za-z0-9]+)/torrent/(?P<filename>.*?)$', 'torrent'),
|
2011-08-06 18:00:15 +00:00
|
|
|
|
|
|
|
#icon
|
|
|
|
(r'^(?P<id>[A-Z0-9].+)/icon(?P<size>\d*)\.jpg$', 'icon'),
|
|
|
|
|
|
|
|
#poster
|
|
|
|
(r'^(?P<id>[A-Z0-9].+)/poster(?P<size>\d+)\.jpg$', 'poster'),
|
2011-08-23 20:51:57 +00:00
|
|
|
(r'^(?P<id>[A-Z0-9].+)/siteposter(?P<size>\d*)\.jpg$', 'siteposter'),
|
2011-08-23 17:39:34 +00:00
|
|
|
(r'^(?P<id>[A-Z0-9].+)/poster\.jpg$', 'siteposter'),
|
2011-08-06 18:00:15 +00:00
|
|
|
(r'^(?P<id>[A-Z0-9].+)/frameposter(?P<position>\d+).jpg$', 'poster_frame'),
|
|
|
|
|
|
|
|
|
2010-02-03 11:59:11 +00:00
|
|
|
)
|