~hristoast/mousikofidi

f685c968b513e90d852a82ef21a0e1f44b05965e — Hristos N. Triantafillou 8 months ago 2fd83da
More queue naming
2 files changed, 6 insertions(+), 6 deletions(-)

M mousikofidi/templates/playlist.html
M test_mousikofidi.py
M mousikofidi/templates/playlist.html => mousikofidi/templates/playlist.html +2 -2
@@ 29,7 29,7 @@
    {% if page_name == "Queue" %}
      {% if playlistctl %}
        <form action="{{ url_for('.playlistctl', cmd='clear', path='all') }}" class="center" id="playlistctl" method="post">
          <input class="center" id="clear" name="clear" title="Remove all tracks from your playlist." value="Clear Queue" type="submit" />
          <input class="center" id="clear" name="clear" title="Remove all tracks from your queue." value="Clear Queue" type="submit" />
        </form>
        {% if playlist_save %}
          <form action="{{ url_for('.playlistctl', cmd='save', path='save') }}" class="center" id="playlistctl" method="post">


@@ 45,7 45,7 @@
      <h2 class="center"><a href="{{ url_for('.playlists') }}">{% if icons %}<i class="fas fa-list"></i> {% endif %}View All Playlists</a></h2>
      <h2 class="bold center">Playlist Name: {{ playlist_name }}</h2>
      <form action="{{ url_for('.playlistctl', cmd='load', path='load-with-redirect') }}" class="center" id="playlistctl" method="post">
        <input class="center" id="load" name="load" title="Load tracks from this playlist into your user session playlist.  This will redirect you to the playlist page." value="Load This Playlist" type="submit" />
        <input class="center" id="load" name="load" title="Load tracks from this playlist into your queue.  This will redirect you to the queue page." value="Load This Playlist" type="submit" />
        <input id="to-load" name="to-load" type="hidden" value="{{ playlist_name }}">
      </form>
    {% endif %}

M test_mousikofidi.py => test_mousikofidi.py +4 -4
@@ 2465,7 2465,7 @@ def test_playlist_empty(client):
    )
    assert (
        bytes(
            '<input class="center" id="clear" name="clear" title="Remove all tracks from your playlist." value="Clear Queue" type="submit" />',
            '<input class="center" id="clear" name="clear" title="Remove all tracks from your queue." value="Clear Queue" type="submit" />',
            "utf8",
        )
        not in rv.data


@@ 2500,7 2500,7 @@ def test_playlist_with_audio_and_video(client):
    )
    assert (
        bytes(
            '<input class="center" id="clear" name="clear" title="Remove all tracks from your playlist." value="Clear Queue" type="submit" />',
            '<input class="center" id="clear" name="clear" title="Remove all tracks from your queue." value="Clear Queue" type="submit" />',
            "utf8",
        )
        in rv.data


@@ 2822,7 2822,7 @@ def test_playlist_with_audio_no_video(client):
    )
    assert (
        bytes(
            '<input class="center" id="clear" name="clear" title="Remove all tracks from your playlist." value="Clear Queue" type="submit" />',
            '<input class="center" id="clear" name="clear" title="Remove all tracks from your queue." value="Clear Queue" type="submit" />',
            "utf8",
        )
        in rv.data


@@ 3144,7 3144,7 @@ def test_playlist_no_audio_with_video(client):
    )
    assert (
        bytes(
            '<input class="center" id="clear" name="clear" title="Remove all tracks from your playlist." value="Clear Queue" type="submit" />',
            '<input class="center" id="clear" name="clear" title="Remove all tracks from your queue." value="Clear Queue" type="submit" />',
            "utf8",
        )
        in rv.data