diff --git a/tubearchivist/home/src/index.py b/tubearchivist/home/src/index.py index 205ad50..49a7d23 100644 --- a/tubearchivist/home/src/index.py +++ b/tubearchivist/home/src/index.py @@ -602,6 +602,7 @@ class YoutubePlaylist: nav = { "playlist_meta": { + "current_idx": current_idx, "playlist_id": self.playlist_id, "playlist_name": self.playlist_dict["playlist_name"], "playlist_channel": self.playlist_dict["playlist_channel"], diff --git a/tubearchivist/home/templates/home/video.html b/tubearchivist/home/templates/home/video.html index c8aa419..884c1b6 100644 --- a/tubearchivist/home/templates/home/video.html +++ b/tubearchivist/home/templates/home/video.html @@ -76,7 +76,7 @@ {% for playlist_item in playlist_nav %}
-

Playlist: {{ playlist_item.playlist_meta.playlist_name }}

+

Playlist [{{ playlist_item.playlist_meta.current_idx|add:"1" }}]: {{ playlist_item.playlist_meta.playlist_name }}