{% extends 'base.html' %} {% block title %}Official Spotify Playlists{% endblock %} {% block content %}

Official Spotify Playlists

Browse and import playlists from official Spotify accounts worldwide.

Spotify Authentication

Enter a bearer token to access the Spotify API directly, bypassing OAuth limitations.

{% if spotify_username %}

✓ Authenticated as: {{ spotify_username }}

{% endif %}

Get a token from Spotify Developer Console

{% if session_bearer_token %} {% endif %}

Authentication Mode

{% if direct_mode %}

Currently using: Direct Bearer Token

Switch to OAuth Authentication {% else %}

Currently using: OAuth Authentication

Switch to Direct Bearer Token {% endif %}

Comma-separated keywords to search in playlist names

{% if session_bearer_token %} {% endif %}
{% if debug_mode %}

Debug Information

Metric Value
Total Playlists Fetched {{ debug_info.total_fetched }}
Keyword Filtered Out {{ debug_info.filtered_out }}
Duplicates Removed {{ debug_info.duplicates_removed }}
Final Count Displayed {{ debug_info.total_filtered }}
Total Processing Time {{ debug_info.query_time_ms }}ms

Account Statistics

{% for account, stats in debug_info.accounts.items() %}

{{ account }}

  • Total playlists: {{ stats.total }}
  • Filtered: {{ stats.filtered }}/{{ stats.fetched }}
  • Processing time: {{ stats.time_ms }}ms
{% endfor %}
{% if debug_info.matched_keywords %}

Keyword Matches

    {% for keyword, count in debug_info.matched_keywords.items() %}
  • "{{ keyword }}": {{ count }} matches
  • {% endfor %}
{% endif %}
{% endif %}
{% for playlist in playlists %}
{% if playlist.images and playlist.images|length > 0 %} {{ playlist.name }} {% else %}
No image
{% endif %}
{{ playlist.name }}
{{ playlist.owner.id }}
{% if playlist.description %}

{{ playlist.description | replace('', ' - ') | replace('', '') }}

{% endif %}

Tracks: {{ playlist.tracks.total }}

View
{% else %}

No playlists found matching your criteria. Try changing your filters.

{% endfor %}
{% endblock %} {% block scripts %} {% endblock %}