dict(template='telemeta/mediaitem_copy.html'), name="telemeta-item-copy"),
url(r'^item/add/$', web_view.item_add,
dict(template='telemeta/mediaitem_add.html'), name="telemeta-item-add"),
- url(r'^items/(?P<public_id>[A-Za-z0-9._-]+)/player/$', web_view.item_detail,
+ url(r'^items/(?P<public_id>[A-Za-z0-9._-]+)/player/(?P<width>[0-9]+)x(?P<height>[0-9]+)/$', web_view.item_detail,
dict(template='telemeta/mediaitem_player.html'), name="telemeta-item-player"),
url(r'^items/(?P<public_id>[A-Za-z0-9._-]+)/performances/$', web_view.item_performances_edit,
dict(template='telemeta/mediaitem_performances_edit.html'), name="telemeta-item-performances_edit"),
return previous, next
- def item_detail(self, request, public_id=None, marker_id=None, template='telemeta/mediaitem_detail.html'):
+ def item_detail(self, request, public_id=None, marker_id=None, width=None, height=None,
+ template='telemeta/mediaitem_detail.html'):
"""Show the details of a given item"""
if not public_id and marker_id:
'visualizers': graphers, 'visualizer_id': grapher_id,
'audio_export_enabled': getattr(settings, 'TELEMETA_DOWNLOAD_ENABLED', True),
'previous' : previous, 'next' : next, 'marker': marker_id, 'playlists' : playlists,
- 'public_access': public_access,
+ 'public_access': public_access, 'width': width, 'height': height,
})
def get_public_access(self, access, year_from, year_to):