{% extends 'base.html' %} {% load humanize %} {% load static %} {% block content %}
{% if playlist.has_playlist_changed %}
Updating playlist '{{ playlist.name }}', please wait!
{% else %}
{% if playlist.marked_as == "watching" %}
{% include 'intercooler/playlist_watch_message.html' %}
{% endif %}

{{ playlist.name }} {% if playlist.user_label %}a.k.a {{ playlist.user_label }}{% endif %}

by {{ playlist.channel_name }}

{% if playlist.marked_as != "none" %} {% if playlist.marked_as == "watching" %} {% elif playlist.marked_as == "plan-to-watch"%} {% endif %} {{ playlist.marked_as }} {% endif %}

{% if playlist.description %}

{{ playlist.description|truncatewords:"50"|linebreaksbr }}
{% else %}
No description
{% endif %}

{% if playlist.is_user_owned %}OWNED{% else %}IMPORTED{% endif %} {{ playlist.video_count }} VIDEOS {{ playlist.playlist_duration }} {% if playlist.is_private_on_yt %}PRIVATE{% else %}PUBLIC{% endif %} {% if playlist.has_unavailable_videos %} SOME VIDEOS ARE UNAVAILABLE {% endif %} {% if playlist.has_duplicate_videos %} DUPLICATE VIDEOS {% endif %}
Tags: {% for tag in playlist_tags %} {{ tag.name }} {% endfor %}
Add a tag to this playlist
{% if unused_tags %}
- OR -
{% endif %}

{% if videos.count != 0 %}
{% endif %}
{% if videos.count != 0 %}
{% endif %}
{% if playlist.is_user_owned %}Move or {% endif %}Copy videos to another playlist!
{% if playlist.is_user_owned %}
{% endif %}
Are you sure you want to delete these 40 items from your YouTube playlist? This cannot be undone.

{% if videos %}
{% for video in videos|slice:"0:50" %}
  • 50 %}hx-get="{% url 'load_more_videos' playlist.playlist_id order_by|default:"all" page|default:"1" %}" hx-trigger="revealed" hx-swap="afterend" hx-indicator="#load-more-videos-spinner" {% endif %} class="list-group-item d-flex justify-content-between align-items-center bg-transparent" style="background-color: #40B3A2"> {% if video.is_unavailable_on_yt and not video.was_deleted_on_yt %} {% else %}
    {% if video.is_unavailable_on_yt and video.was_deleted_on_yt %} {{ video.video_position }}. {{ video.name|truncatewords:"16" }}
    VIDEO UNAVAILABLE {% if video.video_details_modified %}WENT PRIVATE/DELETED {{ video.updated_at|naturaltime|upper }}{% endif %}

    {% else %} {{ video.video_position }}. {{ video.name|truncatewords:"16" }} by {{ video.channel_name }}
    {{ video.duration }} {% if video.has_cc %}CC{% endif %} {% if video.published_at %}{{ video.published_at }}{% endif %} {% if video.view_count %}{{ video.view_count|intword|intcomma }} views{% endif %} {% if video.is_duplicate %}duplicate{% endif %} {% if video.video_details_modified %}{% if video.was_deleted_on_yt %}WENT PRIVATE/DELETED{% else %}ADDED{% endif %} {{ video.created_at|naturaltime|upper }}{% endif %}

    {% endif %}
    {% if video.is_unavailable_on_yt and video.was_deleted_on_yt %} {% else %} {% if playlist.marked_as == "watching" %} {% endif %} {% endif %}
    {% endif %}
  • {% endfor %}
    {% else %}
    Playlist is empty ;-;
    Consider moving/copying videos from other playlists into this playlist by copying and using this playlist's ID.
    {% endif %}
    {% endif %}
    {% endblock %}