Compare commits

...

3 commits

Author SHA1 Message Date
71725c7a29 Bump version: 0.0.1 → 0.1.0
All checks were successful
continuous-integration/drone/push Build is passing
2022-06-27 01:01:01 +02:00
6622fe87f2 add bump2version 2022-06-27 01:00:52 +02:00
c55b54124b fix feed showing not downloaded videos 2022-06-27 00:46:14 +02:00
7 changed files with 37 additions and 6 deletions

12
.bumpversion.cfg Normal file
View file

@ -0,0 +1,12 @@
[bumpversion]
current_version = 0.1.0
commit = True
tag = True
[bumpversion:file:pyproject.toml]
search = version = "{current_version}"
replace = version = "{new_version}"
[bumpversion:file:ucast/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"

14
poetry.lock generated
View file

@ -58,6 +58,14 @@ python-versions = "*"
[package.dependencies]
cffi = ">=1.0.0"
[[package]]
name = "bump2version"
version = "1.0.1"
description = "Version-bump your software with a single command!"
category = "dev"
optional = false
python-versions = ">=3.5"
[[package]]
name = "certifi"
version = "2022.5.18.1"
@ -768,7 +776,7 @@ websockets = "*"
[metadata]
lock-version = "1.1"
python-versions = "^3.10"
content-hash = "a3da05c0c8552c9149eb04dee6e52c7f3fffd2de297a82595422511e3674f861"
content-hash = "41be11c588a5d47c4ddc2e06b5699ee9db0c3888e3576c0134d55e065f53cc0d"
[metadata.files]
asgiref = [
@ -883,6 +891,10 @@ brotlicffi = [
{file = "brotlicffi-1.0.9.2-pp37-pypy37_pp73-win32.whl", hash = "sha256:7e72978f4090a161885b114f87b784f538dcb77dafc6602592c1cf39ae8d243d"},
{file = "brotlicffi-1.0.9.2.tar.gz", hash = "sha256:0c248a68129d8fc6a217767406c731e498c3e19a7be05ea0a90c3c86637b7d96"},
]
bump2version = [
{file = "bump2version-1.0.1-py2.py3-none-any.whl", hash = "sha256:37f927ea17cde7ae2d7baf832f8e80ce3777624554a653006c9144f8017fe410"},
{file = "bump2version-1.0.1.tar.gz", hash = "sha256:762cb2bfad61f4ec8e2bdf452c7c267416f8c70dd9ecb1653fd0bbb01fa936e6"},
]
certifi = [
{file = "certifi-2022.5.18.1-py3-none-any.whl", hash = "sha256:f1d53542ee8cbedbe2118b5686372fb33c297fcd6379b050cca0ef13a597382a"},
{file = "certifi-2022.5.18.1.tar.gz", hash = "sha256:9c5705e395cd70084351dd8ad5c41e65655e08ce46f2ec9cf6c2c08390f71eb7"},

View file

@ -1,6 +1,6 @@
[tool.poetry]
name = "ucast"
version = "0.0.1"
version = "0.1.0"
description = "YouTube to Podcast converter"
authors = ["Theta-Dev <t.testboy@gmail.com>"]
packages = [
@ -40,6 +40,7 @@ honcho = "^1.1.0"
pytest-mock = "^3.7.0"
fakeredis = "^1.7.5"
gunicorn = "^20.1.0"
bump2version = "^1.0.1"
[tool.poetry.scripts]
"ucast-manage" = "ucast_project.manage:main"

View file

@ -1 +1,5 @@
__version__ = "0.0.1"
__version__ = "0.1.0"
def template_context(request):
return {"version": __version__}

View file

@ -156,9 +156,9 @@ class UcastFeed(Feed):
image_url=self.full_link_url(request, f"/files/avatar/{channel.slug}.jpg"),
)
for video in channel.video_set.order_by("-published")[
: settings.FEED_MAX_ITEMS
]:
for video in channel.video_set.filter(downloaded__isnull=False).order_by(
"-published"
)[: settings.FEED_MAX_ITEMS]:
feed.add_item(
title=video.title,
link=video.get_absolute_url(),

View file

@ -22,6 +22,7 @@
<div class="navbar-brand">
<a class="navbar-item" href="/">
<img src="{% static 'ucast/logo_dark.svg' %}">
<span class="ml-2">v{{ version }}</span>
</a>
</div>

View file

@ -126,6 +126,7 @@ TEMPLATES = [
"django.template.context_processors.request",
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
"ucast.template_context",
],
},
},