~hristoast/mousikofidi

8f8aba60b5b908e0d001334b02a1a0de9d153af1 — Hristos N. Triantafillou 9 months ago 923adf9
More naming
1 files changed, 3 insertions(+), 3 deletions(-)

M mousikofidi/mousikofidi.py
M mousikofidi/mousikofidi.py => mousikofidi/mousikofidi.py +3 -3
@@ 746,7 746,7 @@ this User's Guide entry</a> for more information.</p>"""
                dbg("Adding: " + path)
                context["queue"].append(path)
            flash(
                """<p class="bold center green">All files in this dir added to your playlist!</p>"""
                """<p class="bold center green">All files in this dir added to your queue!</p>"""
            )

        else:


@@ 757,7 757,7 @@ this User's Guide entry</a> for more information.</p>"""
        if path == "/all":
            if len(bytes(str(context["queue"]), "utf8")) < MAX_COOKIE_SIZE:
                flash(  # TODO: Use url_for here
                    """<p class="bold center green">Your playlist was cleared!</p>
                    """<p class="bold center green">Your queue was cleared!</p>
<form id="playlistctl" action="/playlist/clear/undo" class="center" method="post">
  <input class="center" id="undo-clear" name="undo-clear" title="Undo clearing the playlist." value="Undo?" type="submit" />
  <input id="to-load" name="to-load" type="hidden" value="{}">


@@ 767,7 767,7 @@ this User's Guide entry</a> for more information.</p>"""
                )
            else:
                flash(
                    """<p class="bold center green">Your playlist was cleared but it was too big for an undo!</p>"""
                    """<p class="bold center green">Your queue was cleared but it was too big for an undo!</p>"""
                )
            context["queue"] = []