{% extends "base.html" %} {% set section = "downloads" %} {% block body %} {% if client.is_running() %} {% endif %}
Description {{ download.description }}
Source URL {{ download.url|default('Uploaded by user', true) }}
Progress {{ download.progress|progressbar(200) }}
Size {% if download.size %} {{ download.size|filesizeformat|replace('Bytes','b') }} {% else %} Unknown {% endif %}
State {{ statusdesc[download.status] }} {% if download.status_message %} ({{ download.status_message }}) {% endif %}
Speed {{ download.downloadrate|d(0,true)|filesizeformat|replace('Bytes','b') }}/s down
{{ download.uploadrate|d(0,true)|filesizeformat|replace('Bytes','b') }}/s up
Elapsed Time {{ download.elapsed|intervalformat }}
Time Left {{ download.timeleft|intervalformat }}
Owner {{ download.user.username }}
{% if client.is_startable() %} {% if client.is_finished() %} Seed {% else %} Start {% endif %} {% else %} {% endif %} {% if client.is_stoppable() %} Restart Stop {% endif %} Delete

{% if download.feed_id %} {% endif %}
Destination {% if download.files.count() %} Files have been imported to {% set dldir = (download.files|first).directory %} {{ dldir|default('your user directory', true) }}.
{% for file in download.files %} {{ file|librarylink }} ({{ file.size|d(0,true)|filesizeformat|replace('Bytes','b') }})
{% endfor %} {% elif download.media_type %}
Media type is {{ mediatypes[download.media_type] }}. Files will be imported to {{ libraries[download.media_type].directory|default('your user directory', true) }} when the download is complete.
{% else %}
Media type is unknown. Files will be imported to your user directory when the download is complete.
{% endif %}
Source Feed {{ download.feed.name }}
Downloaded Files {% block files %} {% for file in client.get_files() %} {% if download.status != statuscode.COMPLETED %} {% endif %} {% endfor %}
{% if file.progress < 100 %} {{ file.progress|progressbar(75,style='yellow') }} {% else %} {{ file.progress|progressbar(75) }} {% endif %} {{ file.path|workinglink(download) }} ({{ file.size|d(0,true)|filesizeformat|replace('Bytes','b') }})
{% endblock %}
{% block additional %} {% endblock %} {% endblock %}