# telemeta setup
python $manage telemeta-create-admin-user
python $manage telemeta-create-boilerplate
+python $manage telemeta-setup-enumerations
# Delete Timeside database if it exists
cat /srv/src/telemeta/scripts/sql/drop_timeside.sql | python $manage dbshell
fi
# fix media access rights
-find $media -path ${media}import -prune -o -type d -not -user www-data -exec chown www-data:www-data {} \;
+# find $media -path ${media}import -prune -o -type d -not -user www-data -exec chown www-data:www-data {} \;
# choose dev or prod mode
if [ "$1" = "--runserver" ]; then
<source src="{{ MEDIA_URL }}{{ transcoded.file }}#t=0" type="{{ transcoded.mime_type }}" />
{% endif %}
{% endfor %}
- <source src="{{ MEDIA_URL }}{{ item.file }}#t=0" type="{{ mime_type }}" />
+ <source src="{% url "telemeta-item-export" item.public_id '' %}" type="{{ mime_type }}" />
</video>
</div>
item = MediaItem.objects.get(public_id=public_id)
public_access = get_item_access(item, request.user)
+ if not extension:
+ extension = item.file.path.split('.')[-1]
+
if (not public_access == 'full' or not extension in settings.TELEMETA_STREAMING_FORMATS) and \
not (request.user.has_perm('telemeta.can_play_all_items') or request.user.is_superuser):
mess = ugettext('Access not allowed')