Skip to content
Snippets Groups Projects
Select Git revision
  • 1fe7d8ac73b63a785e7e755b064fd29cb848efea
  • master default protected
  • forbid-save-as
  • upload-via-token
  • moodle-integration
  • patch-double-tap-seek
  • patch_datum_anzeigen
  • patch_raum_anzeigen
  • intros
  • live_sources
  • bootstrap4
  • modules
12 results

feed.rss

Blame
  • Forked from Video AG Infrastruktur / website
    257 commits behind the upstream repository.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    feed.rss 1.88 KiB
    {% macro title(fmt) %}
    {{ course.title }} ({{ fmt.description }}) — Video AG, FSMPI
    {%- endmacro %}
    <?xml version="1.0" encoding="UTF-8"?>
    <rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:psc="http://podlove.org/simple-chapters" version="2.0">
    <channel>
    <title>{{ title(format) }}</title>
    <link>{{ url_for('course', handle=course.handle, _external=True) }}</link>
    <description><![CDATA[{{ course.description }}]]></description>
    <generator>Website der Video AG (+https://git.fsmpi.rwth-aachen.de/videoaginfra/website)</generator>
    <image>
    	<url>{{ url_for('static', filename='logo.png', _external=True) }}</url>
    	<title>{{ title(format) }}</title>
    	<link>{{ url_for('course', handle=course.handle, _external=True) }}</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" title="{{ title(format) }}" href="{{ url_for('rss_feed', handle=course.handle, format_id=format.id, _external=True) }}"/>
    {% for fmt in formats %}
    {% if fmt.id != format.id %}
    <atom:link rel="alternate" type="application/rss+xml" title="{{ title(fmt) }}" href="{{ url_for('rss_feed', handle=course.handle, format_id=fmt.id, _external=True) }}"/>
    {% endif %}
    {% endfor %}
    {% for item in items %}
    <item>
    	<title>{{ item.title }}</title>
    	<link>{{ url_for('lecture', id=item.id, course=course.handle, _external=True) }}</link>
    	<pubDate>{{ item.updated|rfc822 }}</pubDate>
    	<guid>video.fsmpi.rwth-aachen.de:{{ item.video.id }}</guid>
    	<description><![CDATA[{{ item.comment|e }}]]></description>
    	<psc:chapters xmlns:psc="http://podlove.org/simple-chapters" version="1.2">
    		{% for chapter in chapters|selectattr('lecture_id','equalto',item.id) %}
    		<psc:chapter start="{{ chapter.time }}" title="{{ chapter.text }}"/>
    		{% endfor %}
    	</psc:chapters>
    	<enclosure url="{{ url_for('files', filename=item.video.path, _external=True) }}" length="{{ item.video.file_size }}" type="{{ format.mimetype }}"/>
    </item>
    {% endfor %}
    </channel>
    </rss>