{% extends "base.html" %} {% block head %}{% endblock %} {% block content %}

Jukebox

{{ 'Play the shared queue on this device.' if g.user.is_admin else 'Request tracks for the host’s player and see what’s playing.' }}

Now playing

{{ playing.get('title', 'Nothing playing') }}

{{ playing.get('artist') or ('Queue a track to get started.' if not playing.id else '') }}

{% if g.user.is_admin %}
{{ csrf_field() }}
{% endif %}

Library {{ count }}

{% if tracks %}
    {% for track in tracks %}
  • {{ track.title }}

    {% if track.artist %}

    {{ track.artist }}

    {% endif %}
    {{ csrf_field() }}
    {% if g.user.is_admin %}Remove{% endif %}
  • {% endfor %}
{% else %}

{{ 'No tracks match that search.' if q else 'Add music to start your library.' if g.user.is_admin else 'Ask the host to add the first track.' }}

{% endif %} {% if page > 1 or has_next %} {% endif %}
{% if g.user.is_admin %}

Add music

{{ csrf_field() }}

Upload a local file

{{ csrf_field() }}

Import by video link

Use a public video you have permission to save. Imports can take a minute.

{% endif %}
{% endblock %} {% block scripts %}{% endblock %}