From: Christian Heller Date: Tue, 12 Nov 2024 16:33:00 +0000 (+0100) Subject: Add MPV playlisting. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7Bprefix%7D%7D/processes?a=commitdiff_plain;h=7d8e318f64c6d4e55cd56add8feeae02c51b99ca;p=ytplom Add MPV playlisting. --- diff --git a/templates/index.tmpl b/templates/index.tmpl deleted file mode 100644 index b34319d..0000000 --- a/templates/index.tmpl +++ /dev/null @@ -1,24 +0,0 @@ - - - -

queries · videos

-

quota: {{quota_count}}/100000

-
- -
- - - - - - -{% for query in queries %} - - - - - -{% endfor %} -
retrieved atDLsquery
{{query.retrieved_at[:19]}}{{query.downloads}}{{query.text}}
- - diff --git a/templates/playlist.tmpl b/templates/playlist.tmpl new file mode 100644 index 0000000..b533d3c --- /dev/null +++ b/templates/playlist.tmpl @@ -0,0 +1,59 @@ + + + + + + + +

playlist · videos · queries

+ + +{% for prev_title, next_title in tuples %} + +{% endfor %} +
+{% if running %}{% if pause %}PAUSED{% else %}PLAYING{% endif %}{% else %}STOPPED{% endif %}:
+{{ current_title }}
+
+ + + + +
+
+{{ prev_title }} + +{{ next_title }} +
+ + + diff --git a/templates/queries.tmpl b/templates/queries.tmpl new file mode 100644 index 0000000..0d888b0 --- /dev/null +++ b/templates/queries.tmpl @@ -0,0 +1,24 @@ + + + +

playlist · videos · queries

+

quota: {{quota_count}}/100000

+
+ +
+ + + + + + +{% for query in queries %} + + + + + +{% endfor %} +
retrieved atDLsquery
{{query.retrieved_at[:19]}}{{query.downloads}}{{query.text}}
+ + diff --git a/templates/results.tmpl b/templates/results.tmpl index 6b7ac2b..8b88362 100644 --- a/templates/results.tmpl +++ b/templates/results.tmpl @@ -1,7 +1,7 @@ -

queries · videos

+

playlist · videos · queries

query: {{query_text}}

{% for video in videos %} diff --git a/templates/videos.tmpl b/templates/videos.tmpl index 757e566..daba8ed 100644 --- a/templates/videos.tmpl +++ b/templates/videos.tmpl @@ -1,7 +1,7 @@ -

queries · videos

+

playlist · videos · queries

downloaded videos: