# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 from django.conf.urls import url from . import views urlpatterns = [ #frames url(r'^(?P[A-Z0-9].*)/(?P\d+)p(?P[\d\.]*)\.jpg$', views.frame), #timelines url(r'^(?P[A-Z0-9].*)/timeline(?P[a-z]*)(?P\d+)p(?P\d+)\.(?Ppng|jpg)$', views.timeline), url(r'^(?P[A-Z0-9].*)/timeline(?P[a-z]*)(?P\d+)p\.(?Ppng|jpg)$', views.timeline), #download url(r'^(?P[A-Z0-9].*)/download$', views.download), url(r'^(?P[A-Z0-9].*)/download/$', views.download), url(r'^(?P[A-Z0-9].*)/download/source/(?P\d+)?$', views.download_source), url(r'^(?P[A-Z0-9].*)/download/(?P\d+)p\.(?Pwebm|ogv|mp4)$', views.download), #video url(r'^(?P[A-Z0-9].*)/(?P\d+)p(?P\d*)\.(?Pwebm|ogv|mp4)$', views.video), url(r'^(?P[A-Z0-9].*)/(?P\d+)p(?P\d*)\.(?P.+)\.(?Pwebm|ogv|mp4)$', views.video), #torrent url(r'^(?P[A-Z0-9].*)/torrent$', views.torrent), url(r'^(?P[A-Z0-9].*)/torrent/(?P.*?)$', views.torrent), #export url(r'^(?P[A-Z0-9].*)/json$', views.item_json), url(r'^(?P[A-Z0-9].*)/xml$', views.item_xml), #srt export url(r'^(?P[A-Z0-9].*)/(?P.+)\.(?:(?P.{2})\.)?(?Psrt|vtt)$', views.srt), #icon url(r'^(?P[A-Z0-9].*)/icon(?P\d*)\.jpg$', views.icon), #poster url(r'^(?P[A-Z0-9].*)/posterframe(?P\d+).jpg$', views.poster_frame), url(r'^(?P[A-Z0-9].*)/poster(?P\d+)\.jpg$', views.poster), url(r'^(?P[A-Z0-9].*)/siteposter(?P\d*)\.jpg$', views.siteposter), url(r'^(?P[A-Z0-9].*)/poster\.jpg$', views.siteposter), url(r'^random$', views.random_annotation), ]