From 5a76eb0559c9d12cc8f37dcc62cb35aa2739d07e Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Mon, 27 Jun 2022 23:40:48 +0200 Subject: [PATCH 1/2] show number of running tasks show channel name in search items --- ucast/templates/ucast/downloads_items.html | 2 +- ucast/templates/ucast/search.html | 8 +++++++- ucast/views.py | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ucast/templates/ucast/downloads_items.html b/ucast/templates/ucast/downloads_items.html index 860ab82..86f5b28 100644 --- a/ucast/templates/ucast/downloads_items.html +++ b/ucast/templates/ucast/downloads_items.html @@ -1,5 +1,5 @@
- {{ n_downloading_videos }} Videos + {{ n_tasks }} Tasks
diff --git a/ucast/templates/ucast/search.html b/ucast/templates/ucast/search.html index c8d5228..a6c6b07 100644 --- a/ucast/templates/ucast/search.html +++ b/ucast/templates/ucast/search.html @@ -35,10 +35,16 @@
- +
+ +   {{ video.channel.name }} + +   {{ video.published|date:"SHORT_DATE_FORMAT" }} +
diff --git a/ucast/views.py b/ucast/views.py index ec7dcfd..415dd9f 100644 --- a/ucast/views.py +++ b/ucast/views.py @@ -171,7 +171,7 @@ def downloads(request: http.HttpRequest): { "failed_jobs": failed_jobs, "downloading_videos": downloading_videos, - "n_downloading_videos": 1, + "n_tasks": queue.get_queue().count, }, ) From 297daaa51bc4c43bbca96bb254a99b5d4e66a5b3 Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Mon, 27 Jun 2022 23:41:06 +0200 Subject: [PATCH 2/2] =?UTF-8?q?Bump=20version:=200.3.0=20=E2=86=92=200.3.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bumpversion.cfg | 2 +- pyproject.toml | 2 +- ucast/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index a19dade..02482c5 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.3.0 +current_version = 0.3.1 commit = True tag = True diff --git a/pyproject.toml b/pyproject.toml index c743a17..96ab12a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ucast" -version = "0.3.0" +version = "0.3.1" description = "YouTube to Podcast converter" authors = ["Theta-Dev "] packages = [ diff --git a/ucast/__init__.py b/ucast/__init__.py index c975108..521568f 100644 --- a/ucast/__init__.py +++ b/ucast/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.3.0" +__version__ = "0.3.1" def template_context(request):