minimal embed player

This commit is contained in:
j 2011-10-22 13:24:26 +02:00
commit e6b3bd3e55
6 changed files with 79 additions and 144 deletions

View file

@ -25,7 +25,7 @@ def index(request):
return render_to_response('index.html', context)
def embed(request):
def embed(request, id):
context = RequestContext(request, {'settings': settings})
return render_to_response('embed.html', context)

View file

@ -27,5 +27,4 @@ urlpatterns = patterns("item.views",
(r'^(?P<id>[A-Z0-9].+)/poster\.jpg$', 'siteposter'),
(r'^(?P<id>[A-Z0-9].+)/frameposter(?P<position>\d+).jpg$', 'poster_frame'),
)

View file

@ -3,15 +3,9 @@
<head>
<title>{{settings.SITENAME}}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="shortcut icon" type="image/png" href="/static/png/icon16.png"/>
<script type='text/javascript'>
if(typeof(console)=='undefined') {
console = {};
console.log = function() {};
}
</script>
<script type="text/javascript" src="/static/oxjs/build/Ox.js"></script>
<script type="text/javascript" src="/static/js/pandora.embed.js"></script>
<script type="text/javascript" src="/static/js/pandoraEmbed.js"></script>
</head>
<body></body>
<body>
</body>
</html>

View file

@ -48,7 +48,7 @@ urlpatterns += patterns('',
(r'^(V[a-z0-9]*/.*)$', 'urlalias.views.padma_video'),
)
urlpatterns += patterns('',
(r'^.*?embed$', 'app.views.embed'),
(r'^(?P<id>[A-Z0-9].+)/embed', 'app.views.embed'),
(r'^[A-Z0-9].*$', 'app.views.index'),
(r'^[a-z0-9].+$', 'app.views.index'),
(r'^$', 'app.views.index'),