Video = require '../video'

class DetailsVideo extends Video
	className: 'control control-url control-video-details'
	template:  'core/views/video-details'

	elements: '.video-title': 'title'

	update: ->
		super
		(title = @item.path.split('/').pop().split '.').pop()
		@title.text (unescape title.join '.').trim() or 'No Title'

module.exports = DetailsVideo
